/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Material Design Color Palette */
    --primary-color: #1976d2;
    --primary-light: #42a5f5;
    --primary-dark: #1565c0;
    --secondary-color: #dc004e;
    --surface-color: #ffffff;
    --background-color: #fafafa;
    --on-surface: #212121;
    --on-surface-variant: #757575;
    --outline: #e0e0e0;
    --outline-variant: #eeeeee;
    --shadow: rgba(0, 0, 0, 0.12);
    --shadow-dark: rgba(0, 0, 0, 0.24);
    
    /* Typography */
    --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-h1: 2.125rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.25rem;
    --font-size-body: 0.875rem;
    --font-size-caption: 0.75rem;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    
    /* Border radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    /* Elevation */
    --elevation-1: 0 1px 3px var(--shadow), 0 1px 2px var(--shadow);
    --elevation-2: 0 2px 6px var(--shadow), 0 1px 2px var(--shadow-dark);
    --elevation-3: 0 4px 8px var(--shadow), 0 2px 4px var(--shadow-dark);
    --elevation-4: 0 6px 12px var(--shadow), 0 2px 6px var(--shadow-dark);
}

/* Dark theme */
[data-theme="dark"] {
    --surface-color: #121212;
    --background-color: #0d1117;
    --on-surface: #e1e4e8;
    --on-surface-variant: #8b949e;
    --outline: #30363d;
    --outline-variant: #21262d;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-dark: rgba(0, 0, 0, 0.5);
}

/* Performance: Ad container optimization to prevent layout shifts */
.adsbygoogle {
    display: block;
    min-height: 280px; /* Standard ad height */
    margin: var(--spacing-lg) 0;
    background-color: transparent;
    transition: min-height 0.3s ease;
}

/* Mobile ad sizes */
@media (max-width: 768px) {
    .adsbygoogle {
        min-height: 100px; /* Mobile banner height */
    }
}

/* Responsive ad container */
.adsbygoogle[data-ad-format="auto"] {
    min-height: 250px;
}

@media (max-width: 768px) {
    .adsbygoogle[data-ad-format="auto"] {
        min-height: 100px;
    }
}

/* Rectangle ad sizes */
.adsbygoogle[data-ad-format="rectangle"] {
    min-height: 250px;
}

/* Horizontal ad sizes */
.adsbygoogle[data-ad-format="horizontal"] {
    min-height: 90px;
}

@media (max-width: 768px) {
    .adsbygoogle[data-ad-format="horizontal"] {
        min-height: 50px;
    }
}

