/*
Theme Name: GoldNeverOld
Description: Gold Price Tracking Theme
Version: 1.1
*/

/* Dark Theme - Enhanced */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --accent-gold: #ffd700;
    --accent-yellow: #ffed4e;
    --positive: #4CAF50;
    --negative: #f44336;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.dark-theme {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, 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: linear-gradient(135deg, var(--bg-secondary) 0%, #2a2a2a 100%);
    padding: 10px 0;
    z-index: 1000;
    border-bottom: 3px solid var(--accent-gold);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
}

/* Sidebars */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Main Content */
.main-content {
    min-height: 80vh;
}

.content-section {
    background: var(--bg-secondary);
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 12px;
    border-left: 5px solid var(--accent-gold);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Gold Price */
.gold-price-display {
    text-align: center;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, #3a3a3a 100%);
    padding: 30px 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.current-price {
    font-size: 2.8em;
    color: var(--accent-yellow);
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.price-label {
    display: block;
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-top: 8px;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-top: 12px;
    font-style: italic;
}

/* SEO Titles */
.seo-title {
    font-size: 2.2em;
    color: var(--accent-yellow);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
}

.section-title {
    font-size: 1.6em;
    color: var(--accent-gold);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 10px;
}

/* City Selector */
.city-selector {
    display: flex;
    gap: 12px;
    margin: 25px 0;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.city-dropdown {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--accent-gold);
    padding: 12px 15px;
    border-radius: 8px;
    min-width: 180px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.city-dropdown:focus {
    outline: none;
    border-color: var(--accent-yellow);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #ffed4e 100%);
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* Price Result */
.price-result {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.price-breakdown {
    text-align: left;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin: 12px 0;
    padding: 8px 0;
    border-bottom: 1px solid #444;
    align-items: center;
}

.price-item:last-child {
    border-bottom: none;
}

.positive { 
    color: var(--positive);
    font-weight: bold;
}

.negative { 
    color: var(--negative);
    font-weight: bold;
}

/* ETF Link */
.etf-link {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #ffed4e 100%);
    color: #000;
    padding: 18px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 10px;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.etf-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

/* About Section */
.about-text {
    margin: 18px 0;
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 1.05em;
}

/* Enhanced Ads Styling */
.ad-placeholder {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #2a2a2a 100%);
    border: 2px dashed var(--accent-gold);
    padding: 25px;
    text-align: center;
    color: var(--text-secondary);
    margin: 15px 0;
    border-radius: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.ad-placeholder:hover {
    border-style: solid;
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
}

/* New Additional Ad Places */
.mid-content-ad {
    margin: 25px 0;
    text-align: center;
}

.end-content-ad {
    margin: 25px 0;
    text-align: center;
}

/* ETF Specific Enhanced Styles */
.etf-list {
    margin: 25px 0;
}

.etf-item {
    background: var(--bg-tertiary);
    border: 1px solid #444;
    border-radius: 10px;
    margin: 15px 0;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.etf-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s;
}

.etf-item:hover::before {
    left: 100%;
}

.etf-item:hover {
    background: #333;
    border-color: var(--accent-gold);
    transform: translateX(5px);
}

.etf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.etf-name {
    color: var(--text-primary);
    font-size: 1.2em;
}

.etf-price {
    color: var(--accent-yellow);
    font-size: 1.1em;
}

.etf-details {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444;
    animation: fadeIn 0.3s ease;
}

.etf-details.active {
    display: block;
}

.performance p {
    margin: 10px 0;
    color: var(--text-secondary);
    font-size: 1em;
}

/* FAQ Enhanced Styles */
.faq-container {
    margin: 25px 0;
}

.faq-item {
    background: var(--bg-tertiary);
    border-radius: 10px;
    margin: 15px 0;
    overflow: hidden;
    border: 1px solid #444;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent-gold);
}

.faq-question {
    padding: 18px;
    background: var(--bg-secondary);
    cursor: pointer;
    font-weight: bold;
    border-left: 5px solid var(--accent-gold);
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #2a2a2a;
}

.faq-answer {
    display: none;
    padding: 20px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.7;
    border-top: 1px solid #444;
    animation: slideDown 0.3s ease;
}

.faq-answer.active {
    display: block;
}

/* App Download Enhanced */
.app-download {
    text-align: center;
    padding: 35px;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, #3a3a3a 100%);
    border-radius: 12px;
    border: 2px dashed var(--accent-gold);
}

.download-btn {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #ffed4e 100%);
    color: #000;
    border: none;
    padding: 15px 35px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

/* Affiliate Link Enhanced */
.affiliate-link {
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.affiliate-btn {
    color: var(--accent-yellow);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.affiliate-btn:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

/* Connect Page Specific */
.telegram-connect, .donation-section {
    text-align: center;
    padding: 30px;
}

.telegram-btn, .social-btn, .donate-btn {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #ffed4e 100%);
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin: 10px;
    transition: all 0.3s ease;
}

.telegram-btn:hover, .social-btn:hover, .donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.other-links {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

.link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #444;
}

/* Donation QR Code */
.qrcode-container {
    display: none;
    text-align: center;
    margin-top: 20px;
    padding: 25px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    border: 2px solid var(--accent-gold);
    animation: fadeIn 0.5s ease;
}

.qrcode-container.active {
    display: block;
}

.qrcode-container img {
    max-width: 220px;
    height: auto;
    border: 3px solid var(--accent-gold);
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { 
        opacity: 0;
        transform: translateY(-10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 1024px) {
    .layout {
        grid-template-columns: 120px 1fr 120px;
        gap: 15px;
    }
    
    .sidebar .ad-placeholder {
        padding: 15px;
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    .layout {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .sidebar {
        display: none;
    }
    
    .city-selector {
        flex-direction: column;
        gap: 12px;
    }
    
    .city-dropdown, .btn-primary {
        width: 100%;
        max-width: 300px;
    }
    
    .current-price {
        font-size: 2.2em;
    }
    
    .seo-title {
        font-size: 1.8em;
    }
    
    .price-item {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 10px 0;
    }
    
    .sticky-header, .bottom-ads {
        padding: 8px 0;
    }
    
    .ad-placeholder {
        padding: 20px;
        font-size: 0.9em;
        margin: 10px 0;
    }
    
    .content-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .etf-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .etf-price {
        align-self: flex-end;
    }
    
    .app-download {
        padding: 25px 15px;
    }
    
    .download-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .link-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    /* Hide sidebars on mobile */
    .left-sidebar, .right-sidebar {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .content-section {
        padding: 15px;
    }
    
    .current-price {
        font-size: 1.8em;
    }
    
    .seo-title {
        font-size: 1.5em;
    }
    
    .section-title {
        font-size: 1.3em;
    }
    
    .gold-price-display {
        padding: 20px 15px;
    }
}

/* Translation Section Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.translate-btn {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #ffed4e 100%);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.translate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.feature-list li {
    margin: 15px 0;
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border-left: 4px solid var(--accent-gold);
    line-height: 1.6;
}

.quote-section {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, #3a3a3a 100%);
    border-radius: 10px;
    border-left: 5px solid var(--accent-gold);
}

blockquote {
    font-style: italic;
    font-size: 1.2em;
    line-height: 1.6;
    margin: 0;
    color: var(--accent-yellow);
}

cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    color: var(--text-secondary);
    font-size: 0.9em;
}
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }
    
    .main-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #1a1a1a;
        padding: 20px;
        z-index: 1000;
        border-top: 2px solid var(--accent-gold);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    }
    
    .main-menu.active {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    .main-menu ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-menu a {
        display: block;
        padding: 12px 15px;
        border: 1px solid #444;
        border-radius: 5px;
        text-align: center;
        font-size: 1.1em;
    }
    
    .main-menu a:hover {
        background: var(--accent-gold);
        color: #000;
        border-color: var(--accent-gold);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}