/**
 * Gold Price Plugin - Frontend Styles
 */

.gold-price-widget {
    max-width: 500px;
    margin: 0 auto 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: sans-serif;
}

.gold-price-title {
    margin: 0;
    padding: 15px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.gold-price-tabs {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.gold-price-tab {
    flex: 1;
    padding: 10px;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: normal;
    transition: background-color 0.3s, color 0.3s;
}

.gold-price-tab:hover {
    opacity: 0.8;
}

.gold-price-tab.active {
    font-weight: bold;
}

.gold-price-content {
    padding: 15px;
}

.gold-price-currency-selector {
    margin-bottom: 20px;
    text-align: center;
}

.gold-price-currency-selector select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

.gold-price-carat-container {
    margin-bottom: 15px;
    transition: opacity 0.3s ease;
}

.gold-price-carat-select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    min-width: 120px;
    width: auto;
}

.gold-price-carat-select:hover,
.gold-price-currency-selector select:hover {
    border-color: #999;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gold-price-prices {
    display: flex;
    margin-bottom: 20px;
}

.gold-price-buy, .gold-price-sell {
    flex: 1;
    text-align: center;
    padding: 15px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.6);
    margin: 0 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.gold-price-buy:hover, .gold-price-sell:hover {
    transform: translateY(-2px);
}

.gold-price-buy .label, .gold-price-sell .label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: rgba(0, 0, 0, 0.6);
}

.gold-price-buy .price, .gold-price-sell .price {
    display: block;
    font-size: 22px;
    font-weight: bold;
}

.gold-price-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.gold-price-refresh {
    background-color: #ffd700;
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.gold-price-refresh:hover {
    background-color: #e6c300;
}

.gold-price-refresh:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.gold-price-timestamp {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
}

/* Responsive styling */
@media (max-width: 480px) {
    .gold-price-prices {
        flex-direction: column;
    }
    
    .gold-price-buy, .gold-price-sell {
        margin: 5px 0;
    }
    
    .gold-price-footer {
        flex-direction: column;
    }
    
    .gold-price-refresh {
        margin-bottom: 10px;
    }
    
    .gold-price-timestamp {
        text-align: center;
    }
}
