/* Mobile-First Base Styles */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.2);
    --transition-speed: 0.3s;
    --perspective: 1000px;
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background: #000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    perspective: var(--perspective);
}

/* Main Content */
.main-content {
    padding: 0;
    margin: 0;
    background: #000;
    min-height: 100vh;
    width: 100%;
    padding-top: 60px;
}

/* Welcome Message */
.welcome-message {
    background: linear-gradient(45deg, rgba(74, 144, 226, 0.1), rgba(231, 76, 60, 0.1));
    padding: 0.5rem;
    text-align: center;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-top: 60px;
}

.welcome-message h2 {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.welcome-message p {
    font-size: 0.8rem;
    margin: 0.25rem 0 0;
    color: rgba(255,255,255,0.8);
}

/* Featured Game Section */
.featured-game-section {
    padding: 0;
    margin: 0;
    background: #000;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.featured-game-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(74, 144, 226, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.featured-game-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.featured-game-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

/* Hide other sections */
.welcome-message {
    display: none;
}

/* Categories Section */
.categories-section {
    padding: 1rem;
    background: #000;
    margin-top: 1rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: #111;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all var(--transition-speed);
    transform-style: preserve-3d;
    transform: translateZ(0);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
}

.category-card:hover {
    transform: translateZ(20px) scale(1.05);
    box-shadow: var(--card-shadow-hover);
    background: #1a1a1a;
}

.category-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.category-card h3 {
    font-size: 0.9rem;
    margin: 0;
    color: #fff;
}

/* Games Grid Section */
.games-grid-section {
    padding: 1rem;
    background: #000;
    position: relative;
    margin: 0;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0;
}

/* Game Card */
.game-card {
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed);
    transform-style: preserve-3d;
    transform: translateZ(0);
    border: 1px solid rgba(255,255,255,0.1);
}

.game-card:hover {
    transform: translateZ(20px) scale(1.05);
    box-shadow: var(--card-shadow-hover);
}

.game-thumbnail-container {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background: #000;
    transform-style: preserve-3d;
    border-radius: 8px 8px 0 0;
}

.game-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    filter: brightness(0.9) contrast(1.1);
}

.game-thumbnail.placeholder {
    height: 200px;
    background: rgba(0, 247, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 3rem;
}

.game-thumbnail.placeholder i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Section Titles */
.section-title {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transform: translateZ(20px);
    position: relative;
    padding-bottom: 0.25rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

/* Navigation */
.navbar {
    background: rgba(33, 37, 41, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateZ(50px);
    height: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar-brand {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.nav-link {
    padding: 0.5rem 1rem;
    color: rgba(255,255,255,0.8) !important;
    transition: color var(--transition-speed);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Game Info */
.game-info {
    padding: 0.75rem;
    background: #111;
    transform: translateZ(10px);
}

.game-info h3 {
    font-size: 0.9rem;
    margin: 0;
    color: #fff;
}

.game-category {
    font-size: 0.8rem;
    margin: 0.25rem 0;
    color: var(--primary-color);
}

.game-stats {
    font-size: 0.8rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-stats i {
    color: var(--accent-color);
}

/* Play Button */
.play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-speed);
    background: rgba(0,0,0,0.3);
    transform: translateZ(20px);
}

.game-card:hover .play-button-overlay {
    opacity: 1;
}

.play-button {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #FF8C00, #FFA500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transform: translateZ(25px) scale(0.8);
    transition: transform var(--transition-speed);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.game-card:hover .play-button {
    transform: translateZ(35px) scale(1);
}

/* Enhanced Thumbnail Effects */
.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,0.4) 50%,
        rgba(0,0,0,0.8) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translateZ(10px);
}

.game-card:hover .thumbnail-overlay {
        opacity: 1;
}

.thumbnail-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at center,
        rgba(255,255,255,0.3) 0%,
        rgba(255,255,255,0.1) 30%,
        rgba(255,255,255,0) 70%
    );
        opacity: 0;
    transition: opacity 0.3s ease;
    transform: translateZ(15px);
}

.game-card:hover .thumbnail-glow {
    opacity: 1;
}

.thumbnail-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(45deg, #FF8C00, #FFA500) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translateZ(20px);
}

.game-card:hover .thumbnail-border {
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .welcome-message {
        padding: 0.35rem;
    }
    
    .welcome-message h2 {
        font-size: 1rem;
    }
    
    .welcome-message p {
        font-size: 0.75rem;
    }
    
    .featured-game-container {
        height: 40vh;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 0.35rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    
    .game-info h3 {
        font-size: 0.8rem;
    }
    
    .game-category {
        font-size: 0.75rem;
    }
    
    .game-stats {
        font-size: 0.75rem;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
    }
    
    .category-card {
        padding: 0.75rem;
    }
    
    .category-icon {
        font-size: 1.5rem;
    }
    
    .category-card h3 {
        font-size: 0.8rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .game-card:active {
        transform: translateZ(10px) scale(0.95);
    }
    
    .game-card:active .game-thumbnail {
        transform: translateZ(20px) scale(1.05) rotate(0.5deg);
    }
    
    .game-card:active .play-button {
        transform: translateZ(25px) scale(1);
    }
}

/* No Content Messages */
.no-game-message,
.no-games-message,
.no-categories-message {
    width: 100%;
    padding: 2rem 1rem;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    border-radius: 10px;
    margin: 1rem 0;
    border: 1px solid rgba(255,255,255,0.1);
}

.no-game-message i,
.no-games-message i,
.no-categories-message i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.no-game-message h3,
.no-games-message h3,
.no-categories-message h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.no-game-message p,
.no-games-message p,
.no-categories-message p {
    font-size: 0.9rem;
    color: #ccc;
    margin: 0;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Tablet and Desktop Adjustments */
@media (min-width: 768px) {
    .main-content {
        padding-top: 70px;
    }

    .featured-game-section {
        padding: 2rem 0;
        min-height: 80vh;
    }

    .featured-game-container {
        height: 80vh;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
        padding: 1rem;
    }

    .navbar {
        height: 70px;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }

    .game-info h3 {
        font-size: 1rem;
    }

    .game-category {
        font-size: 0.85rem;
    }

    .game-stats {
        font-size: 0.85rem;
    }
}

/* Large Desktop Adjustments */
@media (min-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Game Frame Container */
.game-frame-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.game-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

/* Similar Games Section */
.similar-games-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.similar-game {
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--transition-speed);
    transform-style: preserve-3d;
    transform: translateZ(0);
    border: 1px solid rgba(255,255,255,0.1);
}

.similar-game:hover {
    transform: translateZ(20px) scale(1.05);
    box-shadow: var(--card-shadow-hover);
}

.similar-game-thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.similar-game-info {
    padding: 0.75rem;
}

.similar-game-info h6 {
    font-size: 0.9rem;
    margin: 0;
    color: #fff;
}

.similar-game-info .game-stats {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .game-frame-container {
        padding-top: 75%; /* 4:3 Aspect Ratio for mobile */
    }
    
    .similar-games-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .similar-game-thumb {
        height: 80px;
    }
    
    .similar-game-info h6 {
        font-size: 0.8rem;
    }
    
    .similar-game-info .game-stats {
        font-size: 0.75rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .similar-game:active {
        transform: translateZ(10px) scale(0.95);
    }
}

/* Important Pages Section Styles */
.important-pages-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.important-pages-section .section-title {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
}

.info-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    color: #007bff;
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #007bff;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.info-card p {
    color: #666;
    margin-bottom: 0;
    font-size: 1rem;
} 