/* Modern SaaS Theme Extension - "Lite & Modern Viral" Upgrade */
:root {
    --primary: #10b981; /* Emerald 500 - Brand */
    --primary-hover: #059669;
    --secondary: #334155;
    --bg-page: #f0fdf4; /* Very Light Mint/White for "Lite" feel */
    --surface-card: #ffffff;
    --text-main: #111827; /* Gray 900 */
    --text-muted: #4b5563; /* Gray 600 */
    --border-light: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
    --bg-page: #0b1120; /* Deep Crypto Dark Blue */
    --surface-card: #1e293b; /* Slate 800 */
    --text-main: #f9fafb; /* Gray 50 */
    --text-muted: #9ca3af; /* Gray 400 */
    --border-light: #374151; /* Gray 700 */
    --primary: #34d399; /* Emerald 400 - Brighter for Dark Mode */
    --primary-hover: #10b981;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
}

/* Hero Section Enhancement */
.hero {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(255,255,255,0) 100%);
    padding: 6rem 1rem;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Card Enhancements - Glassmorphism Light */
.tool-card {
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy viral feel */
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.tool-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.tool-icon {
    width: 56px;
    height: 56px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
    background: var(--primary);
    color: white;
}

.tool-badge {
    background: #fef3c7;
    color: #d97706;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Navbar Tweaks */
.navbar {
    background: var(--surface-card); /* Changed from rgba to support dark mode */
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 50;
}

/* SEO Article Styles - "Blog Post" Quality */
.seo-article {
    line-height: 1.8;
    color: var(--text-main);
    background: var(--surface-card);
    padding: 3rem !important;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    margin-top: 4rem !important;
    border: 1px solid var(--border-light);
}

.seo-article h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.seo-article h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
}

.seo-article p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.seo-article ul, .seo-article ol {
    margin-left: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.seo-article li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .navbar {
        padding: 1rem;
    }

    .seo-article {
        margin: 2rem auto;
        padding: 0 1rem;
    }
}

/* Toast Notification */
.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 12px 16px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

.toast.success { background-color: var(--primary); }
.toast.error { background-color: #ef4444; }
