/* Main Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Header */
.navbar {
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
}

.dropdown-menu {
    border: none;
    border-radius: 8px;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: #f1f5ff;
}

/* Game Cards */
.card {
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
}

.card-title {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-text {
    color: #6c757d;
    font-size: 0.95rem;
}

.card-footer {
    background-color: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.25rem;
}

/* Game Container */
.game-container {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.game-frame {
    display: block;
    width: 100%;
    border: none;
}

.game-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.game-controls .btn {
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Ad Containers */
.ad-container {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.google-ad {
    display: inline-block;
    width: 100%;
}

/* Footer */
footer {
    margin-top: 70px;
    padding: 50px 0 20px;
    background-color: #212529;
    color: #fff;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #fff;
}

footer a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

footer a:hover {
    color: #fff;
    text-decoration: none;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #4a6cf7;
    transform: translateY(-3px);
}

/* Comments Section */
.comments-list {
    margin-top: 30px;
}

.comment {
    margin-bottom: 25px;
}

.comment h5 {
    font-weight: 600;
    margin-bottom: 5px;
}

.comment p {
    color: #6c757d;
    margin-bottom: 10px;
}

/* Game Categories Badge */
.badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.badge.bg-primary {
    background-color: #4a6cf7 !important;
}

/* Jumbotron Styling */
.jumbotron {
    background-color: #fff;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.jumbotron h1 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #212529;
}

.jumbotron .lead {
    font-size: 1.25rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Button Styling */
.btn {
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #4a6cf7;
    border-color: #4a6cf7;
}

.btn-primary:hover {
    background-color: #3a5bd9;
    border-color: #3a5bd9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 108, 247, 0.3);
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* Search Form */
.form-control {
    height: 46px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: #4a6cf7;
    box-shadow: 0 0 0 0.25rem rgba(74, 108, 247, 0.25);
}

/* Game Instructions */
.instructions {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid #4a6cf7;
}

/* Game Info Box */
.game-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Related Games */
.related-games {
    margin-top: 2rem;
}

.related-games h3 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.related-games .card {
    margin-bottom: 20px;
}

/* Category Filters */
.category-filters {
    margin-bottom: 30px;
}

.category-filters .btn {
    margin-right: 8px;
    margin-bottom: 8px;
    border-radius: 20px;
    font-weight: 500;
}

/* Pagination */
.pagination {
    justify-content: center;
    margin-top: 40px;
}

.pagination .page-item .page-link {
    margin: 0 5px;
    border-radius: 8px;
    color: #4a6cf7;
}

.pagination .page-item.active .page-link {
    background-color: #4a6cf7;
    border-color: #4a6cf7;
}

/* Featured Games Section */
.featured-games {
    margin-bottom: 40px;
}

.featured-games h2 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.featured-games h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #4a6cf7;
}

/* Game Rating Stars */
.rating {
    color: #ffc107;
    margin-bottom: 10px;
}

/* Game Play Count */
.play-count {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 15px;
}

/* Custom Animation for Game Cards */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.card.featured {
    animation: pulse 2s infinite;
}

/* Announcement Bar */
.announcement-bar {
    background-color: #4a6cf7 !important;
}

.announcement-bar a {
    font-weight: 500;
}

/* User Reviews */
.review-form label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.star-rating {
    display: flex;
    gap: 5px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.star-rating i {
    cursor: pointer;
    color: #ddd;
}

.star-rating i.active {
    color: #ffc107;
}

/* Game Screenshots */
.screenshots {
    margin: 2rem 0;
}

.screenshots img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.screenshots img:hover {
    transform: scale(1.05);
}

/* Game Details */
.game-details {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.game-detail-item {
    flex: 0 0 50%;
    margin-bottom: 15px;
}

.game-detail-item strong {
    font-weight: 600;
    margin-right: 5px;
}

/* Loading Animation */
.loader {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(74, 108, 247, 0.3);
    border-radius: 50%;
    border-top-color: #4a6cf7;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Fixes */
@media (max-width: 992px) {
    .jumbotron {
        padding: 2rem;
    }
    
    .card-img-top {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
    }
    
    .jumbotron {
        padding: 1.5rem;
    }
    
    .game-detail-item {
        flex: 0 0 100%;
    }
}

/* Game Details Page Styles */
.game-details-container {
    background-color: #f8f9fa;
}

.game-banner {
    height: 300px;
    object-fit: cover;
    object-position: center;
}

.game-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0) 100%);
}

.game-stats i {
    font-size: 24px;
    display: block;
}

.play-btn {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 108, 247, 0.4);
}

.play-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 108, 247, 0.5);
}

.screenshot-thumbnail {
    height: 150px;
    width: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.screenshot-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.comment-avatar {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating-input input {
    display: none;
}

.rating-input label {
    cursor: pointer;
    font-size: 25px;
    color: #ddd;
    margin-right: 5px;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
    color: #ffc107;
}

.related-game {
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 10px;
}

.related-game:hover {
    background-color: #f0f0f0;
}

.related-game-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.social-share {
    display: none;
    gap: 10px;
    margin-top: 10px;
}

.embed-code {
    font-size: 0.85rem;
}

.ad-placeholder {
    width: 100%;
    height: 250px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #ccc;
    color: #777;
    font-size: 18px;
}

/* Game Card Enhancements */
.game-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.game-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

.game-card .game-category {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 0.8rem;
}

.game-card .card-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
    margin-top: 10px;
}

.game-card .btn-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background-color: rgba(74, 108, 247, 0.9);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.game-card:hover .btn-play {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Additional Animation for Categories */
.category-icon {
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.2);
}

/* Search Results Enhancement */
.search-highlight {
    background-color: rgba(255, 193, 7, 0.3);
    padding: 0 3px;
    border-radius: 2px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .game-banner {
        height: 200px;
    }
    
    .game-title-overlay h1 {
        font-size: 24px;
    }
    
    .screenshot-thumbnail {
        height: 100px;
    }
    
    .related-game-img {
        width: 60px;
        height: 50px;
    }
}
