/* main.css - Common styles for all pages */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --silver: #c0c0c0;
    --silver-light: #f5f5f5;
    --silver-dark: #a0a0a0;
    --gold: #d4af37;
    --gold-light: #f9f3e5;
    --positive: #00a86b;
    --negative: #ff3333;
    --text: #333;
    --text-light: #666;
    --border: #e0e0e0;
    --shadow: 0 5px 15px rgba(0,0,0,0.05);
    --container-padding: 15px;
}

body {
    background-color: #f8f9fa;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Header Styles - Mobile First */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 20px;
    color: var(--silver-dark);
    margin-left: 10px;
    text-align: center;
}

.logo-icon {
    color: var(--silver);
    font-size: 24px;
}

.date-time {
    color: var(--text-light);
    font-size: 14px;
    text-align: center;
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--silver-dark);
    cursor: pointer;
    padding: 5px;
}

nav {
    width: 100%;
}

nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    background-color: #f8f8f8;
    border-radius: 5px;
    overflow: hidden;
}

nav li {
    width: 100%;
}

nav a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text);
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border);
}

nav li:last-child a {
    border-bottom: none;
}

nav a:hover, nav a.active {
    background-color: var(--silver);
    color: white;
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: var(--text-light);
    overflow-x: auto;
    white-space: nowrap;
}

.breadcrumb a {
    color: var(--silver-dark);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Common Components */
.keyword-highlight {
    background-color: var(--silver-light);
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 600;
}

.gold-keyword {
    background-color: var(--gold-light);
    color: #b8860b;
}

.positive {
    color: var(--positive);
    font-weight: 600;
}

.negative {
    color: var(--negative);
    font-weight: 600;
}

/* Source Attribution */
.source-attribution {
    background-color: #f0f8ff;
    border-left: 4px solid #4285f4;
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
}

.source-attribution strong {
    color: #4285f4;
}

/* Google Ads Styles - Responsive */
.ad-container {
    margin: 20px 0;
    text-align: center;
    overflow: hidden;
}

.ad-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.ad-unit {
    background-color: #f8f8f8;
    border: 1px dashed #ddd;
    border-radius: 8px;
    padding: 12px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    max-width: 100%;
}

.ad-unit:hover {
    background-color: #f0f0f0;
}

.ad-banner {
    width: 100%;
    height: 90px;
    max-width: 728px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
}

.ad-square {
    width: 100%;
    height: 250px;
    max-width: 300px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
}

.ad-rectangle {
    width: 100%;
    height: 600px;
    max-width: 300px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
}

.ad-link {
    color: #4285f4;
    text-decoration: none;
    font-weight: 500;
    margin-top: 8px;
    font-size: 14px;
}

.ad-link:hover {
    text-decoration: underline;
}

.ad-text {
    color: #666;
    font-size: 13px;
    margin-top: 5px;
    max-width: 100%;
    text-align: center;
    padding: 0 10px;
}

.ad-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* SEO Content Sections */
.seo-content {
    margin: 30px 0;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.seo-content h2 {
    color: var(--silver-dark);
    margin-bottom: 15px;
    font-size: 20px;
    border-bottom: 2px solid var(--silver-light);
    padding-bottom: 8px;
}

.seo-content h3 {
    color: var(--text);
    margin: 20px 0 12px;
    font-size: 18px;
}

.seo-content p {
    margin-bottom: 12px;
    line-height: 1.7;
    font-size: 15px;
}

.seo-content ul, .seo-content ol {
    margin: 12px 0 12px 20px;
}

.seo-content li {
    margin-bottom: 6px;
    line-height: 1.5;
    font-size: 15px;
}

/* FAQ Section */
.faq-section {
    margin: 30px 0;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-question {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 15px;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0 15px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.footer-column h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--silver);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--silver);
}

.copyright {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 13px;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Tablet Styles */
@media (min-width: 768px) {
    :root {
        --container-padding: 20px;
    }
    
    .header-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo h1 {
        font-size: 22px;
        text-align: left;
    }
    
    .date-time {
        text-align: right;
    }
    
    nav ul {
        flex-direction: row;
    }
    
    nav a {
        border-bottom: none;
        border-right: 1px solid var(--border);
    }
    
    nav li:last-child a {
        border-right: none;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .seo-content, .faq-section {
        padding: 25px;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile Menu Button for Small Screens */
@media (max-width: 767px) {
    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
    }
    
    nav {
        display: none;
    }
    
    nav.active {
        display: block;
    }
}

/* Print Styles */
@media print {
    .ad-container, .sidebar, .mobile-menu-btn {
        display: none !important;
    }
    
    .container {
        max-width: 100%;
    }
    
    .card {
        break-inside: avoid;
    }
}