/**
 * PrivateGameZone - Custom Styles
 * Additional styles to complement TailwindCSS
 */

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s both;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar - Reddit style */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1b;
}

::-webkit-scrollbar-thumb {
    background: #343536;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #818384;
}

/* Form input focus effects */
input:focus,
textarea:focus,
select:focus {
    transition: all 0.3s ease;
}

/* Select dropdown styling for dark theme */
select {
    color: #d7dadc;
    background-color: #1a1a1b;
}

select option {
    background-color: #1a1a1b;
    color: #d7dadc;
    padding: 8px;
}

select optgroup {
    background-color: #272729;
    color: #818384;
    font-weight: 600;
}

select optgroup option {
    background-color: #1a1a1b;
    color: #d7dadc;
    padding-left: 20px;
}

/* Feature card hover effects - Reddit style */
.feature-card {
    transition: all 0.2s ease;
}

.feature-card:hover {
    border-color: #818384;
}

/* Message box styles - Reddit style */
.message-success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.message-error {
    background-color: rgba(255, 69, 0, 0.1);
    border: 1px solid rgba(255, 69, 0, 0.3);
    color: #ff8c69;
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal animations */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Premium border animation for admin/subscribed users */
@keyframes premiumBorder {
    0% {
        border-color: #ff4500;
        box-shadow: 0 0 15px rgba(255, 69, 0, 0.6), inset 0 0 15px rgba(255, 69, 0, 0.1);
    }
    25% {
        border-color: #5865F2;
        box-shadow: 0 0 15px rgba(88, 101, 242, 0.6), inset 0 0 15px rgba(88, 101, 242, 0.1);
    }
    50% {
        border-color: #00ff88;
        box-shadow: 0 0 15px rgba(0, 255, 136, 0.6), inset 0 0 15px rgba(0, 255, 136, 0.1);
    }
    75% {
        border-color: #ffd700;
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.6), inset 0 0 15px rgba(255, 215, 0, 0.1);
    }
    100% {
        border-color: #ff4500;
        box-shadow: 0 0 15px rgba(255, 69, 0, 0.6), inset 0 0 15px rgba(255, 69, 0, 0.1);
    }
}

.premium-border {
    border-width: 2px !important;
    animation: premiumBorder 4s ease-in-out infinite;
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
