/* === Базовые стили === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    /* Apply dark theme hero styling globally */
    background: linear-gradient(135deg, #0f1016 0%, #1a1d2a 50%, #0f1016 100%);
}

/* Global hero-style background for entire page */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(122, 60, 255, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(0, 212, 106, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 50% 20%, rgba(13, 110, 253, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: -2;
}

/* Global animated particles for entire page */
.global-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.global-particles .particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(141, 92, 255, 0.12);
    animation: float-particle-global 20s linear infinite;
}

.global-particles .particle-1 { width: 8px; height: 8px; top: 10%; left: 10%; animation-delay: 0s; }
.global-particles .particle-2 { width: 6px; height: 6px; top: 30%; left: 80%; animation-delay: 3s; background: rgba(181, 101, 255, 0.15); }
.global-particles .particle-3 { width: 4px; height: 4px; top: 60%; left: 20%; animation-delay: 6s; }
.global-particles .particle-4 { width: 10px; height: 10px; top: 80%; left: 70%; animation-delay: 9s; background: rgba(108, 48, 204, 0.1); }
.global-particles .particle-5 { width: 5px; height: 5px; top: 40%; left: 50%; animation-delay: 12s; }
.global-particles .particle-6 { width: 7px; height: 7px; top: 20%; left: 30%; animation-delay: 15s; }
.global-particles .particle-7 { width: 9px; height: 9px; top: 70%; left: 40%; animation-delay: 18s; background: rgba(167, 139, 250, 0.08); }

@keyframes float-particle-global {
    0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-120vh) translateX(50px) rotate(360deg); opacity: 0; }
}

/* === Шапка === */
.site-header {
    padding: 12px 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.navbar-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 2px;
}

