/*
Theme Name: GoldNeverOld
Description: Gold Price Tracking Theme
Version: 1.0
*/

/* Dark Theme */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --accent-gold: #ffd700;
    --accent-yellow: #ffff00;
    --positive: #00ff00;
    --negative: #ff4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.dark-theme {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Layout */
.layout {
    display: grid;
    grid-template-columns: 160px 1fr 160px;
    gap: 20px;
    margin-top: 20px;
}

/* Header */
.sticky-header {
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    padding: 10px 0;
    z-index: 1000;
    border-bottom: 2px solid var(--accent-gold);
}

/* Sidebars */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Main Content */
.main-content {
    min-height: 80vh;
}

.content-section {
    background: var(--bg-secondary);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-gold);
}

/* Gold Price */
.gold-price-display {
    text-align: center;
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.current-price {
    font-size: 2.5em;
    color: var(--accent-yellow);
    font-weight: bold;
}

.price-label {
    display: block;
    font-size: 0.8em;
    color: var(--text-secondary);
    margin-top: 5px;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-top: 10px;
}

/* City Selector */
.city-selector {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    align-items: center;
    justify-content: center;
}

.city-dropdown {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--accent-gold);
    padding: 10px;
    border-radius: 5px;
    min-width: 150px;
}

.btn-primary {
    background: var(--accent-gold);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

/* Price Result */
.price-result {
    background: var(--bg-tertiary);
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.price-breakdown {
    text-align: left;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    padding: 5px 0;
    border-bottom: 1px solid #444;
}

.positive { color: var(--positive); }
.negative { color: var(--negative); }

/* ETF Link */
.etf-link {
    display: block;
    text-align: center;
    background: var(--accent-gold);
    color: #000;
    padding: 15px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

/* About Section */
.about-text {
    margin: 15px 0;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Ads */
.ad-placeholder {
    background: var(--bg-secondary);
    border: 2px dashed var(--accent-gold);
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    margin: 10px 0;
    border-radius: 5px;
}

/* Mobile */
@media (max-width: 768px) {
    .layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: none;
    }
}
/* Enhanced Mobile Styles */
@media (max-width: 768px) {
    .layout {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .sidebar {
        display: none;
    }
    
    .city-selector {
        flex-direction: column;
        gap: 10px;
    }
    
    .city-dropdown, .btn-primary {
        width: 100%;
        max-width: 300px;
    }
    
    .current-price {
        font-size: 2em;
    }
    
    .price-item {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .sticky-header, .bottom-ads {
        padding: 5px 0;
    }
    
    .ad-placeholder {
        padding: 15px;
        font-size: 0.9em;
    }
}

/* ETF Details Styling */
.etf-details {
    display: none;
    background: var(--bg-tertiary);
    padding: 15px;
    margin-top: 10px;
    border-radius: 5px;
}

.etf-details.active {
    display: block;
}

/* FAQ Styling */
.faq-question {
    background: var(--bg-tertiary);
    padding: 15px;
    margin: 5px 0;
    border-radius: 5px;
    cursor: pointer;
    border-left: 3px solid var(--accent-gold);
}

.faq-answer {
    display: none;
    padding: 15px;
    background: var(--bg-primary);
    border-radius: 0 0 5px 5px;
}

.faq-answer.active {
    display: block;
}

/* Donation Section */
.qrcode-container {
    display: none;
    text-align: center;
    margin-top: 15px;
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: 5px;
}

.qrcode-container.active {
    display: block;
}

.qrcode-container img {
    max-width: 200px;
    height: auto;
    border: 2px solid var(--accent-gold);
}