/* ==========================================================================
   Premium Light Mode & Glassmorphic Design System
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-main: #f8fafc; /* Slate 50 */
    --bg-card: rgba(255, 255, 255, 0.85); /* White with opacity */
    --text-primary: #0f172a; /* Slate 900 */
    --text-secondary: #475569; /* Slate 600 */
    
    /* Accents */
    --accent-primary: #8b5cf6; /* Violet 500 */
    --accent-secondary: #3b82f6; /* Blue 500 */
    --accent-success: #10b981; /* Emerald 500 */
    
    /* Glassmorphism to Soft UI */
    --glass-border: rgba(0, 0, 0, 0.06);
    --glass-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.04);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

[data-theme="dark"] {
    /* Dark Mode Palette */
    --bg-main: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    /* Accents remain same */
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; margin-bottom: 1rem; background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
p { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex-grow: 1;
}

/* Header/Nav */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i { color: var(--accent-primary); }

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

/* Grid & Cards */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--glass-shadow);
}

.tool-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 24px 48px -12px rgba(139, 92, 246, 0.15);
}

.icon-wrapper {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: rgba(0,0,0,0.03);
}

.icon-purple { color: #8b5cf6; background: rgba(139, 92, 246, 0.1); }
.icon-blue { color: #3b82f6; background: rgba(59, 130, 246, 0.1); }
.icon-green { color: #10b981; background: rgba(16, 185, 129, 0.1); }
.icon-pink { color: #ec4899; background: rgba(236, 72, 153, 0.1); }

/* Forms & Inputs */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

input[type="text"], input[type="number"], select {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.2rem;
    transition: all 0.3s;
    box-sizing: border-box;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

/* Buttons */
.btn {
    display: inline-block;
    width: 100%;
    padding: 1.25rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
    text-align: center;
    box-shadow: 0 6px 0px rgba(109, 40, 217, 0.5), 0 15px 20px rgba(139, 92, 246, 0.2);
    margin-bottom: 6px; /* Offset for the box shadow */
}

.btn:active {
    transform: translateY(6px);
    box-shadow: 0 0px 0px rgba(109, 40, 217, 0.5), 0 5px 10px rgba(139, 92, 246, 0.2);
    margin-bottom: 0; /* Reset offset */
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.15);
}

/* Tool Layout Wrapper */
.tool-layout {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3.5rem;
    box-shadow: var(--glass-shadow);
}

/* Result Box */
.result-box {
    margin-top: 2rem;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    border-left: 4px solid var(--accent-success);
    display: none;
}

.result-box.visible {
    display: block;
    animation: fadeIn 0.4s ease-out forwards;
}

/* Utilities */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 4rem; }

/* Ads Placeholders */
.ad-slot {
    background: rgba(0,0,0,0.02);
    border: 1px dashed var(--glass-border);
    border-radius: 8px;
    display: block; /* Flex breaks some 3rd party scripts */
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 2rem auto;
    overflow: hidden;
}
.ad-leaderboard { width: 100%; max-width: 728px; min-height: 90px; height: auto; }
.ad-rectangle { width: 100%; max-width: 728px; min-height: 250px; height: auto; margin: 0 auto; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .tool-layout { padding: 1.5rem; }
}

/* ==========================================================================
   SEO & Social Share Components
   ========================================================================== */

/* SEO Content Block */
.seo-content {
    max-width: 800px;
    margin: 4rem auto 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}
.seo-content h2 { font-size: 2rem; margin-top: 1.5rem; }
.seo-content h3 { font-size: 1.5rem; margin-top: 1.2rem; margin-bottom: 0.5rem; }
.seo-content p { color: var(--text-secondary); margin-bottom: 1.2rem; font-size: 1.1rem; }

/* Share Buttons */
.share-section {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--glass-border);
}
.btn-share {
    padding: 1rem 2rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.1s;
}
.btn-share:active { transform: translateY(2px); }
.btn-twitter { background: #1da1f2; }
.btn-facebook { background: #4267b2; }

/* Related Tools */
.related-section {
    max-width: 800px;
    margin: 3rem auto;
}
.related-section h3 { margin-bottom: 1.5rem; text-align: center; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.related-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-primary);
    text-align: center;
    transition: all 0.3s;
    font-weight: 600;
}
.related-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.1);
}
.related-card i { font-size: 2.5rem; color: var(--accent-primary); margin-bottom: 1rem; display: block;}

/* ==========================================================================
   Simulation Tools Grid
   ========================================================================== */

.sim-tools-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.sim-tools-header {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.sim-tools-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.sim-card {
    border-radius: 16px;
    padding: 2rem 1rem;
    text-align: center;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sim-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.sim-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.sim-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.sim-card-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Card Brand Colors */
.bg-instagram { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
/* Let's refine the instagram color to match the image which is more pink/purple solid gradient */
.bg-instagram { background: linear-gradient(135deg, #d946ef 0%, #c026d3 100%); }
.bg-messaging { background: #10b981; }
.bg-facebook { background: #2563eb; }
.bg-youtube { background: #dc2626; }
.bg-tiktok { background: #000000; }
.bg-linkedin { background: #1d4ed8; }
.bg-x { background: #1e293b; }
.bg-pinterest { background: #ef4444; }
.bg-snapchat { background: #eab308; color: #1e293b; } /* Snapchat usually has dark text */
.bg-snapchat .sim-card-title, .bg-snapchat .sim-card-subtitle { color: #1e293b; }
.bg-tumblr { background: #6366f1; }
.bg-reddit { background: #f97316; }
.bg-microblog { background: #e11d48; }
.bg-streaming { background: #8b5cf6; }
.bg-aichats { background: #0f172a; }
.bg-verifier { background: #7c3aed; }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .sim-tools-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .sim-tools-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .sim-tools-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .sim-tools-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
    margin-top: 4rem;
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0 1.5rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo i { color: var(--accent-primary); }

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Aggressive Adsterra Monetization Styles
   ========================================================================== */

/* Sticky Mobile Banner */
.ad-sticky-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    z-index: 1000;
    text-align: center;
    padding: 0.5rem 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .ad-sticky-mobile {
        display: block;
    }
    /* Add padding to body so sticky banner doesn't cover content */
    body {
        padding-bottom: 100px;
    }
}

/* Strict Anti-Adblock Modal */
.adblock-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(15px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adblock-modal {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    max-width: 500px;
    text-align: center;
    box-shadow: var(--glass-shadow);
}

.adblock-modal h2 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.adblock-modal p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.adblock-modal-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

.blurred-by-adblock {
    filter: blur(10px);
    pointer-events: none;
}


/* =========================================
   Cookie Consent Banner
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: -100px; /* Hidden state */
    left: 20px;
    right: 20px;
    max-width: 450px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-banner.show {
    bottom: 20px;
    opacity: 1;
}

.cookie-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cookie-icon {
    font-size: 2rem;
    color: var(--accent-primary);
}

.cookie-text h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.cookie-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.cookie-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.cookie-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    width: auto;
}

/* =========================================
   Newsletter Form
   ========================================= */
.newsletter-form {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-form p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.newsletter-input-group {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input-group input {
    flex-grow: 1;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.newsletter-input-group input:focus {
    border-color: var(--accent-primary);
}

.newsletter-input-group button {
    padding: 0 1rem;
    border-radius: 8px;
    background: var(--accent-primary);
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter-input-group button:hover {
    background: #7a4ef5;
}
