/* ============================================
   AllToolsOneSide | Global Stylesheet 2026
   Shared across all pages
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-glow: rgba(37, 99, 235, 0.35);
    --accent: #10b981;
    --dark: #030712;
    --card-bg: rgba(15, 23, 42, 0.75);
    --border: rgba(255, 255, 255, 0.08);
    --text: #f1f5f9;
    --muted: #94a3b8;
    --web-blue: #00d2ff;
    --web-cyan: #3a7bd5;
}

*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(37,99,235,0.12) 0, transparent 60%),
        radial-gradient(ellipse at 100% 100%, rgba(16,185,129,0.08) 0, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ===== SHARED PAGE WRAPPER ===== */
.page-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* ===== SHARED HEADER ===== */
.site-header {
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(14px);
    padding: 14px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.logo span { color: var(--primary); text-shadow: 0 0 18px var(--primary-glow); }

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 9px 18px;
    border: 1px solid var(--border);
    border-radius: 50px;
    transition: color 0.2s, border-color 0.2s;
}
.back-btn:hover { color: white; border-color: var(--primary); }

/* ===== SHARED CONTENT CONTAINER ===== */
.content-wrap {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 25px;
    position: relative;
    z-index: 1;
}

/* ===== PAGE HERO ===== */
.page-hero {
    text-align: center;
    padding: 70px 20px 50px;
    position: relative;
    z-index: 1;
}
.page-hero .badge {
    display: inline-block;
    background: rgba(37,99,235,0.15);
    border: 1px solid rgba(37,99,235,0.3);
    color: #60a5fa;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 50px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin: 0 0 15px;
    background: linear-gradient(135deg, #fff 0%, #60a5fa 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1.5px;
    line-height: 1.1;
}
.page-hero p {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto;
}

/* ===== GLASS CARD (shared) ===== */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 40px;
    backdrop-filter: blur(10px);
    margin-bottom: 25px;
}

.glass-card h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    margin-top: 0;
    margin-bottom: 18px;
    border-left: 3px solid var(--primary);
    padding-left: 14px;
}

.glass-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-top: 28px;
    margin-bottom: 10px;
}

.glass-card p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.glass-card ul, .glass-card ol {
    color: var(--muted);
    line-height: 1.9;
    font-size: 0.95rem;
    padding-left: 20px;
}

.glass-card a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}
.glass-card a:hover { text-decoration: underline; }

/* ===== HIGHLIGHT ===== */
.highlight { color: var(--web-blue); font-weight: 600; }
.accent-text { color: var(--accent); font-weight: 600; }

/* ===== INFO ITEMS ===== */
.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 12px;
}
.info-item i {
    font-size: 1.3rem;
    color: var(--primary);
    width: 30px;
    flex-shrink: 0;
}
.info-item div b {
    display: block;
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}
.info-item div span {
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

/* ===== ACTION BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 800;
    font-size: 0.95rem;
    transition: transform 0.25s, box-shadow 0.25s;
    border: none;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 10px 25px rgba(37,99,235,0.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 35px rgba(37,99,235,0.4); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1.5px solid var(--primary);
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    font-family: inherit;
}
.btn-outline:hover { background: rgba(37,99,235,0.1); }

/* ===== FOOTER (shared) ===== */
.site-footer {
    background: rgba(3,7,18,0.98);
    padding: 50px 25px;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 80px;
    position: relative;
    z-index: 1;
}
.site-footer .f-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 22px;
}
.site-footer .f-links a {
    color: var(--muted);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}
.site-footer .f-links a:hover { color: var(--primary); }
.site-footer .f-copy {
    font-size: 0.82rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 10px;
    opacity: 0.7;
}

/* ===== FORM ELEMENTS ===== */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 7px;
}
.form-input {
    width: 100%;
    padding: 16px 18px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    font-size: 0.95rem;
    outline: none;
    background: rgba(255,255,255,0.04);
    color: white;
    font-family: inherit;
    font-weight: 500;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: rgba(37,99,235,0.05);
}
.form-input::placeholder { color: var(--muted); }

/* ===== SECTION DIVIDER ===== */
.section-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 35px 0;
}

/* ===== STATUS BADGE ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.25);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
}
.status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulseDot 2s infinite;
}
@keyframes pulseDot { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

/* ===== TOOL GRID & CARDS (index.html) ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 25px 100px;
    position: relative;
    z-index: 1;
}
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 38px 28px;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-12px);
    border-color: rgba(37,99,235,0.5);
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.6);
}
.card i {
    font-size: 3rem;
    margin-bottom: 18px;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    transition: transform 0.3s;
}
.card:hover i { transform: scale(1.12); }
.card h3 { font-size: 1.1rem; margin: 0 0 10px; font-weight: 800; color: var(--text); }
.card p { font-size: 0.88rem; color: var(--muted); line-height: 1.55; margin: 0; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.6s ease both; }
.fade-in-delay { animation: fadeInUp 0.6s ease 0.15s both; }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .content-wrap { padding: 0 15px; margin: 40px auto; }
    .glass-card { padding: 28px 22px; border-radius: 22px; }
    .page-hero { padding: 50px 15px 35px; }
    .grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
        padding: 10px 12px 70px !important;
    }
    .card { padding: 18px 8px !important; border-radius: 16px !important; }
    .card i { font-size: 1.6rem !important; margin-bottom: 8px !important; }
    .card h3 { font-size: 0.62rem !important; font-weight: 800 !important; line-height: 1.2 !important; }
    .card p { display: none !important; }
    .site-footer { padding: 40px 15px; }
    .site-footer .f-links { gap: 12px; }
    .info-item { padding: 14px 16px; }
}

@media (max-width: 480px) {
    .page-hero h1 { font-size: 1.8rem; }
    .glass-card h2 { font-size: 1.2rem; }
}
