/* Gold Server Tooltip Styles */
.gold-servers-section {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.1));
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    position: relative;
}

.gold-servers-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.gold-servers-header h2 {
    color: #fbbf24;
    font-weight: bold;
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gold-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    animation: goldShine 2s infinite;
}

@keyframes goldShine {
    0%, 100% { box-shadow: 0 0 15px rgba(251, 191, 36, 0.5); }
    50% { box-shadow: 0 0 25px rgba(251, 191, 36, 0.8); }
}

.gold-servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.gold-server-card {
    background: rgba(30, 30, 40, 0.95);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 10px;
    padding: 15px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gold-server-card:hover {
    transform: translateY(-5px);
    border-color: #fbbf24;
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.3);
}

/* Premium Tooltip Container */
.gold-tooltip {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    width: 400px;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.98), rgba(30, 30, 45, 0.98));
    border: 2px solid #fbbf24;
    border-radius: 12px;
    padding: 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(251, 191, 36, 0.4);
    backdrop-filter: blur(10px);
}

.gold-server-card:hover .gold-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(calc(-100% - 10px));
}

/* Tooltip Arrow */
.gold-tooltip::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #fbbf24;
}

/* Tooltip Header with Gold Gradient */
.gold-tooltip-header {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    padding: 15px;
    border-radius: 10px 10px 0 0;
    color: #000;
}

.gold-tooltip-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gold-crown-icon {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.gold-tooltip-subtitle {
    font-size: 0.85rem;
    margin-top: 5px;
    opacity: 0.9;
}

/* Tooltip Body */
.gold-tooltip-body {
    padding: 15px;
    color: #fff;
}

/* Server Info Grid */
.gold-server-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.gold-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gold-info-icon {
    width: 20px;
    height: 20px;
    color: #fbbf24;
    flex-shrink: 0;
}

.gold-info-label {
    font-size: 0.85rem;
    color: #94a3b8;
}

.gold-info-value {
    font-size: 0.95rem;
    font-weight: bold;
    color: #fff;
    margin-left: auto;
}

/* Players Chart */
.gold-players-chart {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(251, 191, 36, 0.2);
}

.gold-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.gold-chart-title {
    font-size: 0.9rem;
    color: #94a3b8;
}

.gold-chart-time {
    font-size: 0.8rem;
    color: #64748b;
}

.gold-chart-graph {
    height: 60px;
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.1), transparent);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.gold-chart-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top, rgba(251, 191, 36, 0.3), transparent);
    clip-path: polygon(
        0% 80%,
        10% 70%,
        20% 75%,
        30% 60%,
        40% 65%,
        50% 50%,
        60% 55%,
        70% 40%,
        80% 45%,
        90% 35%,
        100% 40%,
        100% 100%,
        0% 100%
    );
}

.gold-chart-bars {
    display: flex;
    align-items: flex-end;
    height: 100%;
    gap: 2px;
    padding: 5px;
}

.gold-chart-bar {
    flex: 1;
    background: linear-gradient(to top, #fbbf24, #f59e0b);
    border-radius: 2px 2px 0 0;
    margin: 0 1px;
    opacity: 0.8;
    transition: opacity 0.2s;
    min-height: 3px; /* Ensure minimum visibility */
}

.gold-chart-bar:hover {
    opacity: 1;
}

/* Mini Chart for Tooltip */
.gold-tooltip-chart {
    height: 50px;
    display: flex;
    align-items: flex-end;
    gap: 1px;
    margin: 10px 0;
    padding: 5px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.gold-tooltip-bar {
    flex: 1;
    background: linear-gradient(to top, #fbbf24, #f59e0b);
    border-radius: 2px 2px 0 0;
    min-height: 3px;
    max-height: 100%;
    position: relative;
    opacity: 0.85;
    transition: all 0.2s ease;
    box-shadow: 0 -1px 2px rgba(251, 191, 36, 0.3);
}

.gold-tooltip-bar:hover {
    opacity: 1;
    transform: scaleY(1.1);
}

.gold-tooltip-bar::before {
    content: attr(data-players);
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: #fbbf24;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s;
}

.gold-tooltip-bar:hover::before {
    opacity: 1;
}

/* Peak Hours Indicator */
.gold-peak-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.gold-peak-icon {
    color: #fbbf24;
}

.gold-peak-text {
    font-size: 0.85rem;
}

.gold-peak-value {
    margin-left: auto;
    font-weight: bold;
    color: #fbbf24;
}

/* Premium Features */
.gold-features {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(251, 191, 36, 0.2);
}

.gold-feature-badge {
    padding: 4px 10px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 15px;
    font-size: 0.75rem;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Connect Button */
.gold-connect-btn {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gold-connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(251, 191, 36, 0.4);
}

.gold-connect-icon {
    font-size: 1.1rem;
}

/* Online Status */
.gold-online-status {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gold-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.gold-status-text {
    font-size: 0.75rem;
    color: #10b981;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gold-servers-grid {
        grid-template-columns: 1fr;
    }
    
    .gold-tooltip {
        width: 320px;
        left: 10px;
        right: 10px;
        transform: translateX(0) translateY(-100%);
    }
    
    .gold-server-card:hover .gold-tooltip {
        transform: translateX(0) translateY(calc(-100% - 10px));
    }
    
    .gold-tooltip::after {
        left: 30px;
    }
}

/* Loading Animation */
.gold-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: 50%;
    border-top-color: #fbbf24;
    animation: goldSpin 0.8s linear infinite;
}

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

/* Glow Effect for Premium */
.gold-glow {
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    background: linear-gradient(45deg, transparent, #fbbf24, transparent);
    opacity: 0;
    animation: goldGlow 3s linear infinite;
    pointer-events: none;
}

@keyframes goldGlow {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.3; }
}
