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

:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #A5B4FC;
    --accent: #06B6D4;
    --bg: #F8FAFC;
    --card: #FFFFFF;
    --text: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    --success: #10B981;
    --error: #EF4444;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
    --transition: 0.2s ease;
    --gradient: linear-gradient(135deg, #6366F1 0%, #06B6D4 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.6; }
a { text-decoration: none; color: inherit; }

/* Header */
.header { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 36px; height: 36px; background: var(--gradient); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem; }
.logo-text { font-size: 1.2rem; font-weight: 800; color: var(--text); }
.logo-text .ai { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.logo-text .dot { color: var(--accent); font-weight: 800; }
.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav a { font-size: 0.88rem; font-weight: 600; color: var(--text-secondary); transition: color var(--transition); }
.header-nav a:hover { color: var(--primary); }
.header-nav a.active { color: var(--primary); }

/* Mobile menu */
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }
@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .header-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--card); flex-direction: column; padding: 16px 24px; border-bottom: 1px solid var(--border); gap: 12px; box-shadow: var(--shadow); }
    .header-nav.open { display: flex; }
    .header-nav a { padding: 8px 0; font-size: 0.95rem; }
}

/* Hero */
.hero { text-align: center; padding: 60px 24px 40px; max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 2.8rem; font-weight: 800; line-height: 1.15; margin-bottom: 16px; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }
@media (max-width: 768px) {
    .hero { padding: 40px 20px 30px; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 0.95rem; }
}

/* Tools Grid */
.tools-section { max-width: 1200px; margin: 0 auto; padding: 0 24px 60px; }
.tools-section h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 24px; text-align: center; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.tool-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; cursor: pointer; position: relative; overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s ease; }
.tool-card::before { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 4px; background: var(--gradient); opacity: 0; transition: opacity 0.3s ease; }
.tool-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradient); opacity: 0; transition: opacity 0.3s ease; }
.tool-card:hover { border-color: var(--primary); box-shadow: 0 12px 40px rgba(99,102,241,0.15); transform: translateY(-4px); }
.tool-card:hover::before, .tool-card:hover::after { opacity: 1; }
.tool-card .icon { width: 56px; height: 56px; background: var(--gradient); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; color: #fff; }
.tool-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 10px; }
.tool-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }
.tool-card .badge { display: inline-block; margin-top: 16px; padding: 5px 12px; background: var(--gradient); color: #fff; border-radius: 20px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* Feature Cards (no hover animation, different style) */
.feature-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; cursor: default; }
.feature-card .icon { width: 48px; height: 48px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.tool-container { max-width: 900px; margin: 0 auto; padding: 40px 24px 60px; }
.tool-container h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.tool-container .subtitle { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 32px; }
.tool-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; box-shadow: var(--shadow); }
.tool-box h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }

/* Form elements */
textarea, input[type="text"], input[type="email"], select {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition);
    resize: vertical;
    background: var(--bg);
}
textarea:focus, input[type="text"]:focus, input[type="email"]:focus { border-color: var(--primary); }
textarea { min-height: 180px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}
.btn-primary { background: var(--gradient); color: #fff; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-secondary { background: var(--bg); color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-row { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* Result box */
.result-box { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; margin-top: 16px; min-height: 100px; white-space: pre-wrap; word-break: break-word; font-size: 0.88rem; line-height: 1.7; display: none; }
.result-box.active { display: block; }
.result-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.result-header h3 { font-size: 0.9rem; font-weight: 700; }

/* Stats */
.stats-row { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.stat-pill { padding: 6px 12px; background: rgba(99,102,241,0.08); border-radius: 8px; font-size: 0.78rem; font-weight: 600; color: var(--primary); }

/* Footer */
.footer { background: var(--card); border-top: 1px solid var(--border); padding: 40px 24px; margin-top: 60px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.footer-brand p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; }
.footer-links h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 12px; }
.footer-links a { display: block; font-size: 0.85rem; color: var(--text-secondary); padding: 4px 0; transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { max-width: 1200px; margin: 24px auto 0; padding-top: 20px; border-top: 1px solid var(--border); text-align: center; font-size: 0.78rem; color: var(--text-muted); }
@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .tool-container { padding: 24px 16px 40px; }
    .tool-container h1 { font-size: 1.4rem; }
    .tool-box { padding: 20px; }
}

/* FAQ */
.faq-section { margin-top: 40px; }
.faq-section h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; }
details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; }
details summary { padding: 14px 18px; font-weight: 600; font-size: 0.88rem; cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: '▸ '; color: var(--primary); }
details[open] summary::before { content: '▾ '; }
details p { padding: 0 18px 14px; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* Loading */
.spinner { display: inline-block; width: 18px; height: 18px; border: 2.5px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
