/* Game Servers Page Styles - Matching Homepage Design */

:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Orbitron', 'Rajdhani', sans-serif;
    
    --font-size-hero: clamp(3rem, 5vw, 4.5rem);
    --font-size-h1: clamp(2.5rem, 4vw, 3.5rem);
    --font-size-h2: clamp(2rem, 3vw, 2.5rem);
    --font-size-h3: clamp(1.5rem, 2.5vw, 2rem);
    --font-size-h4: clamp(1.25rem, 2vw, 1.5rem);
    --font-size-h5: 1.125rem;
    --font-size-body-large: 1.125rem;
    --font-size-body: 1rem;
    --font-size-body-small: 0.875rem;
    --font-size-caption: 0.75rem;
    
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
    
    --primary-color: #3b82f6;
    --dark-blue: #1e40af;
    --text-color: #ffffff;
    --muted-text-color: #a1a1aa;
    --background-color: #0a0a0a;
    
    --title-gradient: linear-gradient(135deg, #007bff 0%, #ffffff 50%, #0056b3 100%);
    --title-text-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

section#main-body {
    background: linear-gradient(135deg,
            #0a0a0a 0%,
            #0f0f18 12%,
            #141428 25%,
            #0d0d1a 38%,
            #12122a 50%,
            #0b0b16 62%,
            #16162e 75%,
            #0a0a12 88%,
            #080808 100%
        );
}

/* Game Control Panel */
.game-control-panel {
    background: linear-gradient(135deg,
        rgba(15, 23, 42, 0.95) 0%,
        rgba(30, 41, 59, 0.9) 50%,
        rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    margin-bottom: 3rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.game-control-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(59, 130, 246, 0.8) 20%,
        rgba(147, 51, 234, 0.8) 50%,
        rgba(59, 130, 246, 0.8) 80%,
        transparent 100%);
    animation: panelGlow 3s ease-in-out infinite alternate;
}

.control-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.panel-indicator {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.panel-title {
    font-family: var(--font-display);
    font-size: var(--font-size-body-small);
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.panel-stats {
    font-family: var(--font-display);
    font-size: var(--font-size-body-small);
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
}

.control-panel-body {
    padding: 1.5rem;
}

.search-zone {
    margin-bottom: 2rem;
}

.search-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

#search_game {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem !important;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    color: var(--text-color);
    font-size: var(--font-size-body);
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    max-width: 100% !important;
}

#search_game:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
    background: rgba(0, 0, 0, 0.6);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(59, 130, 246, 0.3) !important;
}

#search_game::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.1rem;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.search-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
        rgba(59, 130, 246, 0.3),
        rgba(147, 51, 234, 0.3),
        rgba(59, 130, 246, 0.3));
    border-radius: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

#search_game:focus + .search-glow {
    opacity: 1;
}

.filter-zone {
    text-align: center;
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--muted-text-color);
    font-size: var(--font-size-body-small);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-header i {
    color: var(--primary-color);
}

.filter-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 12px 24px;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px;
    color: var(--muted-text-color) !important;
    font-size: var(--font-size-caption);
    font-family: var(--font-primary);
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 80px;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    justify-content: center !important;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    transform: translateY(-2px) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: var(--text-color) !important;
}

.filter-btn:focus,
.filter-btn:active {
    transform: translateY(-1px) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: var(--text-color) !important;
}

.filter-btn.active {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6, #06b6d4) !important;
    border: none !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.filter-btn.active::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.filter-btn.active:hover {
    background: linear-gradient(135deg, #1e40af, #2563eb, #0891b2) !important;
    color: #ffffff !important;
}

.filter-btn.active i {
    color: #ffffff !important;
}

.filter-btn:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.5) !important;
    outline-offset: 2px !important;
}

/* Animations */
@keyframes panelGlow {
    0% {
        opacity: 0.5;
        transform: scaleX(0.8);
    }
    100% {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Game Servers Grid */
.game-servers-container {
    padding: 80px 0;
    background: transparent;
    position: relative;
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-bold);
    text-align: center;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    text-shadow: var(--title-text-shadow);
    background: var(--title-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: var(--font-size-body-large);
    color: var(--muted-text-color);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-inline: auto;
    line-height: 1.6;
    font-weight: var(--font-weight-normal);
}

/* Game Server Cards */
.server-card {
    position: relative;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
}

.server-card:hover {
    transform: translateY(-2px) scale(1.002);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.15);
}

.server-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: brightness(0.75);
}

