/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    margin-left: 80px;
    transition: margin-left 0.3s ease;
}

body.sidebar-expanded {
    margin-left: 240px;
}

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

/* Кнопки */
.button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.button--primary {
    background: linear-gradient(45deg, #ffcc00, #ffa500);
    color: #000000;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.4);
}

.button--outline {
    background: transparent;
    color: #ffcc00;
    border: 2px solid #ffcc00;
}

.button--hero {
    padding: 12px 35px;
    font-size: 1.3em;
    text-transform: uppercase;
    background: linear-gradient(45deg, #ffcc00, #ffa500);
    color: #000000;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.4);
}

.button--clash {
    padding: 12px 35px;
    font-size: 1.3em;
    text-transform: uppercase;
    background: linear-gradient(45deg, #ffcc00, #ffa500);
    color: #000000;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.4);
}

.button--clash:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.6);
}

/* Боковое меню */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 80px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: width 0.3s ease;
}

.sidebar__list {
    list-style: none;
    padding: 20px 0;
}

.sidebar__item {
    margin: 2px 8px;
    border-radius: 10px;
}

.sidebar__link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar__icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    fill: currentColor;
}

.sidebar__item--active .sidebar__icon {
    color: #ffcc00;
}

.sidebar__text {
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.sidebar:hover {
    width: 240px;
}

.sidebar:hover .sidebar__text {
    opacity: 1;
}

.sidebar__item--active {
    background: rgba(255, 204, 0, 0.15);
}

.sidebar__item--active .sidebar__link {
    color: #ffcc00;
}

.sidebar__item--active .sidebar__icon {
    color: #ffcc00;
}

/* Шапка */
.header {
    background: rgba(10, 10, 10, 0.95);
    padding: 15px 15px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    margin-left: -15px;
    margin-right: -15px;
    width: calc(100% + 30px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.header__logo {
    height: 55px;
    width: auto;
}

.header__auth {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Секция Hero */
.hero {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero-banner.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(0,0,0,0.4) 0%,
        rgba(0,0,0,0.5) 50%,
        rgba(0,0,0,0.7) 100%
    );
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
    max-width: 700px;
}

.hero__logo {
    margin-bottom: 15px;
}

.hero__title {
    font-size: 2em;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero__subtitle {
    font-size: 2.8em;
    color: #ffcc00;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero__bonus {
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Секции игр */
.games-section {
    padding: 40px 0;
}

.section-header {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 30px;
}

.section-title {
    font-size: 32px;
    color: #ffcc00;
    text-transform: uppercase;
    font-weight: bold;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.game-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    height: 450px;
    cursor: pointer;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
}

.game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.game-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px 10px 0 0;
}

.game-item__label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: #ffcc00;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 20px 5px 10px;
    background: linear-gradient(to bottom, 
                              transparent,
                              rgba(0, 0, 0, 0.7) 20%,
                              rgba(0, 0, 0, 0.9) 60%, 
                              rgba(0, 0, 0, 1) 100%);
    height: 70px;
}

/* Clash секция */
.clash {
    padding: 40px 0;
}

.clash__wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(45deg, #1a0f00, #2a1f10);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.clash__wrapper:hover {
    transform: translateY(-5px);
}

.clash__content {
    text-align: center;
    z-index: 2;
}

.clash__logo {
    width: 300px;
    margin-bottom: 20px;
}

.clash__amount {
    font-size: 2.5em;
    color: #ffcc00;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Jackpots */
.jackpots {
    padding: 40px 0;
}

.jackpot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.jackpot-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    aspect-ratio: 16/9;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.jackpot-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.3);
}

.jackpot-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jackpot-item__label {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.jackpot-item__amount {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #ffcc00;
    font-size: 1.8em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Specials */
.specials {
    padding: 40px 0;
}

.special-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.special-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    aspect-ratio: 16/9;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.special-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.3);
}

.special-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.special-item__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0.95));
    color: #ffffff;
}

.special-item__badge {
    display: inline-block;
    padding: 5px 10px;
    background: #ffcc00;
    color: #000000;
    font-size: 0.8em;
    font-weight: bold;
    border-radius: 5px;
    margin-bottom: 10px;
}

.special-item__title {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #ffffff;
}

.special-item__desc {
    color: #ffcc00;
    font-size: 0.9em;
}

/* Footer */
.footer {
    background: #000000;
    padding: 60px 0 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer__title {
    color: #ffcc00;
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: bold;
}

.footer__list {
    list-style: none;
    padding: 0;
}

.footer__item {
    margin-bottom: 10px;
}

.footer__link {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9em;
}

.footer__link:hover {
    color: #ffcc00;
}

.footer__link--highlight {
    color: #ff6b35;
}

.footer__bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #888888;
    font-size: 0.9em;
}

