/* SkinRave Styles - Optimized */

:root {
    --bg-dark: #0d1117;
    --bg-card: #161b22;
    --bg-light: #21262d;
    --bg-hover: #2d333b;
    --green: #00ff88;
    --green-dark: #00cc6a;
    --yellow: #ffd700;
    --red: #ff4757;
    --text: #ffffff;
    --text-dim: #8b949e;
    --text-muted: #6e7681;
    --border: #30363d;
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: inherit; }
img { max-width: 100%; display: block; }

/* Utility */
.text-green { color: var(--green); }
.text-white { color: var(--text); }
.text-yellow { color: var(--yellow); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.2s;
}

.btn-green {
    background: var(--green);
    color: var(--bg-dark);
}

.btn-green:hover {
    background: var(--green-dark);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.btn-outline-green {
    background: transparent;
    color: var(--green);
    border: 1px solid var(--green);
}

.btn-outline-green:hover {
    background: var(--green);
    color: var(--bg-dark);
}

.btn-outline {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--text-dim);
    color: var(--text);
}

.btn-sm { padding: 8px 16px; font-size: 11px; }
.btn-xs { padding: 6px 12px; font-size: 10px; }

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.icon-btn:hover { color: var(--text); background: var(--bg-hover); }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-right { gap: 12px; }

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon { width: 32px; height: 32px; }

.logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-text .highlight { color: var(--green); }

.nav-menu {
    display: flex;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    transition: all 0.2s;
}

.nav-item:hover { color: var(--text); background: var(--bg-hover); }
.nav-item.active { background: var(--green); color: var(--bg-dark); }
.nav-item i { font-size: 14px; }

/* ===== MAIN LAYOUT ===== */
.main {
    margin-top: 64px;
    display: grid;
    grid-template-columns: 1fr 320px;
    min-height: calc(100vh - 64px);
}

.content {
    padding: 24px 32px;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
}

/* ===== BANNERS ===== */
.banners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.banner {
    background: linear-gradient(135deg, #1a2332 0%, var(--bg-dark) 100%);
    border-radius: var(--radius);
    padding: 28px;
    position: relative;
    overflow: hidden;
    min-height: 180px;
}

.banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 65%;
}

.banner h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
}

.banner p {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 16px;
    line-height: 1.6;
}

.countdown {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
}

.countdown i { color: var(--green); }

/* ===== GAMES ===== */
.games-section { margin-bottom: 32px; }

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title i { color: var(--green); }

.games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.game-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--bg-light);
}

.game-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    font-size: 13px;
    font-weight: 600;
    background: var(--bg-light);
}

.game-name i { color: var(--green); font-size: 12px; }

/* ===== BETS ===== */
.bets-section { margin-bottom: 32px; }

.section-title-sm {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.bets-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tab {
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
    background: var(--bg-card);
    transition: all 0.2s;
}

.tab:hover { color: var(--text); }
.tab.active {
    background: var(--bg-light);
    color: var(--green);
    border: 1px solid var(--green);
}

.bets-table {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
}

.bet-row {
    display: grid;
    grid-template-columns: 140px 1fr 90px 70px 90px;
    align-items: center;
    padding: 12px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.bet-row:last-child { border-bottom: none; }
.bet-row:hover { background: var(--bg-hover); }

.bet-game {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
}

.bet-game i { color: var(--green); }

.bet-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.level {
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--green);
}

.bet-amount, .bet-profit {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dim);
}

.bet-amount i, .bet-profit i { color: var(--green); font-size: 11px; }

.bet-mult { font-weight: 600; }
.bet-mult.red { color: var(--red); }
.bet-mult.green { color: var(--green); }

/* ===== PARTNERS ===== */
.partners-section { margin-bottom: 32px; }

.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.partner-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.partner-card:hover {
    border-color: var(--border);
    transform: translateY(-3px);
}

.partner-logo {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 12px;
}

.partner-logo.fnatic { color: var(--text); font-weight: 700; }

.partner-card span {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== ABOUT ===== */
.about-section {
    text-align: center;
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.about-section h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.about-section p {
    font-size: 14px;
    color: var(--text-dim);
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.7;
}

/* ===== SIDEBAR ===== */
.sidebar {
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 64px);
    position: sticky;
    top: 64px;
}

.sidebar-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.online-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.online {
    color: var(--green);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.balance-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    padding: 8px;
    border-radius: var(--radius-sm);
}

.balance {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-dark);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
}

