/* RocketPlay Casino Australia - Optimized Styles */

:root {
    --bg-dark: #000A12;
    --bg-secondary: #0D1621;
    --bg-card: #141E2B;
    --bg-hover: #1A2836;
    --primary: #FFC107;
    --primary-hover: #FFD54F;
    --text-white: #FFFFFF;
    --text-gray: #8A9BAD;
    --text-muted: #5A6A7A;
    --border: #1E2D3D;
    --success: #00E676;
    --error: #FF5252;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Rubik', -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.5;
    min-height: 100vh;
}

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

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) { .container { padding: 0 24px; } }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.25s ease;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary) 0%, #FFD54F 100%);
    color: #000;
}
.btn--primary:hover {
    background: linear-gradient(135deg, #FFD54F 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,193,7,0.5);
}
.btn--primary:active {
    transform: translateY(0);
}

.btn--secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--border);
}
.btn--secondary:hover {
    border-color: var(--text-white);
    background: rgba(255,255,255,0.08);
    transform: translateY(-1px);
}

.btn--outline {
    background: var(--bg-card);
    color: var(--text-white);
    border: 1px solid var(--border);
}
.btn--outline:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    transform: translateY(-1px);
}

.btn--small { padding: 8px 18px; font-size: 13px; }
.btn--medium { padding: 12px 26px; font-size: 14px; }
.btn--large { padding: 16px 36px; font-size: 15px; border-radius: 12px; font-weight: 700; }

/* Badge */
.badge {
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    margin-left: 8px;
}
.badge--new { background: var(--error); }

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(13, 22, 33, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header__wrapper {
    border-bottom: 1px solid var(--border);
}

.header__center {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}
.logo:hover { transform: scale(1.02); }
.logo__img { height: 38px; }
@media (min-width: 768px) { .logo__img { height: 46px; } }

.header__nav {
    display: none;
    align-items: center;
    gap: 28px;
}
@media (min-width: 1024px) { .header__nav { display: flex; } }

.nav-item {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    transition: color 0.2s;
    padding: 20px 0;
    border-bottom: 2px solid transparent;
}
.nav-item:hover, .nav-item.active {
    color: var(--text-white);
}
.nav-item.active {
    border-bottom-color: var(--primary);
}

.header__auth {
    display: flex;
    align-items: center;
    gap: 10px;
}
.header__auth .btn { display: none; }
@media (min-width: 768px) { .header__auth .btn { display: inline-flex; } }

.language-select__btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg-card);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-white);
}
.flag-icon { width: 20px; height: 14px; border-radius: 2px; }
.icon-arrow { width: 16px; height: 16px; color: var(--text-gray); }

/* Mobile Nav */
.header__mobile-nav {
    display: flex;
    justify-content: space-around;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}
@media (min-width: 768px) { .header__mobile-nav { display: none; } }

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--text-gray);
}
.mobile-nav-item svg { width: 22px; height: 22px; }
.mobile-nav-item.active, .mobile-nav-item:hover { color: var(--primary); }

/* ===== BANNERS ===== */
.banners {
    padding: 20px 16px;
    position: relative;
}
@media (min-width: 768px) { .banners { padding: 24px; } }

.banners__carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px;
}
.banners__carousel::-webkit-scrollbar { display: none; }

.banner-slide {
    flex: 0 0 280px;
    scroll-snap-align: start;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    height: 320px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.banner-slide:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
@media (min-width: 480px) { .banner-slide { flex: 0 0 320px; } }
@media (min-width: 768px) { .banner-slide { flex: 0 0 380px; height: 340px; } }
@media (min-width: 1200px) { .banner-slide { flex: 0 0 420px; } }

.banner-slide__bg-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center top;
}
@media (min-width: 768px) { .banner-slide__bg-img { height: 200px; } }

.banner-slide__content {
    flex: 1;
    padding: 16px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
}

.banner-slide__label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 1px;
}
@media (min-width: 768px) { .banner-slide__label { font-size: 11px; } }

