/*
Theme Name: BTMC
Description: Giá vàng hôm nay
Version: 1.0
Author: Dai Nguyen
Text Domain: btmc
*/

/* Import Google Fonts - Open Sans */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* Root Variables - Gold Price Theme */
:root {
    /* Primary Gold Colors */
    --gold-primary: #D4AF37;
    --gold-dark: #B8860B;
    --gold-light: #F4E4C1;
    --gold-border: #E5C77F;

    /* Brand Colors */
    --brand-navy: #1E3A5F;
    --brand-blue: #2E5C8A;
    --brand-blue-light: #3A7BC8;

    /* Functional Colors */
    --success-green: #10B981;
    --success-light: #D1FAE5;
    --danger-red: #EF4444;
    --danger-light: #FEE2E2;

    /* Neutral Colors */
    --bg-primary: #F5F5F5;
    --bg-secondary: #F3F4F6;
    --bg-white: #FFFFFF;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --border-color: #E5E7EB;

    /* Legacy support */
    --primary-color: #D4AF37;
    --primary-rgb: 212, 175, 55;
    --font-family: "Inter", sans-serif;
}

/* Global Styles */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Override Bootstrap Primary Color */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: rgba(var(--primary-rgb), 0.8);
    border-color: rgba(var(--primary-rgb), 0.8);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Navbar Styles */
.navbar-brand img {
    max-height: 40px;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

body {
    padding-top: 90px;
}

.h1, h1 {
    font-size: 2rem;
}

.h2, h2 {
    font-size: 1.8rem;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Footer Styles */
.footer {
    background-color: #f8f9fa;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-menu li {
    margin: 0 1rem;
}

.footer-menu a {
    color: #6c757d;
    text-decoration: none;
}

.footer-menu a:hover {
    color: var(--primary-color);
}

.app-links a {
    display: inline-block;
    margin: 0 0.5rem;
}

.app-links img {
    height: 40px;
}

/* Breadcrumbs */
.breadcrumb {
    background-color: transparent;
    padding: 0.5rem 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

/* FAQ Styles */
.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.faq-question {
    background-color: #f8f9fa;
    padding: 1rem;
    cursor: pointer;
    border-bottom: 1px solid #dee2e6;
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
}

.faq-answer {
    padding: 1rem;
    display: none;
}

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

.faq-answer ul, .faq-answer ol {
    margin: 15px 0;
    padding-left: 25px;
}

.faq-answer li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.faq-answer h4 {
    font-size: 1.2rem;
}

.related-keywords {
    margin-bottom: 20px;
}

.related-keywords h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 15px;
}

.keyword {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 5px 10px;
    margin: 3px;
    border-radius: 15px;
    font-size: 14px;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }

    .footer-menu ul {
        flex-direction: column;
        text-align: center;
    }

    .footer-menu li {
        margin: 0.25rem 0;
    }
}

/* Search Form */
.search-form {
    max-width: 400px;
}

/* Post */
.recent-posts-section h5.card-title {
    font-size: 1rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* Post meta */
.post-meta {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-meta a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Archive styles */
.archive-header {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

/* ========================================
   GOLD PRICE TABLE STYLES
   ======================================== */

/* Gold Price Table Wrapper */
.btmc-gold-price-table-wrap {
    background: var(--bg-white);
    border-radius: 12px;
}

/* Gold Price Header */
.btmc-gold-price-header {
    border-bottom: 3px solid var(--gold-primary);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--bg-white) 100%);
    padding: 0.75rem;
    border-radius: 8px;
}

.btmc-gold-price-brand-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btmc-gold-price-brand-name::before {
    content: "💰";
    font-size: 1.5rem;
}

.btmc-gold-price-update-time {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btmc-gold-price-update-time::before {
    content: "🕐";
    font-size: 1rem;
}

/* Gold Price Table - Clean Design */
.btmc-gold-price-table-wrap .table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--gold-border);
    border-radius: 8px;
    overflow: hidden;
}

.btmc-gold-price-table-wrap .table thead {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-blue) 100%) !important;
}

.btmc-gold-price-table-wrap .table thead th {
    color: #FFFFFF !important;
    background: transparent !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btmc-gold-price-table-wrap .table thead tr th:first-child {
    border-top-left-radius: 8px;
}

.btmc-gold-price-table-wrap .table thead tr th:last-child {
    border-top-right-radius: 8px;
}

/* Table Body - No Stripes, Clean Rows */
.btmc-gold-price-table-wrap .table tbody tr {
    background-color: var(--bg-white);
    transition: all 0.2s ease;
}

.btmc-gold-price-table-wrap .table tbody tr:hover {
    background-color: var(--gold-light);
    transform: translateX(4px);
    border-left: 4px solid var(--gold-primary);
}

.btmc-gold-price-table-wrap .table tbody tr:last-child td {
    border-bottom: none;
}

.btmc-gold-price-table-wrap .table tbody td {
    padding: 0.75rem;
    vertical-align: middle;
    font-size: 1rem;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid var(--gold-border);
}

/* Gold Type Column */
.btmc-gold-price-table-wrap .table tbody td:first-child {
    font-weight: 600;
    color: var(--brand-navy);
    position: relative;
}

.btmc-gold-price-table-wrap .table tbody td:first-child::before {
    content: "▸";
    color: var(--gold-primary);
    margin-right: 0.5rem;
    font-weight: bold;
}

/* Price Columns with Better Visual Hierarchy */
.btmc-gold-price-table-wrap .table tbody td.text-end {
    font-family: 'Inter', monospace;
    font-weight: 600;
    font-size: 1.05rem;
}

/* Buy Price - Green */
.btmc-gold-price-table-wrap .table tbody td .text-success {
    color: var(--text-primary) !important;
    background: var(--success-light);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    display: inline-block;
    font-weight: 700;
}

/* Sell Price - Red */
.btmc-gold-price-table-wrap .table tbody td .text-danger {
    color: var(--danger-red) !important;
    background: var(--danger-light);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    display: inline-block;
    font-weight: 700;
}

/* View More Button */
.btmc-gold-price-footer {
    padding-top: 1rem;
}

.btmc-gold-price-footer .btn-primary {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btmc-gold-price-footer .btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-primary) 100%);
}

/* Responsive Design for Gold Price Table */
@media (max-width: 768px) {
    .gold-price-section, .btmc-gold-price-table-wrap {
        background-color: transparent !important;
    }

    .btmc-gold-price-header {
        padding: 1rem;
    }

    .btmc-gold-price-brand-name {
        font-size: 1.5rem;
    }

    .btmc-gold-price-table-wrap .table thead th,
    .btmc-gold-price-table-wrap .table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }

    .btmc-gold-price-table-wrap .table tbody td .text-success,
    .btmc-gold-price-table-wrap .table tbody td .text-danger {
        padding: 0.25rem 0.5rem;
        font-size: 0.9rem;
    }
}