/* ==========================================================
   DPDownloader — style.css
   Font: Outfit (download from fonts.google.com/specimen/Outfit)
   Upload weights 300/400/500/600/700/800 as .woff2 to /fonts/Outfit/
   ========================================================== */

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
    --blue-900:  #0c2461;
    --blue-800:  #1239a5;
    --blue-700:  #1a56db;   /* primary */
    --blue-600:  #1c64f2;
    --blue-500:  #3f83f8;
    --blue-200:  #bfdbfe;
    --blue-100:  #dbeafe;
    --blue-50:   #eff6ff;
    --cyan:      #06b6d4;
    --white:     #ffffff;
    --gray-900:  #111827;
    --gray-700:  #374151;
    --gray-500:  #6b7280;
    --gray-300:  #d1d5db;
    --gray-100:  #f3f4f6;
    --gray-50:   #f9fafb;
    --success:   #10b981;
    --error:     #ef4444;
    --warning:   #f59e0b;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.05);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.13), 0 4px 16px rgba(0,0,0,.06);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: .22s cubic-bezier(.4,0,.2,1);
    --font:      'Outfit', 'Segoe UI', system-ui, sans-serif;
    --platform-color: var(--blue-700);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--gray-900);
    background: var(--gray-50);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-600); }
ul { list-style: none; }

/* ── Container ──────────────────────────────────────────────── */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── Navbar ─────────────────────────────────────────────────── */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.navbar {
    display: flex;
    align-items: center;
    height: 64px;
    gap: 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--gray-900);
    flex-shrink: 0;
}
.logo-text { font-size: 1.25rem; font-weight: 600; letter-spacing: -.3px; }
.logo-text strong { color: var(--blue-700); font-weight: 800; }
.nav-menu { display: flex; align-items: center; margin-left: auto; }
.nav-links { display: flex; gap: 2px; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
    background: var(--blue-50);
    color: var(--blue-700);
}
.nav-icon { font-size: .95rem; }
.nav-toggle { display: none; }

/* Breadcrumb */
.breadcrumb {
    padding: 8px 0;
    font-size: .83rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 6px;
    border-top: 1px solid var(--gray-100);
}
.breadcrumb a { color: var(--blue-700); }
.breadcrumb-sep { color: var(--gray-300); }
.breadcrumb-current { color: var(--gray-500); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 55%, #1c7cf8 100%);
    color: var(--white);
    padding: 72px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin-bottom: 16px;
}
.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 400;
    opacity: .88;
    max-width: 540px;
    margin: 0 auto 48px;
}
.hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: var(--white);
    padding: 5px 14px;
    border-radius: 100px;
    font-size: .825rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* ── Platform Grid ──────────────────────────────────────────── */
.platforms-section { padding: 72px 0; }
.section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: -.02em;
}
.section-sub {
    text-align: center;
    color: var(--gray-500);
    font-size: 1.05rem;
    margin-bottom: 44px;
}
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 20px;
}
.platform-card {
    background: var(--white);
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 32px 20px 28px;
    text-align: center;
    text-decoration: none;
    color: var(--gray-900);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}
.platform-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--card-color, var(--blue-200));
    color: var(--gray-900);
}
.platform-card .p-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 2rem;
    background: var(--card-bg, var(--blue-50));
    transition: transform var(--transition);
}
.platform-card:hover .p-icon { transform: scale(1.08); }
.platform-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.platform-card p { font-size: .8rem; color: var(--gray-500); }
.coming-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--warning);
    color: var(--white);
    font-size: .68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ── Tool Section ────────────────────────────────────────────── */