/* === Кнопки в шапке === */
.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #fff;
    border-radius: 10px;
    padding: 8px 16px;
    font-weight: 700;
    transition: background 0.3s ease, transform 0.2s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-btn.login {
    background: linear-gradient(90deg, #7a3cff, #9b5fff);
    color: #fff;
    font-weight: 600;
}

.nav-btn.login:hover {
    opacity: 0.9;
}

/* === Переключатель темы === */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: background 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* === Основной контент === */
main {
    min-height: 80vh;
}

/* === Анимация при смене темы === */
html, body, .site-header {
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* === Выбор языка === */
/* Кнопка языка */
.btn-lang {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 0;
  border: none;
  background-color: #2b2f3a; /* можно менять под тему */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* флаг не выходит за круг */
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn-lang:hover {
  transform: scale(1.05);
  box-shadow: 0 0 8px rgba(124, 77, 255, 0.5);
}

.btn-lang .lang-flag {
  width: 100%;
  height: 100%;
  object-fit: cover; /* флаг полностью заполняет круг */
  border-radius: 50%; /* чтобы остался круг */
  display: block; /* чтобы не было лишнего inline spacing */
}
/* === Футерный селектор языка === */

/* Контейнер селектора */
.lang-selector {
  position: relative;
}

/* Кнопка языка */
.btn-lang {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 0;
  border: none;
  background-color: #2b2f3a; /* можно менять под тему */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* флаг не выходит за круг */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-lang:hover {
  transform: scale(1.05);
  box-shadow: 0 0 6px rgba(124, 77, 255, 0.5);
}

/* Флаг внутри кнопки */
.btn-lang img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Список языков — раскрывается вверх */
.lang-list {
  display: flex;
  flex-direction: column;
  background: #2b2f3a;
  padding: 6px;
  border-radius: 12px;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 100;

  position: absolute;
  bottom: 50px; /* над кнопкой */
  right: 0;      /* по правому краю кнопки */

  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.lang-list.show {
  opacity: 1;
  transform: translateY(0);
}

/* Флаги в списке */
.lang-list img {
  width: 36px;
  height: 36px;
  cursor: pointer;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  opacity: 0.85;
}

.lang-list img:hover {
  transform: scale(1.2);
  opacity: 1;
  box-shadow: 0 0 6px rgba(124, 77, 255, 0.5);
}

/* Активный язык */
.lang-item.active {
  box-shadow: 0 0 8px rgba(124, 77, 255, 0.8);
  transform: scale(1.1);
}

/* === Фильтрация игр === */
.hide {
    display: none !important;
}


/* === Premium Server Features === */
.server-card-new.premium-highlighted {
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.6), 0 0 60px rgba(255, 107, 107, 0.3);
    border: 2px solid #ff6b6b;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 107, 107, 0.05));
    transform: scale(1.02);
    animation: premium-glow 2s ease-in-out infinite alternate;
}

@keyframes premium-glow {
    0% { box-shadow: 0 0 30px rgba(255, 107, 107, 0.6), 0 0 60px rgba(255, 107, 107, 0.3); }
    100% { box-shadow: 0 0 40px rgba(255, 107, 107, 0.8), 0 0 80px rgba(255, 107, 107, 0.5); }
}

/* === Цветные варианты выделения === */

/* Голубое выделение */
.server-card-new.premium-highlighted.highlight-blue {
    box-shadow: 0 0 30px rgba(0, 123, 255, 0.6), 0 0 60px rgba(0, 123, 255, 0.3);
    border: 2px solid #007bff;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 123, 255, 0.05));
    animation: premium-glow-blue 2s ease-in-out infinite alternate;
}

.server-card-new.premium-highlighted.highlight-purple {
    box-shadow: 0 0 30px rgba(155, 95, 255, 0.6), 0 0 60px rgba(155, 95, 255, 0.3);
    border: 2px solid #9b5fff;
    background: linear-gradient(135deg, rgba(155, 95, 255, 0.1), rgba(155, 95, 255, 0.05));
    animation: premium-glow-purple 2s ease-in-out infinite alternate;
}

.server-card-new.premium-highlighted.highlight-red {
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.6), 0 0 60px rgba(255, 107, 107, 0.3);
    border: 2px solid #ff6b6b;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 107, 107, 0.05));
    animation: premium-glow-red 2s ease-in-out infinite alternate;
}

.server-card-new.premium-highlighted.highlight-green {
    box-shadow: 0 0 30px rgba(40, 167, 69, 0.6), 0 0 60px rgba(40, 167, 69, 0.3);
    border: 2px solid #28a745;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    animation: premium-glow-green 2s ease-in-out infinite alternate;
}

.server-card-new.premium-highlighted.highlight-orange {
    box-shadow: 0 0 30px rgba(253, 126, 20, 0.6), 0 0 60px rgba(253, 126, 20, 0.3);
    border: 2px solid #fd7e14;
    background: linear-gradient(135deg, rgba(253, 126, 20, 0.1), rgba(253, 126, 20, 0.05));
    animation: premium-glow-orange 2s ease-in-out infinite alternate;
}

.server-card-new.premium-highlighted.highlight-pink {
    box-shadow: 0 0 30px rgba(232, 62, 140, 0.6), 0 0 60px rgba(232, 62, 140, 0.3);
    border: 2px solid #e83e8c;
    background: linear-gradient(135deg, rgba(232, 62, 140, 0.1), rgba(232, 62, 140, 0.05));
    animation: premium-glow-pink 2s ease-in-out infinite alternate;
}

/* Цветные анимации свечения */
@keyframes premium-glow-blue {
    0% { box-shadow: 0 0 30px rgba(0, 123, 255, 0.6), 0 0 60px rgba(0, 123, 255, 0.3); }
    100% { box-shadow: 0 0 40px rgba(0, 123, 255, 0.8), 0 0 80px rgba(0, 123, 255, 0.5); }
}

@keyframes premium-glow-purple {
    0% { box-shadow: 0 0 30px rgba(155, 95, 255, 0.6), 0 0 60px rgba(155, 95, 255, 0.3); }
    100% { box-shadow: 0 0 40px rgba(155, 95, 255, 0.8), 0 0 80px rgba(155, 95, 255, 0.5); }
}

@keyframes premium-glow-red {
    0% { box-shadow: 0 0 30px rgba(255, 107, 107, 0.6), 0 0 60px rgba(255, 107, 107, 0.3); }
    100% { box-shadow: 0 0 40px rgba(255, 107, 107, 0.8), 0 0 80px rgba(255, 107, 107, 0.5); }
}

@keyframes premium-glow-green {
    0% { box-shadow: 0 0 30px rgba(40, 167, 69, 0.6), 0 0 60px rgba(40, 167, 69, 0.3); }
    100% { box-shadow: 0 0 40px rgba(40, 167, 69, 0.8), 0 0 80px rgba(40, 167, 69, 0.5); }
}

@keyframes premium-glow-orange {
    0% { box-shadow: 0 0 30px rgba(253, 126, 20, 0.6), 0 0 60px rgba(253, 126, 20, 0.3); }
    100% { box-shadow: 0 0 40px rgba(253, 126, 20, 0.8), 0 0 80px rgba(253, 126, 20, 0.5); }
}

@keyframes premium-glow-pink {
    0% { box-shadow: 0 0 30px rgba(232, 62, 140, 0.6), 0 0 60px rgba(232, 62, 140, 0.3); }
    100% { box-shadow: 0 0 40px rgba(232, 62, 140, 0.8), 0 0 80px rgba(232, 62, 140, 0.5); }
}

/* Featured Servers Sidebar Block */
.featured-servers-block {
    background: linear-gradient(135deg, rgba(24, 26, 34, 0.95), rgba(43, 47, 58, 0.95));
    border: 1px solid rgba(141, 92, 255, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.featured-servers-block h4 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(90deg, #7a3cff, #9b5fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.featured-server-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    background: #2a1d4a;
    border: 1px solid rgba(141, 92, 255, 0.3);
}

.featured-server-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.featured-server-rank {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 14px;
}

.featured-server-rank.rank-1 { background: linear-gradient(90deg, gold, #ff8c00); }
.featured-server-rank.rank-2 { background: linear-gradient(90deg, #c0c0c0, #808080); }
.featured-server-rank.rank-3 { background: linear-gradient(90deg, #cd7f32, #a0522d); }
.featured-server-rank.rank-default { background: rgba(100, 100, 100, 0.8); }

.featured-server-info h5 {
    margin: 0;
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.2;
}

.featured-server-stats {
    font-size: 0.75rem;
    color: #e0e0e0;
    opacity: 0.8;
}

.featured-server-stats .votes-count {
    color: #9b5fff;
    font-weight: 600;
}

/* === Cookie Banner === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(24, 26, 34, 0.98), rgba(43, 47, 58, 0.98));
    border-top: 1px solid rgba(141, 92, 255, 0.3);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-banner-text {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text i {
    color: #9b5fff;
    font-size: 24px;
    margin-top: 2px;
}

.cookie-banner-text p {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
}

.cookie-banner-text a {
    color: #9b5fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cookie-banner-text a:hover {
    color: #b794f6;
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cookie-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.cookie-accept {
    background: linear-gradient(90deg, #7a3cff, #9b5fff);
    color: #fff;
    box-shadow: 0 4px 12px rgba(122, 60, 255, 0.4);
}

.cookie-accept:hover {
    background: linear-gradient(90deg, #6b3bcc, #8b5cf6);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(122, 60, 255, 0.5);
}

.cookie-reject {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-reject:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.cookie-btn i {
    font-size: 16px;
}

/* === Адаптивность Cookie Banner === */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .cookie-banner-text {
        justify-content: center;
    }

    .cookie-banner-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .cookie-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

/* === Адаптивность === */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .hero-section .container {
        max-width: 1400px;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .games-monitor .row {
        --bs-gutter-x: 2rem;
    }
}

/* Large Devices (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-section .container {
        max-width: 1200px;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .navbar-brand {
        font-size: 1.8rem;
    }
}

/* Medium Devices (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-section .row {
        flex-direction: column;
        text-align: center;
    }

    .hero-section .col-lg-6 {
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .hero-content {
        max-width: 600px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .stats-container {
        margin-top: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .games-monitor .row {
        --bs-gutter-x: 1.5rem;
    }

    .game-card {
        width: 200px;
        height: 160px;
        margin: 0 auto;
    }

    .navbar-brand {
        font-size: 1.6rem;
    }

    .nav-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Small Devices (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    body {
        font-size: 0.95rem;
    }

    .site-header .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-section {
        padding: 40px 0;
    }

    .hero-section .row {
        flex-direction: column;
        text-align: center;
    }

    .hero-section .col-lg-6 {
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .hero-content {
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.4;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-actions .btn {
        margin-bottom: 0.5rem;
    }

    .stats-container {
        margin-top: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .games-monitor .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .games-monitor h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .games-monitor .row {
        --bs-gutter-x: 1rem;
    }

    .game-card {
        width: 160px;
        height: 130px;
        margin: 0 auto;
    }

    .game-name {
        font-size: 0.9rem;
    }

    .game-stats {
        font-size: 0.7rem;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }

    .nav-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    .theme-toggle {
        width: 35px;
        height: 35px;
    }

    .user-menu {
        padding: 0.4rem 0.8rem;
    }

    .user-info .username {
        font-size: 13px;
    }

    .user-info .avatar {
        width: 30px;
        height: 30px;
    }

    .online__wrapper {
        left: 85%;
        transform: translateX(-5px);
    }
}

/* Extra Small Devices (up to 575px) */
@media (max-width: 575px) {
    body {
        font-size: 0.9rem;
    }

    .site-header .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .hero-section {
        padding: 30px 0;
    }

    .hero-section .row {
        flex-direction: column;
        text-align: center;
    }

    .hero-section .col-lg-6 {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        margin-bottom: 0.5rem;
    }

    .stats-container {
        margin-top: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
        text-align: center;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .games-monitor .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .games-monitor h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    .games-monitor .row {
        --bs-gutter-x: 0.5rem;
        justify-content: center;
    }

    .games-monitor .col-6 {
        flex: 0 0 45%;
        max-width: 45%;
        margin-bottom: 1rem;
    }

    .game-card {
        width: 100%;
        height: 120px;
        margin: 0 auto;
    }

    .game-name {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .game-stats {
        font-size: 0.65rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .logo-main, .logo-sub {
        font-size: 24px;
    }

    .nav-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .theme-toggle {
        width: 32px;
        height: 32px;
    }

    .user-menu {
        padding: 0.3rem 0.6rem;
    }

    .user-info .username {
        display: none;
    }

    .user-info .avatar {
        width: 28px;
        height: 28px;
    }

    .online__wrapper {
        left: 80%;
        transform: translateX(0);
        width: 90px;
        padding: 0.3rem;
    }

    .online__number {
        font-size: 16px;
    }

    .online__label {
        font-size: 10px;
    }

    .cookie-banner-container {
        padding: 15px;
    }

    .cookie-banner-content {
        flex-direction: column;
        gap: 15px;
    }

    .cookie-banner-text p {
        font-size: 13px;
    }

    .cookie-banner-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .cookie-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Touch-friendly adjustments for mobile */
@media (max-width: 767px) {
    .nav-btn, .btn, button {
        min-height: 44px;
        min-width: 44px;
    }

    .user-menu {
        min-height: 44px;
    }

    .game-card {
        cursor: pointer;
    }

    .game-card:active {
        transform: scale(0.98);
    }

    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }

    .container, .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Better spacing for mobile */
    main {
        padding: 1rem 0;
    }

    /* Adjust modal sizes */
    .modal-dialog {
        margin: 20px;
        max-width: calc(100vw - 40px);
    }

    .modal-content {
        border-radius: 12px;
    }
}

/* Landscape phones and small tablets */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        padding: 20px 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .stat-card {
        padding: 0.75rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }
}