.server-card:hover .server-background {
    transform: scale(1.02);
}

.server-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.95));
    padding: 1.75rem 1.5rem 1.5rem;
    color: var(--text-color);
    text-align: left;
    transition: all 0.3s ease;
}

.server-card:hover .server-content {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.98));
}

.server-content h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.5rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.server-content p {
    color: #c0c0c0;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-size: 0.85rem;
    font-weight: var(--font-weight-normal);
    font-family: var(--font-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.server-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.price-label {
    font-size: 0.65rem;
    color: var(--muted-text-color);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: var(--font-weight-medium);
    font-family: var(--font-primary);
}

.price {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: var(--font-weight-extrabold);
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.price-period {
    font-size: 0.65rem;
    color: var(--muted-text-color);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: var(--font-weight-medium);
    font-family: var(--font-primary);
}

.server-button {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6, #06b6d4);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    width: 100%;
}

.server-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #1e40af, #2563eb, #0891b2);
}

.new-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: var(--font-size-caption);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* FAQ Section Styling */
.faq {
    background: transparent;
    position: relative;
}

.faq .section-title {
    margin-bottom: 3rem;
}

.faq .card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq .card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.faq .card-header {
    background: transparent;
    border: none;
    padding: 1.5rem;
}

.faq .card-header h5 a {
    color: var(--text-color);
    text-decoration: none;
    font-size: var(--font-size-body-large);
    font-weight: var(--font-weight-semibold);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.3s ease;
}

.faq .card-header h5 a:hover {
    color: var(--primary-color);
}

.faq .card-header h5 a::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq .card-header h5 a[aria-expanded="true"]::after {
    transform: rotate(0deg);
}

.faq .card-body {
    padding: 0 1.5rem 1.5rem;
    color: var(--muted-text-color);
    line-height: 1.6;
}

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

@keyframes shine {
    from {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    to {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes darkAtmosphericGlow {
    0% {
        opacity: 0.6;
        transform: scale(1) rotate(0deg);
    }
    33% {
        opacity: 0.8;
        transform: scale(1.01) rotate(0.3deg);
    }
    66% {
        opacity: 0.7;
        transform: scale(1.005) rotate(-0.2deg);
    }
    100% {
        opacity: 0.65;
        transform: scale(1.008) rotate(0.1deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .control-panel-body {
        padding: 1rem;
    }
    
    .control-panel-header {
        padding: 0.75rem 1rem;
    }
    
    .panel-title {
        font-size: 0.7rem;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        min-width: 70px;
        padding: 10px 16px;
        font-size: 0.65rem;
    }
    
    .filter-btn i {
        font-size: 0.9rem;
    }
    
    .server-card {
        height: 350px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .control-panel-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .panel-indicator {
        order: 2;
    }
    
    .panel-title {
        order: 1;
    }
    
    .panel-stats {
        order: 3;
    }
    
    .search-wrapper {
        max-width: 100%;
    }
    
    .search-input {
        padding: 0.875rem 0.875rem 0.875rem 3rem;
        font-size: 0.9rem;
    }
    
    .search-icon {
        left: 0.875rem;
        font-size: 1rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .filter-btn {
        flex-direction: row;
        gap: 0.5rem;
        min-width: 120px;
        width: 100%;
        max-width: 200px;
        padding: 10px 20px;
    }
    
    .server-card {
        height: 300px;
    }
    
    .server-content h3 {
        font-size: 1.25rem;
    }
    
    .price {
        font-size: 1.5rem;
    }
}

/* Loading State */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* No Results Message */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted-text-color);
}

.no-results h3 {
    font-size: var(--font-size-h3);
    color: var(--text-color);
    margin-bottom: 1rem;
}

.no-results p {
    font-size: var(--font-size-body-large);
    margin-bottom: 2rem;
}

.no-results .btn {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-blue));
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.no-results .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}