/* Fortnite Player Count Plugin Styles */

/* Frontend Stats Container Styles - Enhanced Design */
.aalivecounter-container {
    background: linear-gradient(145deg, #dd7805 0%, #ffa70f 100%);
    border-radius: 15px;
    padding: 20px;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    margin: 20px auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    max-width: 800px;
    box-sizing: border-box;
}

.aalivecounter-title {
    color: #060606;
    font-size: clamp(18px, 4vw, 24px);
    font-family: 'Kanit', sans-serif;
    font-weight: 900;
    margin: 0 0 5px 0;
}

.aalivecounter-header {
    border-bottom: 2px solid #060606;
    padding:0 10px 15px 10px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aalivecounter-subtitle {
    font-size: clamp(12px, 3vw, 14px);
    color: #060606;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 6px;
}

.aalivecounter-live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #ff0000;
    border-radius: 50%;
    animation: aalivecounter-pulse 1s infinite ease-in-out;
}

@keyframes aalivecounter-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.aalivecounter-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    text-align: center;
	padding: 0 10px;
}

.aalivecounter-stat-item {
    background: #dc6b00;
    border-radius: 10px;
    padding: 15px 10px;
    transition: transform 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.aalivecounter-stat-item:hover {
    transform: translateY(-5px);
    background: #ffa70f;
}

.aalivecounter-stat-label {
    color: #060606;
    font-size: clamp(12px, 3vw, 14px);
    font-weight: bold;
}

.aalivecounter-stat-label a {
    color: #060606;
    text-decoration: none;
}

.aalivecounter-stat-label a:hover {
    text-decoration: underline;
}

.aalivecounter-stat-value {
    order: -1;
    font-size: clamp(24px, 5vw, 34px);
    font-weight: 700;
    color: #ffffff;
    font-family: 'Kanit', sans-serif;
}

.aalivecounter-stat-icon {
    display: none; /* Hide icons by default as they might not match the design */
}

.aalivecounter-last-updated {
    text-align: right;
    font-size: clamp(10px, 2.5vw, 12px);
    color: #060606;
    margin-top: 20px;
    font-style: italic;
}

/* Error message styling */
.fortnite-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
    font-weight: bold;
}

/* Add this to your existing CSS */
.aalivecounter-refresh {
    margin-right: 8px !important;
}

.button.aalivecounter-refresh:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .aalivecounter-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .aalivecounter-stat-item {
        padding: 10px 5px;
    }
    
    .aalivecounter-container {
        padding: 15px;
        margin: 10px auto;
    }
}

/* Additional responsive breakpoint for tablets */
@media (max-width: 768px) and (min-width: 601px) {
    .aalivecounter-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .aalivecounter-stat-item:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
}