.tool-hero {
    background: linear-gradient(135deg, var(--blue-900), var(--platform-color));
    color: var(--white);
    padding: 56px 0 64px;
    text-align: center;
}
.tool-hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 10px; letter-spacing: -.02em; }
.tool-hero p  { opacity: .88; font-size: 1.05rem; }
.platform-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.15);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ── Search Box ─────────────────────────────────────────────── */
.tool-box-wrap {
    margin: -36px auto 48px;
    position: relative;
    z-index: 10;
}
.tool-box {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 32px 36px;
    max-width: 680px;
    margin: 0 auto;
}
.search-form { display: flex; gap: 12px; }
.search-input-wrap { flex: 1; position: relative; }
.search-input {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-900);
    background: var(--white);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.search-input:focus {
    border-color: var(--blue-700);
    box-shadow: 0 0 0 3px var(--blue-100);
}
.search-input::placeholder { color: var(--gray-300); }
.btn-search {
    height: 52px;
    padding: 0 28px;
    background: var(--blue-700);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-search:hover  { background: var(--blue-600); box-shadow: 0 4px 16px rgba(26,86,219,.35); }
.btn-search:active { transform: scale(.97); }
.btn-search:disabled { opacity: .65; cursor: not-allowed; }
.spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    display: none;
}
.btn-search.loading .spinner { display: block; }
.btn-search.loading .btn-text { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Result Card ─────────────────────────────────────────────── */
#result-section { display: none; margin-top: 28px; }
.result-card {
    background: var(--gray-50);
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.result-img-wrap {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-md);
    background: var(--gray-100);
}
.result-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.result-info { flex: 1; min-width: 0; }
.result-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.result-username { font-size: .9rem; color: var(--gray-500); margin-bottom: 20px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-primary { background: var(--blue-700); color: var(--white); }
.btn-primary:hover { background: var(--blue-600); color: var(--white); box-shadow: 0 4px 12px rgba(26,86,219,.3); }
.btn-secondary { background: var(--white); color: var(--gray-700); border: 1.5px solid var(--gray-300); }
.btn-secondary:hover { border-color: var(--blue-700); color: var(--blue-700); }
.btn-ghost { background: transparent; color: var(--gray-500); padding: 9px 14px; }
.btn-ghost:hover { color: var(--blue-700); background: var(--blue-50); }
.btn-new { margin-top: 16px; color: var(--gray-500); font-size: .85rem; cursor: pointer; background: none; border: none; font-family: var(--font); text-decoration: underline; }
.btn-new:hover { color: var(--blue-700); }

/* ── Error / Alert ──────────────────────────────────────────── */
#error-section { display: none; margin-top: 20px; }
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 500;
}
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.alert-info  { background: var(--blue-50); border: 1px solid var(--blue-200); color: var(--blue-800); }
.alert-icon  { font-size: 1.2rem; flex-shrink: 0; }

/* ── Features Section ────────────────────────────────────────── */
.features-section { background: var(--white); padding: 80px 0; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    margin-top: 48px;
}
.feature-card {
    padding: 28px 24px;
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.feature-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow-md); }
.feature-icon {
    width: 48px; height: 48px;
    background: var(--blue-50);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.feature-card p  { font-size: .875rem; color: var(--gray-500); line-height: 1.6; }

/* ── How It Works ────────────────────────────────────────────── */
.how-section { padding: 80px 0; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-top: 48px; }
.step {
    text-align: center;
    padding: 24px 20px;
}
.step-num {
    width: 56px; height: 56px;
    background: var(--blue-700);
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 auto 18px;
    box-shadow: 0 8px 20px rgba(26,86,219,.3);
}
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.step p  { color: var(--gray-500); font-size: .9rem; }

/* ── Coming Soon Page ────────────────────────────────────────── */
.coming-page {
    text-align: center;
    padding: 80px 24px;
}
.coming-icon {
    width: 100px; height: 100px;
    border-radius: 28px;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
    margin: 0 auto 28px;
    background: var(--gray-100);
}
.coming-badge-lg {
    display: inline-block;
    background: var(--warning);
    color: var(--white);
    font-size: .8rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.coming-page h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 14px; }
.coming-page p   { color: var(--gray-500); max-width: 480px; margin: 0 auto 36px; }
.notify-form { display: flex; gap: 10px; justify-content: center; max-width: 400px; margin: 0 auto; }
.notify-form input {
    flex: 1;
    height: 46px;
    padding: 0 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: .95rem;
    outline: none;
}
.notify-form input:focus { border-color: var(--blue-700); box-shadow: 0 0 0 3px var(--blue-100); }
.coming-alts { margin-top: 56px; }
.coming-alts h3 { font-size: 1rem; font-weight: 600; color: var(--gray-700); margin-bottom: 20px; }
.alt-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.alt-tools a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-weight: 600;
    color: var(--gray-700);
    transition: all var(--transition);
}
.alt-tools a:hover { border-color: var(--blue-700); color: var(--blue-700); transform: translateY(-2px); }