.balance i { color: var(--green); }

/* Chat */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 4px;
}

.chat-msg {
    display: block;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 12px;
    transition: background 0.2s;
}

.chat-msg:hover {
    background: var(--bg-hover);
}

.chat-msg .level {
    margin-right: 8px;
}

.chat-msg .name {
    font-weight: 600;
    font-size: 13px;
}

.chat-msg .verified { color: var(--green); font-size: 11px; margin-left: 4px; }

.chat-msg p {
    font-size: 12px;
    color: var(--text-dim);
    margin: 8px 0;
}

.chat-msg.mini p { margin: 4px 0 0 0; }

.msg-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-dim);
}

.msg-footer i { color: var(--green); }

.chat-input {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    background: var(--bg-light);
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
}

.chat-input:hover {
    background: var(--bg-hover);
}

.chat-input input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 13px;
    outline: none;
}

.chat-input input::placeholder { color: var(--text-muted); }

.send-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--green);
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.send-btn:hover { box-shadow: 0 0 15px rgba(0, 255, 136, 0.4); }

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 40px 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1fr 1fr;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand .logo { margin-bottom: 12px; }

.footer-brand p {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.footer-brand small {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    line-height: 1.5;
    margin-bottom: 12px;
}

.age-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-light);
    padding: 10px;
    border-radius: var(--radius-sm);
}

.age-warning i { color: #ffa500; flex-shrink: 0; margin-top: 2px; }

.footer-partner-box {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius);
}

.fnatic-badge {
    width: 44px;
    height: 44px;
    background: #ff7f00;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--bg-dark);
    margin-bottom: 12px;
}

.footer-partner-box h4 {
    font-size: 13px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.footer-partner-box p {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 16px;
}

.support {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.support i { color: var(--green); }
.support a { color: var(--text-dim); }

.footer-links h4, .footer-social h4 {
    font-size: 13px;
    margin-bottom: 12px;
}

.footer-links a {
    display: block;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.social-icons {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: transform 0.2s;
}

.social-icons a:hover { transform: scale(1.1); }

.social-icons .discord { background: #5865F2; }
.social-icons .twitch { background: #9146FF; }
.social-icons .twitter { background: var(--bg-light); }
.social-icons .kick { background: #53FC18; color: var(--bg-dark); font-weight: 700; }
.social-icons .instagram { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }

.lang-select {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    justify-content: space-around;
    align-items: center;
    z-index: 100;
}

.mob-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--text-dim);
    padding: 8px;
}

.mob-item i { font-size: 18px; }
.mob-item.active { color: var(--green); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1400px) {
    .games-grid { grid-template-columns: repeat(4, 1fr); }
    .partners-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1200px) {
    .main { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .banners { grid-template-columns: 1fr; }
    .games-grid { grid-template-columns: repeat(3, 1fr); }
    .partners-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .content { padding: 20px 16px 100px; }
    .page-title { font-size: 18px; }
    .banner { padding: 20px; min-height: 150px; }
    .banner h2 { font-size: 18px; }
    .banner-content { max-width: 75%; }
    .games-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .bet-row { grid-template-columns: 1fr 1fr 1fr; }
    .bet-game, .bet-profit { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .mobile-nav { display: flex; }
}

@media (max-width: 480px) {
    .navbar { padding: 0 16px; }
    .logo-text { font-size: 16px; }
    .btn-outline-green { display: none; }
    .btn-green { padding: 10px 14px; font-size: 11px; }
    .banner h2 { font-size: 16px; }
    .banner p { font-size: 11px; }
    .game-name { font-size: 11px; padding: 10px; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-card); }
::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Animations */
.game-card { animation: fadeUp 0.4s ease forwards; opacity: 0; }
.game-card:nth-child(1) { animation-delay: 0.05s; }
.game-card:nth-child(2) { animation-delay: 0.1s; }
.game-card:nth-child(3) { animation-delay: 0.15s; }
.game-card:nth-child(4) { animation-delay: 0.2s; }
.game-card:nth-child(5) { animation-delay: 0.25s; }
.game-card:nth-child(6) { animation-delay: 0.3s; }
.game-card:nth-child(7) { animation-delay: 0.35s; }
.game-card:nth-child(8) { animation-delay: 0.4s; }
.game-card:nth-child(9) { animation-delay: 0.45s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.bet-row.new {
    animation: slideIn 0.3s ease;
    background: rgba(0, 255, 136, 0.08);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}
