/* Professional Gold Price Display - Modern Design */

/* Container Styling */
.gold-price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 1.5rem auto 0;
    max-width: 900px;
    position: relative;
    padding-bottom: 140px; /* Reserve space for overlapping logos */
    z-index: 2;
}

.gold-price-container-pro {
    position: relative;
    width: 100%;
    background: linear-gradient(145deg, 
        #2a2419 0%,
        #3d3020 25%,
        #2d2516 50%,
        #3a2f1f 75%,
        #2a2419 100%);
    padding: 1.8rem 2rem 2.8rem;
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 10px 25px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(212, 175, 55, 0.15);
    color: #fff;
    overflow: visible;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 2;
}

.gold-price-container-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.06) 0%, transparent 50%);
    border-radius: 24px;
    pointer-events: none;
}

/* Header Section */
.gold-price-header-pro {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.header-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3);
    animation: headerIconPulse 3s ease-in-out infinite;
}

@keyframes headerIconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4); }
}

.gold-icon-svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.header-content {
    flex: 1;
}

.gold-price-title-pro {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gold-price-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0.9;
    font-weight: 500;
}

/* Body Section */
.gold-price-body-pro {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.price-section-pro {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.section-label-pro {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.label-icon {
    font-size: 1.1rem;
}

/* Spot Price Cards */
.price-grid-pro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.price-card-pro {
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.15) 0%, 
        rgba(255, 215, 0, 0.1) 50%,
        rgba(212, 175, 55, 0.15) 100%);
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.price-card-pro:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
    border-color: #FFD700;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.25) 0%, 
        rgba(255, 215, 0, 0.2) 50%,
        rgba(212, 175, 55, 0.25) 100%);
}

.card-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.card-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #FFD700;
    line-height: 1.2;
    margin-bottom: 0.2rem;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.card-value-large {
    font-size: 1.9rem;
}

.card-unit {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

/* Trading Cards */
.trading-grid-pro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.trading-card-pro {
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.trading-card-pro:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.buy-card {
    border-color: rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.08));
}

.buy-card:hover {
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.3);
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.15));
}

.sell-card {
    border-color: rgba(239, 68, 68, 0.5);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.08));
}

.sell-card:hover {
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(239, 68, 68, 0.15));
}

.trading-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.trading-badge {
    display: inline-flex;
    padding: 0.3rem 0.8rem;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.buy-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.sell-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.trading-subtitle {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.trading-prices {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.trading-price {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trading-price-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.trading-price-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.buy-card .trading-price-value {
    color: #10b981;
    text-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.sell-card .trading-price-value {
    color: #ef4444;
    text-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.trading-price-value small {
    font-size: 0.7em;
    opacity: 0.8;
    font-weight: 600;
}

.trading-divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Footer Section */
.gold-price-footer-pro {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info {
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-indicator-pro {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #10b981;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulseDotAnimation 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

@keyframes pulseDotAnimation {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.3);
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
    }
}

.update-time {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-source {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gold-price-wrapper {
        max-width: 100%;
        margin: 1.2rem auto 0;
        padding-bottom: 110px;
    }

    .gold-price-container-pro {
        padding: 1.6rem 1.2rem 2.6rem;
        border-radius: 18px;
    }

    .gold-price-header-pro {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .gold-price-title-pro {
        font-size: 1.5rem;
    }

    .price-grid-pro,
    .trading-grid-pro {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .price-card-pro,
    .trading-card-pro {
        padding: 0.85rem 1rem;
        min-height: 90px;
        border-radius: 12px;
    }

    .card-label {
        font-size: 0.7rem;
        margin-bottom: 0.4rem;
    }

    .card-value {
        font-size: 1.4rem;
    }

    .card-value-large {
        font-size: 1.7rem;
    }

    .card-unit {
        font-size: 0.75rem;
    }

    .trading-prices {
        flex-direction: column;
        gap: 0.4rem;
    }

    .trading-divider {
        transform: rotate(90deg);
    }

    .gold-price-footer-pro {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .gold-price-wrapper {
        max-width: 100%;
        margin: 1.4rem 0 0;
    }

    .gold-price-container-pro {
        padding: 1.4rem 0.9rem 2.4rem;
    }

    .header-icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .gold-icon-svg {
        width: 28px;
        height: 28px;
    }

    .gold-price-title-pro {
        font-size: 1.2rem;
    }

    .card-value {
        font-size: 1.3rem;
    }

    .card-value-large {
        font-size: 1.6rem;
    }

    .trading-price-value {
        font-size: 1rem;
    }
}

