/* ===== CSS Variables ===== */
:root {
    --gold-primary: #D4AF37;
    --gold-light: #F4E4BC;
    --gold-dark: #996515;
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F4E4BC 50%, #D4AF37 100%);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-light: #6a6a7a;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #1a1a2e;
    --border-color: #e0e0e0;
    --success: #28a745;
    --danger: #dc3545;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ===== Navigation ===== */
.navbar {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--gold-dark);
}

.logo-icon {
    color: var(--gold-primary);
    font-size: 1.6rem;
}

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

.nav-link {
    padding: 10px 18px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-dark);
    background-color: var(--gold-light);
}

.lang-btn {
    background: var(--gold-gradient);
    color: var(--text-primary) !important;
    font-weight: 600;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
    background: var(--bg-primary);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--gold-dark);
}

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

.breadcrumbs .separator {
    margin: 0 8px;
    color: var(--text-light);
}

.breadcrumbs .current {
    color: var(--text-light);
}

/* ===== Hero Section ===== */
.hero {
    background: var(--gold-gradient);
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.last-updated {
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.7);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
}

/* ===== Main Content ===== */
.main-content {
    padding: 40px 0;
}

/* ===== Intro Section ===== */
.intro-section {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.intro-section h2 {
    font-size: 1.5rem;
    color: var(--gold-dark);
    margin-bottom: 15px;
}

.intro-section p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.8;
}

.intro-section p:last-child {
    margin-bottom: 0;
}

/* ===== Price Section ===== */
.price-section {
    margin-bottom: 40px;
}

.price-section h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.price-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: 20px;
    text-align: center;
}

