/* Game Servers Page Styles */

/* Hero Section */
.game-servers-hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.game-servers-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    opacity: 0.3;
}

.game-servers-hero .hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.game-servers-hero .hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
}

/* Game Selection Bar */
.game-selection-bar {
    background: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 70px;
    z-index: 100;
    border-bottom: 1px solid #e5e7eb;
}

.game-tabs-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.game-tabs {
    display: flex;
    gap: 0;
    min-width: max-content;
    padding: 0;
}

.game-tab {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
    position: relative;
}

.game-tab:hover {
    background: #f9fafb;
    color: #1f2937;
}

.game-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: #eff6ff;
}

.game-tab img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 8px;
}

/* Main Content Area */
.game-servers-content {
    padding: 3rem 0;
    background: #f9fafb;
    min-height: 600px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Sidebar Filters */
.filters-sidebar {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 150px;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.filter-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.reset-filters {
    background: transparent;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reset-filters:hover {
    background: #f3f4f6;
    color: #1f2937;
}

/* Filter Groups */
.filter-group {
    margin-bottom: 1.75rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

/* Price Range */
.price-range {
    padding: 0.5rem 0;
}

.price-range input[type="range"] {
    width: 100%;
    margin-bottom: 0.5rem;
    -webkit-appearance: none;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    outline: none;
}

.price-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(59,130,246,0.3);
}

.price-display {
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Custom Checkboxes */
.filter-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #4b5563;
}

.filter-checkbox:hover {
    color: #1f2937;
}

.filter-checkbox input {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin-left: 0.75rem;
    position: relative;
    transition: all 0.2s ease;
}

.filter-checkbox input:checked ~ .checkbox-custom {
    background: #3b82f6;
    border-color: #3b82f6;
}

.filter-checkbox input:checked ~ .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Packages Area */
.packages-area {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.active-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.active-game-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0;
}

/* View Options */
.view-options {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #6b7280;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.view-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Table View */
.packages-table-view {
    display: none;
    overflow-x: auto;
}

.packages-table-view.active {
    display: block;
}

.packages-table {
    width: 100%;
    border-collapse: collapse;
}

.packages-table thead {
    background: #f9fafb;
}

.packages-table th {
    text-align: right;
    padding: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.packages-table td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.95rem;
    color: #4b5563;
}

.packages-table tr:hover {
    background: #f9fafb;
}

.package-name {
    font-weight: 600;
    color: #1f2937;
}

.badge-recommended {
    display: inline-block;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.price {
    font-weight: 700;
    color: #3b82f6;
    font-size: 1.1rem;
}

.text-success {
    color: #10b981;
}

.support-badge {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.order-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #3b82f6;
    color: white;
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.order-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}

/* Cards View */
.packages-cards-view {
    display: none;
}

.packages-cards-view.active {
    display: block;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.package-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    border-color: #3b82f6;
}

.package-card.recommended {
    border-color: #fbbf24;
    box-shadow: 0 8px 25px rgba(251,191,36,0.15);
}

.card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.card-price {
    text-align: center;
    margin-bottom: 1.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 900;
    color: #3b82f6;
}

.price-period {
    font-size: 1rem;
    color: #6b7280;
}

.card-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.spec {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.spec i {
    color: #3b82f6;
    font-size: 1rem;
}

.card-features {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: #374151;
}

.feature i {
    color: #10b981;
    font-size: 1rem;
}

.order-btn-large {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 0.875rem;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.order-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59,130,246,0.4);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: #6b7280;
    font-size: 1rem;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-card i {
    font-size: 3rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
        max-height: none;
        margin-bottom: 2rem;
    }
    
    .packages-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .game-servers-hero .hero-title {
        font-size: 2rem;
    }
    
    .game-servers-hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .game-selection-bar {
        top: 60px;
    }
    
    .game-tab {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .game-tab img {
        width: 24px;
        height: 24px;
    }
    
    .packages-area {
        padding: 1.5rem;
    }
    
    .active-game-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .packages-table {
        font-size: 0.85rem;
    }
    
    .packages-table th,
    .packages-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .game-servers-hero {
        padding: 100px 0 40px;
    }
    
    .game-tab {
        padding: 0.875rem 1rem;
    }
    
    .game-tab span {
        display: none;
    }
    
    .filter-header h3 {
        font-size: 1.1rem;
    }
    
    .packages-area {
        padding: 1rem;
    }
    
    .view-btn span {
        display: none;
    }
    
    .order-btn {
        padding: 0.4rem 0.875rem;
        font-size: 0.85rem;
    }
}