.banner-slide__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (min-width: 768px) { .banner-slide__title { font-size: 17px; } }

.banners__nav {
    display: none;
    position: absolute;
    top: 50%;
    left: 32px;
    right: 32px;
    transform: translateY(-50%);
    justify-content: space-between;
    pointer-events: none;
}
@media (min-width: 1200px) { .banners__nav { display: flex; } }

.banner-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: all 0.2s;
}
.banner-nav-btn:hover { background: var(--primary); color: #000; }
.banner-nav-btn svg { width: 20px; height: 20px; }

/* ===== GAME NAV ===== */
.game-nav {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}
.game-nav::-webkit-scrollbar { display: none; }

.game-nav__tabs {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    min-width: max-content;
}
@media (min-width: 1024px) {
    .game-nav__tabs { justify-content: center; }
}
@media (min-width: 768px) {
    .game-nav__tabs { padding: 16px 24px; gap: 12px; }
}

.game-nav__tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-gray);
    white-space: nowrap;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}
.game-nav__tab svg { width: 18px; height: 18px; }
.game-nav__tab:hover {
    background: var(--bg-hover);
    color: var(--text-white);
    border-color: var(--border);
}
.game-nav__tab.active {
    background: var(--primary);
    color: #000;
    box-shadow: 0 4px 16px rgba(255,193,7,0.3);
}

/* ===== MAIN CONTENT ===== */
.main {
    padding-bottom: 80px;
}
@media (min-width: 768px) { .main { padding-bottom: 0; } }

.content-wrapper {
    padding: 24px 0;
}

.content-grid {
    display: grid;
    gap: 32px;
}
@media (min-width: 1200px) {
    .content-grid { grid-template-columns: 1fr 260px; }
}

.games-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* ===== GAME SECTIONS ===== */
.games-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
@media (min-width: 768px) { .section-title { font-size: 17px; } }

.section-icon {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 0 6px currentColor);
}
.section-icon.fire { color: #FF6B35; }
.section-icon.bolt { color: #00D4FF; }
.section-icon.live { color: #00FF00; }
.section-icon.trophy { color: #FFC107; }

/* ===== GAMES GRID ===== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 480px) { .games-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .games-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
@media (min-width: 1200px) { .games-grid { grid-template-columns: repeat(5, 1fr); } }

/* ===== GAME CARD ===== */
.game-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}
.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}

.game-card__image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-hover) 0%, var(--bg-card) 100%);
}
.game-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.game-card:hover .game-card__image img {
    transform: scale(1.1);
}

/* Play overlay on hover */
.game-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.game-card:hover .game-card__image::after {
    opacity: 1;
}

