/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light mode colors */
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f8f9fa;
    --text-primary: #333;
    --text-secondary: #666;
    --accent-primary: #4CAF50;
    --accent-secondary: #45a049;
    --border-color: #e9ecef;
    --shadow-color: rgba(0,0,0,0.1);
    
    /* Dark mode colors */
    --dark-bg-primary: #0a0a0a;
    --dark-bg-secondary: #1a1a1a;
    --dark-bg-tertiary: #111;
    --dark-text-primary: #00ff00;
    --dark-text-secondary: #00cc00;
    --dark-accent-primary: #00ff00;
    --dark-accent-secondary: #00cc00;
    --dark-border-color: #333;
    --dark-shadow-color: rgba(0,255,0,0.2);
    --dark-warning: #ffff00;
    --dark-danger: #ff0000;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark mode styles */
body.dark-mode {
    background-color: var(--dark-bg-primary);
    color: var(--dark-text-primary);
    font-family: 'Courier New', monospace;
}

body.dark-mode * {
    border-color: var(--dark-border-color) !important;
}

/* Dark mode theme toggle */
.theme-toggle {
    background: none;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--accent-primary);
    color: white;
}

body.dark-mode .theme-toggle {
    border-color: var(--dark-accent-primary);
    color: var(--dark-accent-primary);
    background: var(--dark-bg-secondary);
}

body.dark-mode .theme-toggle:hover {
    background: var(--dark-accent-primary);
    color: var(--dark-bg-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-color);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

body.dark-mode .navbar {
    background: var(--dark-bg-secondary);
    color: var(--dark-text-primary);
    box-shadow: 0 2px 10px var(--dark-shadow-color);
    border-bottom: 1px solid var(--dark-border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: var(--accent-primary);
    font-weight: 600;
}

body.dark-mode .nav-logo h2 {
    color: var(--dark-accent-primary);
    text-shadow: 0 0 10px var(--dark-accent-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

body.dark-mode .nav-link {
    color: var(--dark-text-secondary);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
}

body.dark-mode .nav-link:hover,
body.dark-mode .nav-link.active {
    color: var(--dark-accent-primary);
    text-shadow: 0 0 5px var(--dark-accent-primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

body.dark-mode .bar {
    background-color: var(--dark-text-primary);
    box-shadow: 0 0 5px var(--dark-accent-primary);
}

/* Dark mode content styling */
body.dark-mode .hero {
    background: linear-gradient(135deg, #001100 0%, #003300 100%);
}

body.dark-mode .threat-landscape,
body.dark-mode .quick-tips,
body.dark-mode .content-section {
    background: var(--dark-bg-primary);
}

body.dark-mode .why-privacy {
    background: var(--dark-bg-tertiary);
}

body.dark-mode .threat-card,
body.dark-mode .tip-card,
body.dark-mode .step-card {
    background: var(--dark-bg-secondary);
    border: 1px solid var(--dark-border-color);
    color: var(--dark-text-primary);
}

body.dark-mode .threat-card:hover,
body.dark-mode .tip-card:hover,
body.dark-mode .step-card:hover {
    box-shadow: 0 10px 30px var(--dark-shadow-color);
    border-color: var(--dark-accent-primary);
}

body.dark-mode .threat-card h3,
body.dark-mode .tip-card h3 {
    color: var(--dark-accent-primary);
}

body.dark-mode .content-text h2,
body.dark-mode .threat-landscape h2,
body.dark-mode .quick-tips h2,
body.dark-mode .content-section h2,
body.dark-mode .content-section h3 {
    color: var(--dark-text-primary);
}

body.dark-mode .privacy-shield {
    background: linear-gradient(135deg, #004400, #006600);
    box-shadow: 0 20px 40px rgba(0, 255, 0, 0.3);
}

body.dark-mode .alert-box,
body.dark-mode .warning-box {
    background: var(--dark-bg-secondary);
    border-color: var(--dark-warning);
    color: var(--dark-text-primary);
}

body.dark-mode .info-box {
    background: var(--dark-bg-secondary);
    border-color: var(--dark-accent-primary);
    color: var(--dark-text-primary);
}

body.dark-mode .page-header {
    background: linear-gradient(135deg, #001100, #003300);
}

body.dark-mode footer {
    background: var(--dark-bg-secondary);
    color: var(--dark-text-secondary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Article link styling */
.article-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.article-link:hover {
    color: var(--accent-primary);
}

body.dark-mode .article-link:hover {
    color: var(--dark-accent-primary);
}

/* Button margin utility class */
.btn-margin {
    margin-top: 1rem;
    display: inline-block;
}

/* Threat Landscape */
.threat-landscape {
    padding: 80px 0;
    background: white;
}

.threat-landscape h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.threat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.threat-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.threat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.threat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.threat-card h3 {
    color: #d32f2f;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Why Privacy Section */
.why-privacy {
    padding: 80px 0;
    background: #f8f9fa;
}

.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.privacy-benefits {
    list-style: none;
    margin-top: 2rem;
}

.privacy-benefits li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.privacy-shield {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(76, 175, 80, 0.3);
}

.shield-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Quick Tips */
.quick-tips {
    padding: 80px 0;
    background: white;
}

.quick-tips h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tip-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #4CAF50;
    transition: transform 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-3px);
}

.tip-card h3 {
    color: #4CAF50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Data Reality Alert */
.data-reality {
    padding: 60px 0;
    background: #fff3cd;
}

.alert-box {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    color: #856404;
}

.alert-box h3 {
    color: #856404;
    margin-bottom: 1rem;
    font-weight: 600;
}

body.dark-mode .alert-box {
    background-color: #1a1a00;
    border-color: #333300;
    color: var(--dark-warning);
}

body.dark-mode .alert-box h3 {
    color: var(--dark-warning);
}

/* Call to Action */
.call-to-action {
    padding: 80px 0;
    background: linear-gradient(135deg, #2d3436, #636e72);
    color: white;
    text-align: center;
}

.call-to-action h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.call-to-action p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* Page-specific styles */
.page-header {
    background: linear-gradient(135deg, #2d3436, #636e72);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.content-section {
    padding: 60px 0;
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.content-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #4CAF50;
}

.step-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #4CAF50;
}

.step-number {
    background: #4CAF50;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
}

.warning-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.warning-box h4 {
    color: #856404;
    margin-bottom: 0.5rem;
}

.info-box {
    background: #d1ecf1;
    border: 2px solid #bee5eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.info-box h4 {
    color: #0c5460;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #1a1a1a;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .content-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .threat-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
}