/* ── Static Pages ────────────────────────────────────────────── */
.static-page { max-width: 800px; margin: 0 auto; padding: 60px 24px; }
.static-page h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 8px; }
.static-page .page-date { color: var(--gray-500); font-size: .875rem; margin-bottom: 36px; }
.static-page h2 { font-size: 1.25rem; font-weight: 700; margin: 32px 0 10px; color: var(--gray-900); }
.static-page p  { color: var(--gray-700); line-height: 1.75; margin-bottom: 16px; }
.static-page ul { color: var(--gray-700); padding-left: 20px; margin-bottom: 16px; }
.static-page ul li { margin-bottom: 6px; list-style: disc; }
.static-page a  { color: var(--blue-700); text-decoration: underline; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer { background: var(--gray-900); color: #d1d5db; margin-top: auto; }
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 56px 0 48px;
}
.footer-brand .logo-text { color: var(--white); }
.footer-brand .logo-text strong { color: var(--cyan); }
.footer-tagline { font-size: .875rem; color: #9ca3af; margin: 14px 0 10px; }
.footer-note { font-size: .78rem; color: #6b7280; line-height: 1.6; }
.footer-col h4 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #e5e7eb; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a  { font-size: .875rem; color: #9ca3af; transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid #1f2937; padding: 18px 0; text-align: center; }
.footer-bottom p { font-size: .8rem; color: #6b7280; }

/* ── Tool Page Info Section ──────────────────────────────────── */
.tool-info { padding: 60px 0; }
.tool-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.tool-info h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; }
.tool-info p  { color: var(--gray-600, var(--gray-500)); line-height: 1.75; margin-bottom: 14px; }
.info-list { display: flex; flex-direction: column; gap: 14px; }
.info-item { display: flex; gap: 12px; }
.info-item-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.info-item-text h4 { font-weight: 600; margin-bottom: 2px; }
.info-item-text p  { font-size: .875rem; color: var(--gray-500); margin: 0; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-section { padding: 72px 0; background: var(--white); }
.faq-list { max-width: 740px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--blue-200); }
.faq-q {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 18px 22px;
    font-family: var(--font);
    font-size: .975rem;
    font-weight: 600;
    color: var(--gray-900);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.faq-q .faq-arrow { color: var(--gray-400); font-size: 1.2rem; transition: transform var(--transition); flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--blue-700); }
.faq-a {
    padding: 0 22px;
    max-height: 0;
    overflow: hidden;
    font-size: .9rem;
    color: var(--gray-500);
    line-height: 1.7;
    transition: max-height .3s ease, padding .3s ease;
}
.faq-item.open .faq-a { max-height: 500px; padding: 0 22px 18px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .tool-info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--gray-100); padding: 12px 0; box-shadow: var(--shadow-md); }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; margin-left: auto; }
    .nav-toggle span { width: 22px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: all var(--transition); display: block; }
    .navbar { position: relative; }
    .search-form { flex-direction: column; }
    .btn-search { width: 100%; justify-content: center; }
    .result-card { flex-direction: column; align-items: center; text-align: center; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .footer-lang { display: none; }
    .tool-box { padding: 24px 20px; border-radius: var(--radius-lg); }
    .notify-form { flex-direction: column; }
}

/* ── Language Switcher ───────────────────────────────────────────── */
.nav-lang {
    position: relative;
    flex-shrink: 0;
    margin-left: 8px;
}
.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 5px 10px;
    font-family: var(--font);
    font-size: .8rem;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
    white-space: nowrap;
}
.lang-btn:hover { border-color: var(--blue-700); background: var(--blue-50); color: var(--blue-700); }
.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--white);
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: 6px;
    min-width: 150px;
    z-index: 200;
}
.nav-lang.open .lang-dropdown { display: block; }
.lang-dropdown li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.lang-dropdown li a:hover { background: var(--blue-50); color: var(--blue-700); }

/* RTL adjustment for lang dropdown */
body.rtl .lang-dropdown { right: auto; left: 0; }
body.rtl .lang-btn { flex-direction: row-reverse; }
