/* General Styles */
:root {
    --primary-color: #6f42c1;
    --secondary-color: #20c997;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5a32a3 100%);
    padding: 60px 0;
}

/* Category Section */
.category-section {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
}

/* Small Game Cards */
.game-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.game-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 140%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

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

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

.no-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255,255,255,0.4);
}

/* Game Overlay */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.play-button {
    color: white;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

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

.play-button i {
    color: var(--secondary-color);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Game Title - Smaller */
.game-title {
    padding: 10px 8px;
    text-align: center;
}

.game-title h6 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    color: var(--dark-color);
}

/* Single Game Page */
.game-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 0;
}

#game-iframe {
    display: block;
    border: none;
    background: #000;
    margin: 0;
    padding: 0;
}

.game-description {
    max-width: 900px;
    margin: 0 auto;
}

.description-content {
    line-height: 1.8;
    color: #555;
}

/* Admin Styles */
.admin-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #5a32a3 100%);
}

.admin-card {
    width: 100%;
    max-width: 500px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.admin-header {
    background: var(--dark-color);
    color: white;
    padding: 15px 20px;
    margin: -30px -30px 30px -30px;
    border-radius: 12px 12px 0 0;
}

.btn-action {
    margin: 0 3px;
}

.thumbnail-preview {
    max-width: 200px;
    margin-top: 10px;
    border-radius: 8px;
}

.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.table img {
    max-width: 60px;
    border-radius: 4px;
}

.alert {
    border-radius: 8px;
}

footer {
    margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .game-title h6 {
        font-size: 0.75rem;
    }
    
    .category-title {
        font-size: 1.25rem;
    }
}

/* SEO Content Section */
.seo-content {
    background: #ffffff;
    border-top: 1px solid #e9ecef;
}

.seo-article {
    color: #333;
    line-height: 1.8;
}

.seo-h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
}

.seo-h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--dark-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

.seo-article p {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: #495057;
}

.seo-article .lead {
    font-size: 1.2rem;
    color: #6c757d;
    line-height: 1.8;
}

.seo-list {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-left: 1.5rem;
    color: #495057;
}

.seo-list li {
    margin-bottom: 0.75rem;
}

.seo-highlight {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
}

.seo-highlight ul {
    list-style: none;
    padding-left: 0;
}

.seo-highlight li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.seo-highlight li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Similar Games Section */
.similar-games-section {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.similar-games-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
}

.similar-games-section .game-card {
    transition: all 0.3s ease;
}

.similar-games-section .game-card:hover {
    transform: translateY(-8px);
}

@media (max-width: 768px) {
    .seo-h1 {
        font-size: 1.75rem;
    }
    
    .seo-h2 {
        font-size: 1.4rem;
    }
    
    .seo-article p,
    .seo-list {
        font-size: 1rem;
    }
    
    .similar-games-section h3 {
        font-size: 1.4rem;
    }
}