.game-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.5px;
    z-index: 2;
}
.game-card__badge.hot { background: linear-gradient(135deg, #FF6B35, #FF8F00); }
.game-card__badge.new { background: linear-gradient(135deg, #00E676, #00C853); color: #000; }
.game-card__badge.jackpot { background: linear-gradient(135deg, #FFC107, #FF9800); color: #000; }
.game-card__badge.live {
    background: linear-gradient(135deg, #FF5252, #D50000);
    animation: pulse-live 2s infinite;
}
@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.game-card__info {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.game-card__name {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
@media (min-width: 768px) { .game-card__name { font-size: 13px; } }

.game-card__provider {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ===== TOURNAMENTS ===== */
.tournaments-grid {
    display: grid;
    gap: 16px;
}
@media (min-width: 768px) { .tournaments-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tournaments-grid { grid-template-columns: repeat(3, 1fr); } }

.tournament-card {
    border-radius: var(--radius-lg);
    padding: 24px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.tournament-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}
.tournament-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.tournament-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 5px 12px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

.tournament-card__content {
    margin-top: auto;
    position: relative;
    z-index: 1;
}
.tournament-card__title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}
.tournament-card__prize {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ===== WINNERS SIDEBAR ===== */
.winners-sidebar {
    display: none;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 16px;
    position: sticky;
    top: 88px;
    height: fit-content;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    border: 1px solid var(--border);
}
@media (min-width: 1200px) { .winners-sidebar { display: block; } }

.winners-sidebar__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.winners-sidebar__dot {
    width: 10px;
    height: 10px;
    background: #00E676;
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(0,230,118,0.6);
}
@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.winners-sidebar__title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.winners-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.winner-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-card);
    border-radius: 10px;
    transition: background 0.2s, transform 0.2s;
}
.winner-item:hover {
    background: var(--bg-hover);
    transform: translateX(4px);
}

.winner-item__avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #8040FF 0%, #E040FB 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.winner-item__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.winner-item__name {
    font-size: 12px;
    color: var(--text-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.winner-item__amount {
    font-size: 14px;
    font-weight: 700;
    color: var(--success);
}

/* ===== CTA ===== */
.cta-section {
    display: flex;
    justify-content: center;
    padding: 16px 0;
}

/* ===== SEO CONTENT ===== */
.seo-content {
    padding: 56px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.seo-content__title {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.4;
}
@media (min-width: 768px) { .seo-content__title { font-size: 24px; } }

.seo-content__text {
    max-width: 850px;
    margin: 0 auto;
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.85;
}
.seo-content__text p { margin-bottom: 18px; }
.seo-content__text h2 {
    color: var(--text-white);
    font-size: 17px;
    font-weight: 600;
    margin: 32px 0 14px;
}
.seo-content__text ul {
    margin: 18px 0;
    padding-left: 24px;
}
.seo-content__text li {
    margin-bottom: 10px;
    list-style: disc;
    padding-left: 4px;
}
.seo-content__text li::marker { color: var(--primary); }
.seo-content__text strong { color: var(--text-white); }

.read-more-btn { margin-top: 24px; }

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark);
    padding: 48px 0 100px;
    border-top: 1px solid var(--border);
}
@media (min-width: 768px) { .footer { padding: 56px 0 48px; } }

.footer__top {
    display: grid;
    gap: 32px;
    margin-bottom: 40px;
}
@media (min-width: 768px) {
    .footer__top { grid-template-columns: 200px 1fr; gap: 56px; }
}

.footer__logo-img {
    height: 40px;
    opacity: 0.9;
    transition: opacity 0.2s;
}
.footer__logo-img:hover { opacity: 1; }

.footer__links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
@media (min-width: 768px) { .footer__links { grid-template-columns: repeat(4, 1fr); } }

.footer__column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer__column-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.footer__link {
    font-size: 13px;
    color: var(--text-gray);
    transition: color 0.2s, transform 0.2s;
}
.footer__link:hover {
    color: var(--primary);
    transform: translateX(2px);
}

.footer__payments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.payment-icon {
    padding: 8px 12px;
    background: var(--bg-card);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    border: 1px solid var(--border);
    transition: background 0.2s, border-color 0.2s;
}
.payment-icon:hover {
    background: var(--bg-hover);
    border-color: var(--text-muted);
}

.footer__bottom {
    padding-top: 28px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.footer__copyright {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 6px;
}
.footer__disclaimer {
    font-size: 11px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    z-index: 999;
    border-top: 1px solid var(--border);
}
@media (min-width: 768px) { .cookie-banner { bottom: 0; } }

.cookie-banner p {
    font-size: 12px;
    color: var(--text-gray);
    text-align: center;
}
.cookie-banner a { color: var(--primary); }
.cookie-banner.hidden { display: none; }

/* ===== CHAT WIDGET ===== */
.chat-widget {
    position: fixed;
    bottom: 80px;
    right: 16px;
    z-index: 998;
}
@media (min-width: 768px) { .chat-widget { bottom: 24px; } }

.chat-widget__btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(255,193,7,0.4);
    transition: transform 0.2s;
}
.chat-widget__btn:hover { transform: scale(1.1); }
.chat-widget__btn svg { width: 24px; height: 24px; }

/* Utilities */
.hidden { display: none !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

::selection { background: var(--primary); color: #000; }

/* Animations */
.animate-slideUp {
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
