/* style.css — Academic AI Tools | Choosaro-Inspired Premium Academic Theme */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #0a0a0f;
    --bg-card: #12131a;
    --bg-card-hover: #191b24;
    --bg-surface: #0e0f14;
    --border: rgba(255,255,255,0.07);
    --border-hover: rgba(255,255,255,0.15);
    --text-primary: #f1f1f3;
    --text-secondary: #8b8b9e;
    --text-muted: #5a5a6e;
    --accent-gold: #06b6d4;
    --accent-gold-hover: #22d3ee;
    --accent-green: #22c55e;
    --accent-green-soft: rgba(34,197,94,0.12);
    --accent-blue: #3b82f6;
    --accent-red: #ef4444;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container { width:100%; max-width:1200px; margin:0 auto; padding:0 24px; }

/* ══════════════════════════════════════════
   ANNOUNCEMENT BAR — Choosaro-style top strip
   ══════════════════════════════════════════ */
.announcement-bar {
    background: linear-gradient(90deg, rgba(6,182,212,0.12) 0%, rgba(34,197,94,0.08) 100%);
    border-bottom: 1px solid rgba(6,182,212,0.15);
    padding: 10px 0;
    position: relative;
    z-index: 101;
}

.announcement-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
}

.announcement-text { color: var(--text-secondary); font-weight: 500; }
.announcement-text strong { color: var(--accent-gold); }
.announcement-divider { color: var(--text-muted); }

.announcement-cta {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 4px 14px;
    border: 1px solid rgba(6,182,212,0.3);
    border-radius: var(--radius-full);
    transition: var(--transition);
}
.announcement-cta:hover {
    background: rgba(6,182,212,0.1);
    border-color: var(--accent-gold);
}

.announcement-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    transition: var(--transition);
    line-height: 1;
}
.announcement-close:hover { color: #fff; }

/* ══════════════════════════════════════════
   HEADER — Sticky, Minimal, Choosaro-style
   ══════════════════════════════════════════ */
.app-header {
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo-wrap { display:flex; align-items:center; gap:10px; text-decoration:none; }

.logo-icon {
    width: 36px; height: 36px;
    background: var(--accent-gold);
    border-radius: var(--radius-sm);
    display: flex; justify-content: center; align-items: center;
}

.neon-icon { color: #0a0a0f; width:20px; height:20px; }

.logo-text { font-size:20px; font-weight:700; letter-spacing:-0.5px; color:var(--text-primary); }
.logo-text .highlight { color: var(--accent-gold); }

.nav-links { display:flex; align-items:center; gap:20px; }

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: #fff; }

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: var(--accent-gold);
    color: #0a0a0f;
}
.btn-primary:hover {
    background: var(--accent-gold-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(6,182,212,0.3);
}

.btn-secondary {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--border-hover);
}

.btn-icon i { width:16px; height:16px; }
.btn-full { width:100%; padding:14px; font-size:15px; }

/* ══════════════════════════════════════════
   HERO — Choosaro-style centered, big type
   ══════════════════════════════════════════ */
.hero-section {
    text-align: center;
    padding: 100px 0 60px;
    max-width: 820px;
    margin: 0 auto;
    position: relative;
}

/* Floating UI Cards — Choosaro-style decorative elements */
.hero-float {
    position: absolute;
    z-index: 1;
}

.hero-float-left { left: -40px; top: 80px; }
.hero-float-right { right: -40px; top: 120px; }

.float-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    animation: floatUp 4s ease-in-out infinite alternate;
}

.float-icon { width: 16px; height: 16px; color: var(--accent-green); }

@keyframes floatUp {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-12px); }
}

.hero-float-right .float-card { animation-delay: 1.5s; }

/* Hero CTA Button */
.btn-hero {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: 36px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(6,182,212,0.25);
}
.btn-hero i { width: 18px; height: 18px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-green);
    margin-bottom: 28px;
    letter-spacing: 0.3px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.gold-text { color: var(--accent-gold); }

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-weight: 400;
    line-height: 1.7;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Trust Stats Row */
.trust-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 48px;
}

.stat-item { text-align: center; }
.stat-number { font-size: 28px; font-weight: 800; color: var(--accent-gold); display:block; }
.stat-label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }

/* Search */
.search-container {
    position: relative;
    max-width: 580px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 18px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 20px; height: 20px;
    z-index: 2;
}

#txtSearch {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 15px;
    color: #fff;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

#txtSearch:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(6,182,212,0.15);
    background: var(--bg-card-hover);
}

