/* --- RoyalsTiger CSS v2.1 (Mobile Optimized) --- */

/* --- Variables & Reset --- */
:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --primary: #FF8C00; /* Tiger Orange */
    --primary-glow: rgba(255, 140, 0, 0.5);
    --secondary: #9d00ff;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --glass: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --panic-red: #ff3333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 80px; /* Отступ для нижнего меню на мобилках */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* --- Header --- */
.header {
    padding: 15px 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-glass);
    transition: 0.3s;
}

.header-flex { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -1px; text-transform: uppercase; }
.highlight { color: var(--primary); text-shadow: 0 0 15px var(--primary-glow); }

.nav-menu ul { display: flex; gap: 25px; }
.nav-menu a { font-weight: 500; font-size: 0.95rem; opacity: 0.8; }
.nav-menu a:hover, .nav-menu a.active { opacity: 1; color: var(--primary); }

/* --- Buttons --- */
.btn { padding: 10px 24px; border-radius: 50px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 0.9rem; border: none; }
.btn-primary { 
    background: linear-gradient(135deg, #FF8C00, #FF4500); 
    color: white; 
    box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--primary-glow); }
.btn-glass { background: var(--glass); border: 1px solid var(--border-glass); color: white; margin-left: 10px; }
.btn-glass:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* --- Panic Button (OASIS) --- */
.panic-button {
    position: fixed;
    top: 90px;
    right: 20px;
    background: rgba(255, 51, 51, 0.1);
    border: 1px solid var(--panic-red);
    color: var(--panic-red);
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 8px;
    z-index: 900;
    font-weight: bold;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    gap: 5px;
}
.panic-button:hover { background: var(--panic-red); color: white; }

/* --- Search Bar --- */
.search-container { position: relative; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
.search-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 12px 20px 12px 50px;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: 0.3s;
}
.search-input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(255,140,0,0.1); }
.search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); opacity: 0.5; }

/* --- Winners Ticker --- */
.winners-ticker {
    background: linear-gradient(90deg, #1a1a1a, #000);
    border-bottom: 1px solid var(--border-glass);
    font-size: 0.8rem;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
}
.ticker-content { display: inline-block; animation: ticker 30s linear infinite; padding-left: 100%; }
.ticker-item { margin-right: 40px; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* --- Bento Grid (Main Layout) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}
.bento-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}
.item-large { grid-column: span 2; min-height: 350px; }

/* --- Game Grid (Slots) --- */
.game-grid {
    display: grid;
    /* На десктопе карточки не меньше 160px */
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.game-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: 0.3s;
    border: 1px solid transparent;
    display: block; /* Ссылка как блок */
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 2;
}

.game-thumb {
    width: 100%;
    aspect-ratio: 1/1; /* Идеальный квадрат */
    background-size: cover;
    background-position: center;
    background-color: #222;
}

.game-info { padding: 15px; }
.game-info h4 { font-size: 0.9rem; margin-bottom: 5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-provider { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }

/* --- SEO Text (ВСЕГДА ОТКРЫТ) --- */
.seo-long-read {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    margin-top: 60px;
    position: relative;
    
    /* Свойства для полного отображения */
    height: auto;
    max-height: none;
    overflow: visible;
}

/* Скрываем затемнение и кнопку */
.seo-long-read::after { display: none; }
.read-more-btn { display: none !important; }

.article-content h2 { color: #fff; margin-top: 0; font-size: 1.8rem; margin-bottom: 20px; }
.article-content h3 { color: var(--primary); margin-top: 30px; margin-bottom: 15px; font-size: 1.3rem; }
.article-content p { margin-bottom: 15px; color: var(--text-muted); font-size: 1rem; }
.article-content ul, .article-content ol { margin-bottom: 20px; margin-left: 20px; color: var(--text-muted); }
.article-content li { margin-bottom: 10px; }

/* --- Mobile Bottom Nav --- */
.mobile-bottom-nav {
    display: none; /* Скрыто на ПК */
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-glass);
    padding: 10px 0 25px; /* Отступ под iPhone Home Bar */
    justify-content: space-around;
    z-index: 9999;
}
.nav-item {
    display: flex; flex-direction: column; align-items: center;
    font-size: 0.7rem; color: var(--text-muted); gap: 4px;
}
.nav-item.active { color: var(--primary); }
.nav-icon { font-size: 1.2rem; }
.nav-main {
    background: var(--primary); color: white;
    width: 45px; height: 45px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-top: -25px; box-shadow: 0 5px 15px var(--primary-glow);
    border: 4px solid var(--bg-dark);
    font-size: 1.5rem;
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border-glass);
    padding: 40px 0 100px; /* Большой отступ снизу, чтобы меню не перекрывало */
    background: #050505;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Responsive Media Queries --- */

/* Планшеты и меньше */
@media (max-width: 768px) {
    .header .nav-menu, .header .auth-buttons { display: none; } /* Скрываем меню ПК */
    .mobile-bottom-nav { display: flex; } /* Показываем мобильное меню */
    
    .bento-grid { grid-template-columns: 1fr; }
    .item-large { grid-column: span 1; }
    
    .panic-button { top: auto; bottom: 85px; right: 10px; font-size: 0.7rem; padding: 5px 10px; }
    
    .seo-long-read { padding: 20px; }
    .article-content h2 { font-size: 1.4rem; }
}

/* Телефоны (Оптимизация сетки игр) */
@media (max-width: 480px) {
    .container { padding: 0 15px; }
    
    .game-grid {
        /* Принудительно 2 колонки на узких экранах */
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px; /* Уменьшаем отступ между играми */
    }
    
    .game-info { padding: 10px; }
    .game-info h4 { font-size: 0.8rem; } /* Уменьшаем шрифт названия */
    .game-provider { font-size: 0.65rem; }
    
    .hero h1 { font-size: 2rem; }
    .btn { padding: 8px 16px; font-size: 0.85rem; }
}
