/* SpotPrices.CSS */
/* PURPOSE: EXTRACTED CSS SECTIONS FOR GOLD/SILVER PRICE FETCHER INTEGRATION */

/* ========================================= */
/* SECTION 1: CSS VARIABLES (ADD TO :root) */
/* ========================================= */
:root {
    --bg-primary: #f4f4f4;
    --bg-secondary: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #dddddd;
    --gold-bg: #fff9e6;
    --gold-border: #DAA520;
    --silver-bg: #f5f5f5;
    --silver-border: #C0C0C0;
    --positive: #28a745;
    --negative: #dc3545;
    --neutral: #6c757d;
    --shadow: rgba(0, 0, 0, 0.1);
}


/* ========================================= */
/* SECTION 2: LOADING AND ERROR STYLES */
/* ========================================= */
.loading {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.error {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid rgba(220, 53, 69, 0.3);
    text-align: center;
}


/* ========================================= */
/* SECTION 3: DESKTOP/MOBILE VISIBILITY */
/* ========================================= */
.mobile-only {
    display: block;
}

.desktop-only {
    display: none;
}


/* ========================================= */
/* SECTION 4: TABBED CARD FOR ALL LAYOUTS */
/* ========================================= */
.tabbed-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}


.card-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
}

.card-tab {
    flex: 1;
    background: var(--bg-secondary);
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.card-tab.active {
    color: var(--text-primary);
    background: var(--bg-primary);
}

.card-tab:first-child.active {
    background: var(--gold-bg);
    border-bottom-color: var(--gold-border);
}

.card-tab:last-child.active {
    background: var(--silver-bg);
    border-bottom-color: var(--silver-border);
}

.tab-content {
    display: none;
    padding: 1.5rem;
}

.tab-content.active {
    display: block;
}

.gold-content {
    background: var(--gold-bg);
}

.silver-content {
    background: var(--silver-bg);
}



/* ========================================= */
/* SECTION 5: PRICE DATA GRID */
/* ========================================= */
.price-data {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
}

.data-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    text-align: center !important;
}

.price-data .data-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.data-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.data-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}


/* ========================================= */
/* SECTION 6: POSITIVE/NEGATIVE VALUE COLORS */
/* ========================================= */
.positive {
    color: var(--positive) !important;
}

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

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


/* ========================================= */
/* SECTION 7: RESPONSIVE DESIGN - MOBILE */
/* ========================================= */
@media (max-width: 768px) {
    .data-value {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .price-data {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    .data-label {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .data-value {
        font-size: 1.5rem;
        text-align: center;
    }
}