#txtSearch::placeholder { color: var(--text-muted); }

/* ══════════════════════════════════════════
   PROMO BANNER — QuickTranslate
   ══════════════════════════════════════════ */
.promo-banner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin: 20px 0 60px;
    align-items: center;
    gap: 40px;
}

.promo-badge {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(6,182,212,0.1);
    border: 1px solid rgba(6,182,212,0.2);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promo-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
}

.promo-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.7; }

.promo-features { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }

.p-feat {
    font-size: 13px;
    font-weight: 500;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.p-feat i { width: 16px; height: 16px; color: var(--accent-green); }

.promo-graphic { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.promo-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.graphic-glow { display: none; }

/* ══════════════════════════════════════════
   DIRECTORY — Filters + Grid
   ══════════════════════════════════════════ */
.directory-section { margin-bottom: 80px; }

.filter-bar-wrap {
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 36px;
    scrollbar-width: none;
}
.filter-bar-wrap::-webkit-scrollbar { display: none; }

.category-tabs { display: flex; gap: 8px; white-space: nowrap; }

.tab-btn {
    padding: 8px 18px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    font-family: inherit;
}
.tab-btn i { width: 14px; height: 14px; }
.tab-btn:hover { background: rgba(255,255,255,0.05); color: #fff; border-color: var(--border-hover); }
.tab-btn.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #0a0a0f;
    font-weight: 600;
}

/* Loader */
.loader-wrap {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 12px; padding: 80px 0;
}
.spinner {
    width: 36px; height: 36px;
    border: 3px solid rgba(255,255,255,0.06);
    border-top: 3px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════
   TOOL CARDS — Clean, Academic, Trust-first
   ══════════════════════════════════════════ */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.tool-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    background: var(--bg-card-hover);
}

.tool-card.featured-card { border-color: rgba(6,182,212,0.25); }
.tool-card.featured-card:hover { border-color: rgba(6,182,212,0.5); box-shadow: 0 12px 40px rgba(6,182,212,0.08); }

.featured-banner {
    position: absolute;
    top: 12px; right: 12px;
    padding: 3px 10px;
    background: var(--accent-gold);
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    color: #0a0a0f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }

.card-logo {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--border);
    background: var(--bg-surface);
}

.card-title-wrap { display: flex; flex-direction: column; }
.card-title { font-size: 16px; font-weight: 700; }
.card-pricing { font-size: 11px; font-weight: 600; color: var(--accent-gold); text-transform: uppercase; letter-spacing: 0.5px; }

/* Trust Badges Row */
.card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.badge-verified {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 10px; font-weight: 600;
    color: var(--accent-green);
    background: var(--accent-green-soft);
    border: 1px solid rgba(34,197,94,0.18);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.3px;
}
.badge-verified i { width: 11px; height: 11px; }

.badge-notrain {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 10px; font-weight: 600;
    color: var(--accent-blue);
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.18);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}
.badge-notrain i { width: 11px; height: 11px; }

.badge-grounded {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 10px; font-weight: 600;
    color: #a78bfa;
    background: rgba(167,139,250,0.1);
    border: 1px solid rgba(167,139,250,0.18);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}
.badge-grounded i { width: 11px; height: 11px; }

.card-tagline {
    font-size: 14px; font-weight: 600; color: #fff;
    margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

.card-desc {
    font-size: 13px; color: var(--text-secondary); margin-bottom: 20px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    flex-grow: 1; line-height: 1.6;
}

.card-footer {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid var(--border); padding-top: 16px; margin-top: auto;
}

.card-category {
    font-size: 12px; font-weight: 500; color: var(--text-muted);
    display: flex; align-items: center; gap: 5px;
}
.card-category i { width: 13px; height: 13px; }

.btn-visit { padding: 7px 14px; font-size: 12px; border-radius: var(--radius-full); }

/* Empty State */
.empty-state {
    text-align: center; padding: 80px 20px;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.empty-icon { width: 44px; height: 44px; color: var(--text-muted); }
.empty-state h3 { font-size: 18px; font-weight: 600; }
.empty-state p { color: var(--text-secondary); max-width: 380px; }

/* ══════════════════════════════════════════
   CREATOR NOTE — Trust Section
   ══════════════════════════════════════════ */
.creator-note-section { margin: 60px 0 20px; display: flex; justify-content: center; }

.creator-card {
    display: flex; align-items: flex-start; gap: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: var(--radius-xl);
    max-width: 800px;
}

.creator-avatar {
    width: 64px; height: 64px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    flex-shrink: 0;
}
.creator-shield { color: #0a0a0f; width: 28px; height: 28px; }

.creator-info h3 {
    font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #fff;
}
.creator-bio { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 10px; }
.creator-sign { font-size: 13px; font-weight: 600; color: var(--accent-gold); }

/* ══════════════════════════════════════════
   DRAWER — Submit Form Panel
   ══════════════════════════════════════════ */
.drawer-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex; justify-content: flex-end;
    transition: var(--transition);
}

.drawer-content {
    width: 100%; max-width: 520px; height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--border);
    padding: 36px;
    overflow-y: auto;
    display: flex; flex-direction: column;
}

.drawer-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 28px; border-bottom: 1px solid var(--border); padding-bottom: 20px;
}
.drawer-header h2 { font-size: 22px; font-weight: 700; }

.btn-close {
    background: none; border: none; color: var(--text-secondary);
    cursor: pointer; padding: 4px; transition: var(--transition);
}
.btn-close:hover { color: #fff; transform: rotate(90deg); }

.drawer-form { display: flex; flex-direction: column; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label { font-size: 13px; font-weight: 600; color: #c4c4d4; }

input[type="text"], input[type="url"], input[type="email"], select, textarea {
    padding: 11px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(6,182,212,0.1);
}

/* Pricing Cards */
.pricing-selector-title { font-size: 13px; font-weight: 600; margin-top: 8px; color: #c4c4d4; }

.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 8px; }

.pricing-card {
    position: relative;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex; flex-direction: column; gap: 3px;
    transition: var(--transition);
}
.pricing-card input[type="radio"] { position: absolute; top: 14px; right: 18px; accent-color: var(--accent-gold); }
.pricing-card:hover { background: var(--bg-card-hover); border-color: var(--border-hover); }
.pricing-card.active { border-color: var(--accent-gold); background: rgba(245,197,24,0.04); }

.p-title { font-weight: 700; font-size: 14px; }
.p-price { font-size: 20px; font-weight: 800; color: #fff; margin: 2px 0; }
.p-price span { font-size: 12px; font-weight: 500; color: var(--text-secondary); }
.p-desc { font-size: 12px; color: var(--text-secondary); }
.p-badge {
    position: absolute; top: 12px; right: 42px;
    padding: 2px 8px; background: rgba(6,182,212,0.12);
    border-radius: var(--radius-sm); font-size: 9px;
    font-weight: 700; color: var(--accent-gold);
}
.p-badge.premium { background: rgba(167,139,250,0.12); color: #a78bfa; }

/* Toast */
.toast {
    position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--accent-gold);
    border-radius: var(--radius-md);
    padding: 12px 24px;
    color: #fff; font-size: 14px; font-weight: 500;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    z-index: 9999;
    transition: var(--transition);
}

/* ══════════════════════════════════════════
   FOOTER — Clean Academic
   ══════════════════════════════════════════ */
.app-footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 36px;
    background: var(--bg-surface);
}

.footer-content { text-align: center; }

.footer-trust {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-trust-item {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; color: var(--text-secondary);
}
.footer-trust-item i { width: 14px; height: 14px; color: var(--accent-green); }

.footer-links-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links-row a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}
.footer-links-row a:hover { color: var(--accent-gold); }

.footer-copy { font-size: 12px; color: var(--text-muted); }

/* Hide old footer structure */
.footer-links { display: none; }

/* Hidden Utility */
.hidden { display: none !important; opacity: 0; pointer-events: none; }

/* Ambient glows — subtle version */
.ambient-glow { display: none; }

/* Search glow — removed for clean look */
.search-glow { display: none; }

/* Old verified badge — replaced by card-badges */
.verified-badge { display: none; }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 900px) {
    .promo-banner { grid-template-columns: 1fr; padding: 28px; }
    .hero-title { font-size: 40px; letter-spacing: -1px; }
    .trust-stats { gap: 28px; }
    .tools-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .header-container {
        flex-direction: column; justify-content: center;
        height: auto; padding: 16px 0; gap: 12px;
    }
    .hero-section { padding: 60px 0 40px; }
    .hero-title { font-size: 32px; }
    .hero-desc { font-size: 16px; }
    .trust-stats { flex-direction: column; gap: 16px; }
    .stat-number { font-size: 24px; }
    .creator-card { flex-direction: column; text-align: center; gap: 16px; align-items: center; }
    .drawer-content { padding: 20px; }
    .form-row { grid-template-columns: 1fr; gap: 12px; }
    .footer-trust { flex-direction: column; align-items: center; gap: 12px; }
}
