/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    font-size: 18px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Bar */
.navbar {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 1.2rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.8rem 0;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo h1 {
    font-size: 2.2rem;
    font-weight: bold;
    color: #4CAF50;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #4CAF50;
    background-color: rgba(255,255,255,0.15);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Hero Section with Carousel */
.hero {
    position: relative;
    padding: 1.5rem 0;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
}

.hero .container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 0;
}

.carousel {
    position: relative;
    height: 400px;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item a {
    display: block;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.carousel-item a:hover {
    transform: scale(1.02);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    border-radius: 20px;
    z-index: 1;
    pointer-events: none;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background-color: white;
    width: 30px;
    border-radius: 6px;
}

.carousel-indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Girl Section */
.girl-section {
    background-color: transparent;
    border-radius: 15px;
    padding: 0;
    margin-bottom: 1.5rem;
    box-shadow: none;
    border: none;
}

.girl-header {
    position: relative;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

.girl-header img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.girl-header:hover img {
    transform: scale(1.05);
}

.girl-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(255,255,255,0.95);
    color: #333;
    padding: 1rem 1.5rem;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.4rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.girl-games-row {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.girl-game-item {
    flex: 1;
    min-width: 100px;
    text-align: center;
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.girl-game-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    border-color: #ff69b4;
}

.girl-game-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.girl-game-item:hover img {
    transform: scale(1.1);
}

.girl-game-item h4 {
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}


/* Game Categories */
.game-categories {
    padding: 1rem 0;
    background-color: #f8f9fa;
}

.category-section {
    margin-bottom: 1.5rem;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
}

.category-title {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    color: #333;
    border-bottom: 4px solid #4CAF50;
    padding-bottom: 0.8rem;
    display: inline-block;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Game Grid Layouts */
.game-grid {
    display: grid;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.game-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(48%, 1fr));
}

.game-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
}

.game-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(23%, 1fr));
}

.game-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #e0e0e0;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    border-color: #4CAF50;
}

.game-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card a {
    text-decoration: none;
    color: inherit;
    font-family: inherit;
}

.game-card:hover img {
    transform: scale(1.05);
}

.game-card h3 {
    padding: 0.8rem;
    font-size: 1.4rem;
    text-align: center;
    font-weight: 600;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Double Card Layout */
.game-card-double {
    background: none;
    box-shadow: none;
}

.game-card-row {
    display: flex;
    gap: 0.8rem;
    height: 100%;
}

.game-card-half {
    flex: 1;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.game-card-half:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    border-color: #4CAF50;
}

.game-card-half img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card-half a {
    text-decoration: none;
    color: inherit;
    font-family: inherit;
}

.game-card-half:hover img {
    transform: scale(1.05);
}

.game-card-half h3 {
    padding: 1rem;
    font-size: 1.2rem;
    text-align: center;
    font-weight: 600;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Single Card Layout */
.game-card-single {
    background-color: #f8f0f8;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
}

.game-card-single:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.game-card-single img {
    height: 280px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.game-card-single a {
    text-decoration: none;
    color: inherit;
    font-family: inherit;
}

.game-card-single:hover img {
    transform: scale(1.02);
}

.game-card-single h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Girl Games Row */
.girl-games-row {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.girl-game-item {
    flex: 1;
    min-width: 100px;
    text-align: center;
}

.girl-game-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.girl-game-item h4 {
    font-size: 0.9rem;
    color: #333;
}

/* Vertical Game List */
.game-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.game-item {
    display: flex;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    width: 100%;
    align-items: center;
}

.game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border-color: #4CAF50;
}

.game-item-left {
    flex: 0 0 120px;
    height: 120px;
    overflow: hidden;
}

.game-item-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.game-item:hover .game-item-left img {
    transform: scale(1.05);
}

.game-item-center {
    flex: 1;
    padding: 1.5rem;
    min-width: 0;
}

.game-item-center h3 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    text-align: left;
    padding: 0;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-item-center p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.game-item-right {
    flex: 0 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    background-color: #f9f9f9;
    min-height: 140px;
}

.play-btn {
    display: block;
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 1.2rem 3rem;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-radius: 30px;
    box-shadow: 0 6px 12px rgba(76, 175, 80, 0.4);
    min-width: 200px;
    margin: 0 auto;
}

.play-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(76, 175, 80, 0.4);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .game-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .game-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .game-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .game-card-row {
        flex-direction: row;
    }
    
    .girl-games-row {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .girl-game-item {
        min-width: 80px;
    }
    
    .game-item {
        flex-direction: row;
    }
    
    .game-item-left {
        flex: 0 0 100px;
    }
    
    .game-item-right {
        flex: 0 0 100px;
        padding: 0 1rem;
    }
}


/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 1.8rem 0;
    margin-top: 2.5rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-main {
    flex: 100%;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #4CAF50;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #4CAF50;
}

.footer-section p {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.3rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.footer-section ul li a:hover {
    color: #4CAF50;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 0.8rem;
    text-align: center;
    font-size: 0.8rem;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .logo {
        gap: 0.8rem;
    }

    .logo h1 {
        font-size: 1.8rem;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .nav-links {
        margin-top: 0.5rem;
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }

    .nav-links li {
        margin: 0;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
        border-radius: 25px;
    }

    .navbar.scrolled {
        padding: 0.6rem 0;
    }

    .hero {
        padding: 1rem 0;
        margin-bottom: 0.5rem;
    }

    .hero .container {
        border-radius: 15px;
        padding: 0;
    }

    .carousel {
        height: 300px;
    }

    .carousel-item img {
        border-radius: 15px;
    }

    .carousel-item::after {
        border-radius: 15px;
    }

    .carousel-indicators {
        bottom: 15px;
    }

    .carousel-indicator {
        width: 10px;
        height: 10px;
    }

    .carousel-indicator.active {
        width: 25px;
    }

    .category-section {
        margin-bottom: 1rem;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
    }

    .category-title {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .game-grid {
        gap: 0.8rem;
        margin-bottom: 1rem;
    }

    .game-card img {
        height: 120px;
    }

    .game-card h3 {
        font-size: 1rem;
        padding: 0.6rem;
    }

    .girl-section {
        padding: 1rem;
    }

    .girl-header img {
        height: 180px;
    }

    .girl-title {
        font-size: 1.1rem;
        padding: 0.6rem 1rem;
        bottom: 10px;
        left: 10px;
    }

    .girl-games-row {
        gap: 0.8rem;
    }

    .girl-game-item {
        padding: 0.8rem;
    }

    .girl-game-item img {
        height: 70px;
    }

    .game-item {
        flex-direction: row;
        align-items: center;
    }
    
    .game-item-left {
        flex: 0 0 100px;
        height: 100px;
        overflow: hidden;
    }
    
    .game-item-center {
        flex: 1;
        padding: 0.8rem;
        min-width: 0;
    }
    
    .game-item-center h3 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .game-item-center p {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }
    
    .game-item-right {
        flex: 0 0 80px;
        padding: 0 0.5rem;
        min-height: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f9f9f9;
    }
    
    .play-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        white-space: nowrap;
        min-width: auto;
        margin: 0;
    }

    .footer {
        padding: 1.8rem 0;
        margin-top: 2.5rem;
    }

    .footer-content {
        gap: 1.8rem;
        margin-bottom: 1.8rem;
    }

    .footer-section h3 {
        font-size: 1.3rem;
    }

    .footer-section h4 {
        font-size: 1.1rem;
    }

    .footer-bottom {
        padding-top: 0.9rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.6rem;
    }

    .nav-links li {
        margin: 0 0.5rem;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 0.3rem 0.6rem;
    }

    .hero {
        padding: 0.8rem 0;
        margin-bottom: 0.4rem;
    }

    .hero .container {
        border-radius: 10px;
        padding: 0;
    }

    .carousel {
        height: 200px;
    }

    .carousel-item img {
        border-radius: 10px;
    }

    .carousel-item::after {
        border-radius: 10px;
    }

    .carousel-indicators {
        bottom: 10px;
    }

    .carousel-indicator {
        width: 8px;
        height: 8px;
    }

    .carousel-indicator.active {
        width: 20px;
    }

    .category-section {
        margin-bottom: 0.8rem;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
    }

    .category-title {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }

    .game-grid {
        gap: 0.6rem;
        margin-bottom: 0.8rem;
    }

    .game-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .game-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .game-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .game-card img {
        height: 80px;
    }

    .game-card h3 {
        font-size: 0.7rem;
        padding: 0.4rem;
    }

    .game-card-half img {
        height: 60px;
    }

    .game-card-half h3 {
        font-size: 0.7rem;
        padding: 0.5rem;
    }

    .girl-section {
        padding: 0.8rem;
    }

    .girl-header img {
        height: 100px;
    }

    .girl-title {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
        bottom: 6px;
        left: 6px;
    }

    .girl-games-row {
        gap: 0.5rem;
    }

    .girl-game-item {
        padding: 0.5rem;
        min-width: 60px;
    }

    .girl-game-item img {
        height: 40px;
    }

    .girl-game-item h4 {
        font-size: 0.6rem;
    }

    .game-item {
        flex-direction: row;
        align-items: center;
    }

    .game-item-left {
        flex: 0 0 80px;
        height: 80px;
    }

    .game-item-center {
        padding: 0.6rem;
    }

    .game-item-center h3 {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }

    .game-item-center p {
        font-size: 0.7rem;
    }

    .game-item-right {
        flex: 0 0 70px;
        padding: 0 0.4rem;
    }

    .play-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }

    .footer {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }

    .footer-content {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .footer-links-container {
        gap: 1.5rem;
    }

    .footer-section {
        min-width: 120px;
    }

    .footer-section h3 {
        font-size: 1.2rem;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-section p {
        font-size: 0.9rem;
    }

    .footer-section ul li a {
        font-size: 0.9rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
        padding-top: 0.8rem;
    }
}
