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

*:focus {
    outline: none;
    box-shadow: none;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #1f1515;
    color: #ffffff;
    line-height: 1.6;
    user-select: none;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

.container {
    margin: 0 auto;
    padding: 0 20px;
    max-width: 1400px;
    width: 100%;
    box-sizing: border-box;
}

/* SLIDER */
.slider {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 250px;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 0;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.slide-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: white;
    z-index: 2;
}

.slide-title {
    font-size: 22px;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.slide-desc {
    font-size: 14px;
    opacity: 0.9;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.nav-btn {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    z-index: 3;
}

.nav-btn:hover {
    background: #C20D0D;
    border-color: #C20D0D;
}

.nav-btn i {
    font-size: 14px;
}

.prev { 
    left: 20px; 
}

.next { 
    right: 20px; 
}

.dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #FFD700;
    width: 24px;
    border-radius: 12px;
}

.dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.7);
}

/* CATEGORIES */
.categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 600px;
    margin: 0 auto 30px;
}

.category {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.category:hover .category-title {
    color: #FFD700;
}

.category-icon {
    font-size: 24px;
    margin-right: 12px;
}

.category-content {
    flex: 1;
}

.category-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
    transition: all 0.3s ease;
}

.category-subtitle {
    font-size: 11px;
    opacity: 0.7;
}

/* SECTIONS */
.section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.section-title h2 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.section-title i {
    color: #FFD700;
    font-size: 18px;
}

.tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.tab.active {
    background: #C20D0D;
    border-color: #C20D0D;
    color: white;
}

.tab:hover:not(.active) {
    border-color: #FFD700;
    color: #FFD700;
}

/* GAMES GRID */
.games {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.game {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.game:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

.game-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.game img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.game:hover img {
    filter: brightness(0.7);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 2;
}

.game:hover .play-btn {
    opacity: 1;
    background: #C20D0D;
    border-color: #C20D0D;
}

.play-btn i {
    color: white;
    font-size: 18px;
    margin-left: 2px;
}

.like {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.like i {
    color: white;
    font-size: 12px;
}

.like.active {
    background: #C20D0D;
    border-color: #C20D0D;
}

.like:hover:not(.active) {
    background: rgba(255, 255, 255, 0.2);
}

.badge {
    position: absolute;
    top: 8px;
    left: 8px;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-populer { 
    background: #C20D0D;
}

.badge-jackpot { 
    background: #FFD700;
    color: #000;
}

.badge-freespin { 
    background: #FF8C00;
}

.badge-yeni { 
    background: #00ff88;
    color: #000;
}

.game-info {
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.game-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
}

.game-provider {
    font-size: 10px;
    opacity: 0.6;
    font-weight: 500;
}

/* SHOW MORE BUTTON */
.show-more {
    text-align: center;
    margin-top: 25px;
}

.show-more button {
    background: #C20D0D;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.show-more button:hover {
    background: #e63939;
    transform: translateY(-2px);
}

.loading {
    display: none;
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #C20D0D;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { 
        transform: rotate(360deg); 
    }
}

.no-games {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    opacity: 0.6;
    display: none;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.no-games i {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 32px;
    opacity: 0.7;
}

/* TABLET RESPONSIVE */
@media (min-width: 576px) {
    .categories {
        grid-template-columns: repeat(3, 1fr);
        max-width: 800px;
    }
    
    .games {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    
    .slider {
        height: 300px;
    }
    
    .slide-title {
        font-size: 26px;
    }
    
    .slide-desc {
        font-size: 16px;
    }
}

/* DESKTOP RESPONSIVE */
@media (min-width: 768px) {
    .container {
        padding: 0 30px;
    }
    
    .section-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .categories {
        grid-template-columns: repeat(6, 1fr);
        max-width: 100%;
        gap: 15px;
    }
    
    .category {
        padding: 20px;
    }
    
    .category-icon {
        font-size: 28px;
        margin-right: 15px;
    }
    
    .category-title {
        font-size: 16px;
    }
    
    .category-subtitle {
        font-size: 13px;
    }
    
    .games {
        grid-template-columns: repeat(5, 1fr);
        gap: 18px;
    }
    
    .slider {
        height: 350px;
    }
    
    .slide-content {
        bottom: 40px;
        left: 40px;
    }
    
    .slide-title {
        font-size: 28px;
    }
    
    .slide-desc {
        font-size: 18px;
    }
    
    .nav-btn {
        width: 50px;
        height: 50px;
    }
    
    .nav-btn i {
        font-size: 18px;
    }
    
    .prev { 
        left: 30px; 
    }
    
    .next { 
        right: 30px; 
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .section-title i {
        font-size: 22px;
    }
    
    .game-title {
        font-size: 14px;
    }
    
    .game-provider {
        font-size: 12px;
    }
    
    .play-btn {
        width: 55px;
        height: 55px;
    }
    
    .play-btn i {
        font-size: 22px;
    }
    
    .like {
        width: 36px;
        height: 36px;
    }
    
    .like i {
        font-size: 16px;
    }
    
    .badge {
        padding: 6px 12px;
        font-size: 10px;
    }
    
    .tab {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* LARGE DESKTOP */
@media (min-width: 992px) {
    .games {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }
    
    .slider {
        height: 400px;
    }
}

/* MOBILE SPECIFIC */
@media (max-width: 575px) {
    .container {
        padding: 0 15px;
    }
    
    .slider {
        height: 200px;
        margin-bottom: 25px;
    }
    
    .slide-content {
        bottom: 20px;
        left: 20px;
    }
    
    .slide-title {
        font-size: 18px;
    }
    
    .slide-desc {
        font-size: 12px;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
    }
    
    .nav-btn i {
        font-size: 12px;
    }
    
    .prev { 
        left: 15px; 
    }
    
    .next { 
        right: 15px; 
    }
    
    .dots {
        bottom: 15px;
        gap: 6px;
    }
    
    .dot {
        width: 6px;
        height: 6px;
    }
    
    .dot.active {
        width: 18px;
    }
    
    .categories {
        gap: 10px;
        margin-bottom: 25px;
    }
    
    .category {
        padding: 12px;
    }
    
    .category-icon {
        font-size: 20px;
        margin-right: 10px;
    }
    
    .category-title {
        font-size: 12px;
    }
    
    .category-subtitle {
        font-size: 10px;
    }
    
    .section-title h2 {
        font-size: 18px;
    }
    
    .section-title i {
        font-size: 16px;
    }
    
    .games {
        gap: 10px;
    }
    
    .game-info {
        padding: 10px;
    }
    
    .game-title {
        font-size: 11px;
    }
    
    .game-provider {
        font-size: 9px;
    }
    
    .play-btn {
        width: 40px;
        height: 40px;
    }
    
    .play-btn i {
        font-size: 16px;
    }
    
    .like {
        width: 28px;
        height: 28px;
        top: 6px;
        right: 6px;
    }
    
    .like i {
        font-size: 11px;
    }
    
    .badge {
        top: 6px;
        left: 6px;
        padding: 3px 6px;
        font-size: 8px;
    }
    
    .show-more button {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .tab {
        padding: 6px 12px;
        font-size: 11px;
    }
}