/* Gold Price Tracker Plugin Styles */

.gpt-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px 20px;
    border-radius: 15px;
    color: #333;
    margin: 20px 0;
}

.gpt-header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease;
}

.gpt-header h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.gpt-header .update-time {
    font-size: 0.9em;
    opacity: 0.9;
}

.gpt-top-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gpt-price-card {
    background: white;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease;
    position: relative;
    overflow: hidden;
}

.gpt-price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
}

.gpt-price-card.world::before {
    background: linear-gradient(90deg, #4facfe, #00f2fe);
}

.gpt-price-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.gpt-flag-icon {
    font-size: 2.5em;
    margin-right: 15px;
}

.gpt-price-card-title {
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
}

.gpt-current-price {
    font-size: 3em;
    font-weight: bold;
    color: #FFD700;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.gpt-price-card.world .gpt-current-price {
    color: #4facfe;
}

.gpt-price-change {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1em;
}

.gpt-price-change.up {
    background: #d4edda;
    color: #155724;
}

.gpt-price-change.down {
    background: #f8d7da;
    color: #721c24;
}

.gpt-chart-container {
    margin-top: 25px;
    height: 250px;
    position: relative;
}

.gpt-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.gpt-info-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease;
}

.gpt-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.gpt-info-card-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.gpt-info-card-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.gpt-info-card-content {
    color: #666;
    line-height: 1.6;
}

.gpt-price-table {
    width: 100%;
    margin-top: 15px;
}

.gpt-price-table tr {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.gpt-price-table tr:last-child {
    border-bottom: none;
}

.gpt-price-label {
    font-weight: 600;
    color: #555;
}

.gpt-price-value {
    font-weight: bold;
    color: #FFD700;
}

.gpt-news-item {
    padding: 12px 0;
    border-bottom: 1px dashed #ddd;
}

.gpt-news-item:last-child {
    border-bottom: none;
}

.gpt-news-time {
    font-size: 0.85em;
    color: #999;
    margin-bottom: 5px;
}

.gpt-news-content {
    color: #555;
    line-height: 1.5;
}

/* Gradient backgrounds */
.gpt-gradient-bg-1 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gpt-gradient-bg-2 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.gpt-gradient-bg-3 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.gpt-gradient-bg-4 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.gpt-gradient-card {
    color: white;
}

.gpt-gradient-card .gpt-info-card-title,
.gpt-gradient-card .gpt-info-card-content,
.gpt-gradient-card .gpt-price-label,
.gpt-gradient-card .gpt-news-content {
    color: white;
}

.gpt-stat-number {
    font-size: 2.5em;
    font-weight: bold;
    margin: 15px 0;
}

.gpt-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to { 
        transform: rotate(360deg); 
    }
}

/* Responsive */
@media (max-width: 768px) {
    .gpt-top-section {
        grid-template-columns: 1fr;
    }
    
    .gpt-info-grid {
        grid-template-columns: 1fr;
    }

    .gpt-header h2 {
        font-size: 1.8em;
    }

    .gpt-current-price {
        font-size: 2.2em;
    }
}