/* Медиа-запросы */
@media (max-width: 768px) {
    body {
        margin-left: 0;
    }
    
    body.sidebar-expanded {
        margin-left: 0;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.expanded {
        transform: translateX(0);
        width: 240px;
    }
    
    .sidebar:hover {
        width: 240px;
    }

    .hero {
        height: 240px;
        min-height: auto;
        padding: 20px 0;
    }

    .hero__content {
        padding: 10px;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .hero__logo {
        width: 110px;
        height: auto;
        margin-bottom: 15px;
    }

    .hero__title {
        font-size: 13px;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    .hero__subtitle {
        font-size: 17px;
        margin-bottom: 12px;
        line-height: 1.2;
    }

    .hero__bonus {
        font-size: 13px;
        margin-bottom: 17px;
    }

    .button--hero {
        padding: 8px 20px;
        font-size: 9px;
        min-width: 100px;
    }

    .hero__background {
        background-image: url('images/hero-mobile.jpg');
        transform: none;
        background-position: center top;
    }

    .hero__overlay {
        background: linear-gradient(
            rgba(0,0,0,0.5) 0%,
            rgba(0,0,0,0.6) 50%,
            rgba(0,0,0,0.8) 100%
        );
    }

    .clash__wrapper {
        height: 250px;
    }

    .clash__logo {
        width: 220px;
    }

    .clash__amount {
        font-size: 2em;
    }

    .jackpot-grid,
    .special-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .jackpot-item__label {
        font-size: 1em;
    }

    .jackpot-item__amount {
        font-size: 1.5em;
    }

    .header {
        padding: 15px;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .header__wrapper {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        padding: 0;
    }

    .header__logo {
        height: 45px;
    }

    .header__auth {
        gap: 15px;
    }

    .button {
        padding: 12px 30px;
        font-size: 16px;
        min-width: 140px;
    }

    .hero {
        height: auto;
        min-height: calc(100vh - 100px);
        padding: 40px 0;
        display: flex;
        align-items: center;
    }

    .hero__content {
        padding: 20px;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero__logo {
        width: 220px;
        height: auto;
        margin-bottom: 30px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .hero__title {
        font-size: 26px;
        margin-bottom: 20px;
        line-height: 1.3;
    }

    .hero__subtitle {
        font-size: 34px;
        margin-bottom: 25px;
        line-height: 1.2;
    }

    .hero__bonus {
        font-size: 26px;
        margin-bottom: 35px;
    }

    .button--hero {
        padding: 15px 40px;
        font-size: 18px;
        display: inline-block;
        min-width: 200px;
    }

    .game-item {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 200px;
        padding: 15px 0;
    }

    .hero__content {
        padding: 8px;
    }

    .hero__logo {
        width: 90px;
        margin-bottom: 12px;
    }

    .hero__title {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .hero__subtitle {
        font-size: 14px;
        margin-bottom: 10px;
        padding: 0 5px;
    }

    .hero__bonus {
        font-size: 11px;
        margin-bottom: 15px;
    }

    .button--hero {
        padding: 7px 15px;
        font-size: 8px;
        width: 100%;
        max-width: 125px;
        text-align: center;
    }

    .clash__wrapper {
        height: 200px;
    }

    .clash__logo {
        width: 180px;
    }

    .clash__amount {
        font-size: 1.8em;
    }

    .button--clash {
        padding: 10px 25px;
        font-size: 1.1em;
    }

    .special-grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__column {
        margin-bottom: 30px;
    }

    .header {
        padding: 12px 10px;
    }

    .header__wrapper {
        gap: 12px;
    }

    .header__logo {
        height: 40px;
    }

    .header__auth {
        gap: 10px;
        width: 100%;
        justify-content: center;
    }

    .button {
        padding: 12px 20px;
        font-size: 15px;
        min-width: 130px;
        flex: 1;
        max-width: 160px;
    }

    .hero {
        min-height: calc(100vh - 90px);
        padding: 30px 0;
    }

    .hero__content {
        padding: 15px;
    }

    .hero__logo {
        width: 180px;
        margin-bottom: 25px;
    }

    .hero__title {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .hero__subtitle {
        font-size: 28px;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .hero__bonus {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .button--hero {
        padding: 14px 30px;
        font-size: 16px;
        width: 100%;
        max-width: 250px;
        text-align: center;
    }

    .game-item {
        height: 250px;
    }
}

/* Фикс для iPhone с челкой */
@supports (padding-top: env(safe-area-inset-top)) {
    .header {
        padding-top: max(15px, env(safe-area-inset-top));
    }

    @media (max-width: 768px) {
        .header {
            padding-top: max(10px, env(safe-area-inset-top));
        }
    }
}

@media (max-width: 768px) {
    .footer, 
    #gameModal,
    .modal {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .footer, 
    #gameModal,
    .modal {
        display: none !important;
    }
} 