/* Modern DiuWin-Style Home Page CSS */

:root {
    --primary-green: #2ecc71;
    --secondary-green: #27ae60;
    --accent-pink: #e74c3c;
    --bg-gray: #f5f6fa;
    --card-bg: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --border-radius: 16px;
}

/* Logo & Header */
.diuwin-logo {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.diuwin-logo img {
    height: 32px;
    width: auto;
}

.diuwin-logo-text {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 10px;
}

/* Banner Section */
.banner-section {
    padding: 20px;
    margin-bottom: 20px;
}

.bonus-banner {
    background: url('/images/bonus-banner-custom.png') no-repeat center center;
    background-size: cover;
    border-radius: var(--border-radius);
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    min-height: 200px;
}

.bonus-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: none;
    opacity: 0;
}

.bonus-content {
    position: relative;
    z-index: 1;
}

.bonus-content h2 {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bonus-content p {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    margin: 0 0 20px 0;
}

.bonus-btn {
    background: #fff;
    color: var(--primary-green);
    padding: 12px 32px;
    border-radius: 25px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}

.bonus-btn:hover {
    transform: translateY(-2px);
}

/* Welcome Text */
.welcome-text {
    padding: 0 20px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.speaker-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.welcome-text p {
    margin: 0;
    color: var(--text-dark);
    font-size: 14px;
    flex: 1;
}

.detail-btn {
    background: var(--primary-green);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

/* Category Icons */
.category-section {
    padding: 0 20px 30px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s;
}

.category-item:hover {
    transform: translateY(-4px);
}

.category-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.category-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.category-name {
    font-size: 12px;
    color: var(--text-dark);
    font-weight: 500;
    text-align: center;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 20px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary-green);
    border-radius: 2px;
}

.more-link {
    color: var(--primary-green);
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Game Cards */
.home-page {
    background: var(--bg-gray);
}

.games-container {
    padding: 0 20px;
    margin-bottom: 80px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 13px;
    margin: 0 0 16px 0;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.game-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.game-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(39, 174, 96, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.game-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.game-name {
    padding: 12px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-green);
    background: rgba(46, 204, 113, 0.05);
}

.game-desc {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
    padding: 6px 12px 12px;
    margin-top: -6px;
}

/* Super Jackpot Section */
.jackpot-section {
    padding: 20px;
    margin-bottom: 20px;
}

.jackpot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.jackpot-header h3 {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-dark);
    margin: 0;
}

.jackpot-info {
    font-size: 13px;
    color: var(--text-light);
    margin: 0 0 8px 0;
}

.jackpot-amount {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-green);
    margin: 0;
}

.jackpot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.jackpot-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 1000;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    max-width: 600px;
    margin: 0 auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.2s;
    flex: 1;
    padding: 4px 0;
}

.nav-item.active {
    color: var(--primary-green);
}

.nav-item img {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    filter: grayscale(1) opacity(0.6);
    transition: filter 0.2s;
}

.nav-item.active img {
    filter: grayscale(0) opacity(1);
}

.nav-item span {
    font-size: 11px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 600px) {
    .category-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
    }
    
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .game-image {
        height: 110px;
        padding: 15px;
    }
    
    .game-name {
        font-size: 14px;
        padding: 10px;
    }
}

@media (max-width: 400px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

.skeleton {
    animation: shimmer 1.2s ease-in-out infinite;
    background: linear-gradient(to right, #f0f0f0 8%, #f8f8f8 18%, #f0f0f0 33%);
    background-size: 800px 100px;
}

/* Support Button */
.support-btn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 62px;
    height: 62px;
    background: transparent;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 999;
    transition: transform 0.2s;
    overflow: hidden;
}

.support-btn:hover {
    transform: scale(1.1);
}

.support-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
}
