/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f0f0ff 0%, #e0e7ff 50%, #c7d2fe 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

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

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(79, 70, 229, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(79, 70, 229, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(79, 70, 229, 0.2));
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4f46e5, #6366f1, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(79, 70, 229, 0.1);
}

.nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.nav-btn.active {
    background: linear-gradient(135deg, #4f46e5, #4f46e5);
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: flex;
    align-items: center;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: auto;
    height: 48px;
    min-width: 64px;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    cursor: pointer;
    position: relative;
    margin-left: 1rem;
}

.hamburger-icon span,
.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    display: block;
    width: 20px;
    height: 2.5px;
    background: white;
    border-radius: 1px;
    margin: 3.5px 0;
    transition: all 0.3s ease;
}

.hamburger-icon::before {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
}
.hamburger-icon span {
    position: relative;
    z-index: 1;
}
.hamburger-icon::after {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
}

.hamburger-icon:hover,
.hamburger-icon.active {
    background: linear-gradient(135deg, #4f46e5, #4f46e5);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    transform: translateY(-2px);
}

.hamburger-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.2);
    border: 1px solid rgba(79, 70, 229, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
}

.hamburger-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid rgba(79, 70, 229, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    transform: translateX(5px);
}

.dropdown-item.active {
    background: linear-gradient(135deg, #4f46e5, #4f46e5);
    color: white;
}

/* Main Content */
.main {
    padding: 2rem 0;
}

/* Homepage banner ad */
.homepage-banner-ad {
    padding: 1.25rem 0 0;
}

.homepage-banner-ad__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 0;
}

.homepage-banner-ad__label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4f46e5;
    text-align: center;
}

.homepage-banner-ad #div-gpt-ad-1776254582056-0 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Detail page banner ad (used on category + detail pages) */
.detail-banner-ad {
    padding: 1.25rem 0 0;
}

.detail-banner-ad__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 0;
}

.detail-banner-ad__label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4f46e5;
    text-align: center;
}

.detail-banner-ad #div-gpt-ad-1776254665088-0 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(139, 92, 246, 0.1);
    margin-right: 0.5rem;
}

.breadcrumb-item:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-1px);
}

.breadcrumb-item.active {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.breadcrumb-separator {
    color: #4f46e5;
    margin: 0 0.5rem;
    font-weight: bold;
}

/* Game Grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.game-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.25);
}

.game-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover img {
    transform: scale(1.05);
}

.game-card-content {
    padding: 1rem;
}

.game-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* .game-card .category {
    font-size: 0.8rem;
    color: #4f46e5;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
} */

/* Load More Button */
.load-more-container {
    text-align: center;
    margin: 2rem 0;
}

.load-more-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.load-more-btn i {
    margin-right: 0.5rem;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(79, 70, 229, 0.1);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    text-align: center;
}

.footer-section h3 {
    color: #4f46e5;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    color: #666;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(79, 70, 229, 0.1);
}

.footer-links a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4f46e5;
}

.separator {
    margin: 0 1rem;
    color: #ccc;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 2rem;
}

.game-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.game-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.15);
}

.game-info h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.game-info p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.game-meta {
    margin-bottom: 2rem;
}

.meta-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.meta-item .label {
    font-weight: 600;
    color: #4f46e5;
    min-width: 100px;
    margin-right: 1rem;
}

.meta-item span:last-child {
    color: #666;
    flex: 1;
}

.play-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.play-btn i {
    margin-right: 0.5rem;
}

/* Game Frame Modal */
.game-frame-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.game-frame-content {
    background: white;
    margin: 2% auto;
    border-radius: 20px;
    width: 95%;
    max-width: 1000px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.game-frame-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    border-radius: 20px 20px 0 0;
}

.game-frame-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.close-frame-btn {
    font-size: 1.5rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.close-frame-btn:hover {
    opacity: 0.7;
}

.game-frame-body {
    flex: 1;
    padding: 1rem;
    background: #f8f9fa;
}

.game-frame-body iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: white;
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .nav {
        gap: 0.5rem;
        justify-content: flex-end;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .breadcrumb {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .breadcrumb-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hamburger-dropdown {
        right: 0;
        left: auto;
        transform: translateY(-10px);
        min-width: 200px;
    }
    
    .hamburger-dropdown.show {
        transform: translateY(0);
    }
    
    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .game-card img {
        height: 120px;
    }
    
    .game-card-content {
        padding: 0.75rem;
    }
    
    .game-card h3 {
        font-size: 0.9rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .game-details {
        flex-direction: column;
    }
    
    .game-frame-content {
        width: 98%;
        height: 95vh;
    }
    
    .game-frame-header {
        padding: 0.75rem 1rem;
    }
    
    .game-frame-header h3 {
        font-size: 1rem;
    }
    
    .game-frame-body {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .game-card img {
        height: 100px;
    }
    
    .game-card-content {
        padding: 0.5rem;
    }
    
    .game-card h3 {
        font-size: 0.8rem;
    }
    
    .load-more-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
    }
} 

/* Category Page Styles */
.category-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    margin-top: 1rem;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.category-title i {
    color: #4f46e5;
    font-size: 2rem;
}

.category-description {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: #6c757d;
}

.error {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: #dc3545;
    background: #f8d7da;
    border-radius: 10px;
    margin: 2rem 0;
}

/* Responsive adjustments for category page */
@media (max-width: 768px) {
    .category-header {
        margin-bottom: 2rem;
        padding: 1.5rem 1rem;
    }
    
    .category-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .category-title i {
        font-size: 1.5rem;
    }
    
    .category-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* Policy and Contact page styles */
.policy-content, .contact-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.policy-content h1, .contact-content h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
    text-align: center;
}

.last-updated, .contact-intro {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-style: italic;
}

.policy-content section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.policy-content h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.policy-content h3 {
    color: #555;
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem 0;
}

.policy-content p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #444;
}

.policy-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Contact page specific styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.contact-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

.contact-info h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #667eea;
    margin-top: 0.25rem;
    min-width: 24px;
}

.contact-item h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item p {
    color: #666;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-form h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
}

.checkbox-label a {
    color: #667eea;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

/* FAQ Section */
.faq-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e1e5e9;
}

.faq-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

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

.faq-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.faq-item h3 {
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Responsive design for contact page */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .policy-content section {
        padding: 1rem;
    }
    
    .policy-content h1,
    .contact-content h1 {
        font-size: 2rem;
    }
} 