.gold-24k .card-header {
    background: linear-gradient(135deg, #D4AF37, #F4E4BC);
}

.gold-22k .card-header {
    background: linear-gradient(135deg, #B8860B, #DAA520);
}

.gold-18k .card-header {
    background: linear-gradient(135deg, #CD853F, #DEB887);
}

.card-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.purity {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.7);
    padding: 3px 12px;
    border-radius: 15px;
    display: inline-block;
}

.card-body {
    padding: 25px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.price-row:last-of-type {
    border-bottom: none;
}

.price-row.highlight {
    background: var(--gold-light);
    margin: 10px -25px;
    padding: 15px 25px;
    border-radius: var(--radius-sm);
}

.price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gold-dark);
}

.price-change {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding-top: 15px;
    font-weight: 600;
}

.price-change.up {
    color: var(--success);
}

.price-change.down {
    color: var(--danger);
}

/* ===== Calculator Section ===== */
.calculator-section {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
}

.calculator-section h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.calc-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.calc-btn {
    grid-column: 1 / -1;
    background: var(--gold-gradient);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    padding: 16px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.calc-btn:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.calc-result {
    background: var(--gold-light);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.result-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 15px;
}

.result-details {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== City Prices Section ===== */
.city-prices-section {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
}

.city-prices-section h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.city-table-container {
    overflow-x: auto;
}

.city-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.city-table th,
.city-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.city-table th {
    background: var(--gold-light);
    font-weight: 600;
    color: var(--text-primary);
}

.city-table tr:hover {
    background: var(--bg-secondary);
}

.city-table td:nth-child(2),
.city-table td:nth-child(3) {
    font-weight: 600;
    color: var(--gold-dark);
}

/* ===== Chart Section ===== */
.chart-section {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
}

.chart-section h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.chart-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.chart-btn {
    padding: 10px 25px;
    border: 2px solid var(--gold-primary);
    background: transparent;
    color: var(--gold-dark);
    font-weight: 500;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
}

.chart-btn:hover,
.chart-btn.active {
    background: var(--gold-primary);
    color: var(--text-primary);
}

.chart-container {
    position: relative;
    height: 400px;
}

/* ===== FAQ Section ===== */
.faq-section {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
}

.faq-section h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.guide-content {
    margin-bottom: 30px;
}

.guide-content h3 {
    font-size: 1.2rem;
    color: var(--gold-dark);
    margin-bottom: 10px;
    margin-top: 20px;
}

.guide-content h3:first-child {
    margin-top: 0;
}

.guide-content p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-list {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

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

.faq-question {
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
    font-family: inherit;
}

.faq-question:hover {
    color: var(--gold-dark);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--gold-primary);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 0 20px;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== Latest Articles ===== */
.latest-articles {
    margin-bottom: 40px;
}

.latest-articles h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.article-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-card a {
    display: block;
}

.article-image {
    height: 160px;
    background-size: cover;
    background-position: center;
}

.article-content {
    padding: 25px;
}

.article-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.4;
}

.article-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: var(--gold-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.view-all-articles {
    text-align: center;
}

.btn-outline {
    display: inline-block;
    padding: 14px 40px;
    border: 2px solid var(--gold-primary);
    color: var(--gold-dark);
    font-weight: 600;
    border-radius: 30px;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--gold-primary);
    color: var(--text-primary);
}

/* ===== SEO Section ===== */
.seo-section {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
}

.seo-section h2 {
    font-size: 1.5rem;
    color: var(--gold-dark);
    margin-bottom: 20px;
}

.seo-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.seo-content p:last-child {
    margin-bottom: 0;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    color: #ffffff;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--gold-primary);
}

.footer-section p {
    color: #b0b0c0;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    color: #b0b0c0;
    font-size: 0.9rem;
}

.footer-section ul a:hover {
    color: var(--gold-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: #8a8a9a;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.footer-bottom a {
    color: var(--gold-primary);
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.footer-bottom .disclaimer {
    font-size: 0.8rem;
    color: #6a6a7a;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .calculator-container {
        grid-template-columns: 1fr;
    }

    .calc-result {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 20px;
        gap: 5px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-link {
        padding: 15px;
        text-align: center;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .calculator-section,
    .city-prices-section,
    .chart-section,
    .faq-section,
    .seo-section,
    .intro-section {
        padding: 25px;
    }

    .calc-form {
        grid-template-columns: 1fr;
    }

    .result-value {
        font-size: 2rem;
    }

    .price-section h2,
    .calculator-section h2,
    .city-prices-section h2,
    .chart-section h2,
    .faq-section h2,
    .latest-articles h2 {
        font-size: 1.4rem;
    }

    .chart-container {
        height: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 40px 0;
    }

    .price-cards {
        grid-template-columns: 1fr;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .city-table th,
    .city-table td {
        padding: 12px 10px;
        font-size: 0.9rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .chart-controls {
        flex-wrap: wrap;
    }

    .chart-btn {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-gold { color: var(--gold-dark); }
.bg-gold { background: var(--gold-light); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.p-20 { padding: 20px; }

/* ===== Animation ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

/* ===== Blog Page Styles ===== */
.blog-header {
    background: var(--gold-gradient);
    padding: 50px 0;
    text-align: center;
}

.blog-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.blog-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    height: 180px;
    background-color: var(--gold-light);
}

.blog-card-content {
    padding: 25px;
}

.blog-card-content h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card-content h2 a {
    color: var(--text-primary);
}

.blog-card-content h2 a:hover {
    color: var(--gold-dark);
}

.blog-card-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.blog-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* ===== Blog Post Styles ===== */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog-post-header {
    margin-bottom: 30px;
}

.blog-post-header h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 15px;
}

.blog-post-meta {
    color: var(--text-light);
    font-size: 0.9rem;
}

.blog-post-content {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.blog-post-content h2 {
    font-size: 1.5rem;
    color: var(--gold-dark);
    margin: 30px 0 15px;
}

.blog-post-content h2:first-child {
    margin-top: 0;
}

.blog-post-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.blog-post-content ul,
.blog-post-content ol {
    color: var(--text-secondary);
    margin: 15px 0;
    padding-left: 25px;
    line-height: 1.8;
}

.blog-post-content li {
    margin-bottom: 8px;
}

.blog-post-content a {
    color: var(--gold-dark);
    text-decoration: underline;
}

.blog-post-content a:hover {
    color: var(--gold-primary);
}

.blog-post-cta {
    background: var(--gold-light);
    padding: 25px;
    border-radius: var(--radius-md);
    margin: 30px 0;
    text-align: center;
}

.blog-post-cta p {
    margin-bottom: 15px;
}

.blog-post-cta a.btn {
    display: inline-block;
    background: var(--gold-gradient);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
}

/* ===== Page Styles ===== */
.page-header {
    background: var(--gold-gradient);
    padding: 50px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
}

.page-content {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: var(--radius-lg);
    margin: 40px auto;
    max-width: 900px;
    box-shadow: var(--shadow-md);
}

.page-content h2 {
    font-size: 1.4rem;
    color: var(--gold-dark);
    margin: 25px 0 15px;
}

.page-content h2:first-child {
    margin-top: 0;
}

.page-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.page-content ul {
    color: var(--text-secondary);
    margin: 15px 0;
    padding-left: 25px;
    line-height: 1.8;
}

.page-content li {
    margin-bottom: 8px;
}

/* ===== Contact Form ===== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form textarea {
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    width: 100%;
    min-height: 150px;
    resize: vertical;
    transition: var(--transition);
}

.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.contact-form input {
    width: 100%;
}

.submit-btn {
    background: var(--gold-gradient);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    padding: 16px 40px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* ===== Tools Page ===== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.tool-card {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.tool-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.tool-link {
    display: inline-block;
    background: var(--gold-gradient);
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}
