/* Gold Price DOJI Plugin Styles */
.gold-price-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.gold-price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #d4af37;
}

.gold-price-title {
    margin: 0;
    color: #d4af37;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gold-icon {
    font-size: 28px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.gold-price-update {
    display: flex;
    align-items: center;
    gap: 15px;
}

.update-time {
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.refresh-btn {
    padding: 8px 16px;
    background: #d4af37;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.refresh-btn:hover {
    background: #c19a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.refresh-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.refresh-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.refresh-btn:hover .refresh-icon {
    transform: rotate(180deg);
}

.refresh-btn.loading .refresh-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.gold-price-table-wrapper {
    margin-bottom: 20px;
}

.gold-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gold-section {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.section-title {
    margin: 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.gold-price-table {
    width: 100%;
    border-collapse: collapse;
}

.gold-price-table thead {
    background: #f8f8f8;
}

.gold-price-table th {
    padding: 12px 15px;
    text-align: left;
    color: #666;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e0e0e0;
}

.gold-price-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.gold-price-table tbody tr:hover {
    background-color: #fffef5;
}

.gold-price-table tbody tr:last-child {
    border-bottom: none;
}

.gold-price-table td {
    padding: 12px 15px;
    font-size: 14px;
    color: #333;
}

.gold-name {
    font-weight: 600;
    color: #d4af37;
}

.gold-buy {
    color: #e74c3c;
    font-weight: 600;
}

.gold-sell {
    color: #27ae60;
    font-weight: 600;
}

.exchange-section .section-title {
    background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
}

.gold-price-note {
    padding: 15px;
    background: #fff9e6;
    border-left: 4px solid #d4af37;
    border-radius: 4px;
}

.gold-price-note p {
    margin: 5px 0;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

.gold-price-note a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
}

.gold-price-note a:hover {
    text-decoration: underline;
}

.gold-price-error {
    padding: 20px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    text-align: center;
}

.gold-price-error strong {
    display: block;
    font-size: 18px;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .gold-price-container {
        padding: 15px;
    }
    
    .gold-price-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .gold-price-title {
        font-size: 20px;
    }
    
    .gold-price-update {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .refresh-btn {
        width: 100%;
        justify-content: center;
    }
    
    .gold-price-table th,
    .gold-price-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .section-title {
        font-size: 14px;
        padding: 12px 15px;
    }
}

/* Notification styles */
.gold-notification {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    animation: slideDown 0.3s ease;
}

.gold-notification.notice-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.gold-notification.notice-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}