/*

Custom style

You can override the default class or style here

This file will not be overwritten by the updater

*/

/* ========================================
   Game Card Redesign - CrazyGames Style
   ======================================== */

/* Grid improvements */
.grid-layout {
    gap: 16px;
}

/* Game card container */
.list-game {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #2a2a30;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.list-game:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Thumbnail styling */
.list-thumbnail img.small-thumb {
    border-radius: 12px;
    transition: opacity 0.3s ease;
}

/* Game title on cards */
.grid-layout .list-title {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    margin: 0;
    opacity: 1;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: left;
    white-space: normal;
    line-height: 1.3;
}

.grid-layout .list-game:hover .list-title {
    opacity: 1;
}

/* Hide star rating by default, show on hover */
.grid-layout .star-rating {
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-bottom: 4px;
}

.grid-layout .list-game:hover .star-rating {
    opacity: 1;
}

/* Badge system for game cards */
.game-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.game-badge.badge-new {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
}

.game-badge.badge-hot {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
}

.game-badge.badge-updated {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: #fff;
}

.game-badge.badge-top-rated {
    background: linear-gradient(135deg, #eab308, #fbbf24);
    color: #000;
}

/* Featured section styling */
.featured-section {
    margin-bottom: 3rem;
}

.featured-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

/* Top picks section - larger cards */
.top-picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.top-picks-grid .list-game {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.top-picks-grid .list-game:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

/* Section headers enhancement */
h3.item-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

h3.item-title i {
    display: none; /* Hide icons for cleaner look */
}

/* View more link styling */
.view-more-link {
    font-size: 0.9rem;
    color: #7c3aed;
    font-weight: 600;
    transition: color 0.2s ease;
}

.view-more-link:hover {
    color: #8b5cf6;
}

/* Improved masonry for featured items */
.grid-layout .span-2 {
    grid-column-end: span 2;
    grid-row-end: span 2;
}

.grid-layout .span-2 .list-title {
    font-size: 1.1rem;
    padding: 16px;
}

/* Load more button styling */
.btn-load-more-games {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border: none;
    padding: 12px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-load-more-games:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

/* Sidebar improvements */
.sidebar {
    background-color: transparent;
}

.sidebar .widget {
    background-color: #1e1e23;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid #2a2a30;
}

/* Page title styling */
.page-title,
.singlepage-title {
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Post list improvements */
.post-title {
    color: #fff;
    font-weight: 600;
}

.post-title:hover {
    color: #7c3aed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .grid-layout {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .top-picks-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .grid-layout .list-title {
        font-size: 0.8rem;
        padding: 8px;
    }
    
    h3.item-title {
        font-size: 1.25rem;
    }
}

/* Improved animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.grid-item {
    animation: fadeInUp 0.3s ease-out;
}

/* Category pills in navigation */
.list-categories li a {
    color: #d4d4d4;
    transition: color 0.2s ease;
}

.list-categories li a:hover {
    color: #fff;
}

/* Hidden links dropdown improvement */
ul.hidden-links {
    background-color: #2a2a30;
    border: 1px solid #35353d;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

ul.hidden-links li {
    background-color: transparent;
}

ul.hidden-links li:hover {
    background-color: #35353d;
}

ul.hidden-links a {
    color: #d4d4d4;
}

ul.hidden-links a:hover {
    color: #fff;
}

/* Dropdown menu improvements */
.dropdown-menu {
    background: #2a2a30;
    border: 1px solid #35353d;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.nav-item-child {
    color: #d4d4d4;
}

.nav-item-child:hover {
    background-color: #35353d;
    color: #fff;
}

.nav-link-child {
    color: #d4d4d4;
}

.nav-link-child:hover {
    color: #fff;
}

/* Better focus states for accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

/* Scrollbar styling for webkit browsers */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1e1e23;
}

::-webkit-scrollbar-thumb {
    background: #2a2a30;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #35353d;
}

/* Button styling improvements */
.btn-primary {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border: none;
    color: #fff;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

/* Enhanced navbar */
.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

.navbar-toggler {
    border-color: #35353d;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.25);
}

/* Improved spacing for content */
.game-container {
    padding-top: 1.5rem;
}

/* Widget styling */
.widget {
    margin-bottom: 1.5rem;
}

/* Footer links */
.footer a {
    color: #d4d4d4;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #fff;
}

/* Copyright section styling */
.copyright {
    padding: 1.5rem 0;
}

.copyright a {
    color: #7c3aed;
}

.copyright a:hover {
    color: #8b5cf6;
}

/* Enhanced form elements */
.form-control {
    background-color: #2a2a30;
    border-color: #35353d;
    color: #d4d4d4;
    transition: all 0.2s ease;
}

.form-control:focus {
    background-color: #2a2a30;
    border-color: #7c3aed;
    color: #fff;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
}

.form-control::placeholder {
    color: #888;
}

/* Login/Register forms */
.login-form,
.register-form {
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #2a2a30;
}

/* Enhanced social share buttons */
.social-share img {
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.8;
}

.social-share:hover img {
    transform: scale(1.1);
    opacity: 1;
}

/* Game info enhancements */
.info-the-game {
    color: #d4d4d4;
    line-height: 1.7;
}

.info-the-game b {
    color: #fff;
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Stats vote icons */
.stats-vote i {
    transition: all 0.2s ease;
    opacity: 0.8;
}

.stats-vote i:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* Enhanced post styling */
.post-item {
    padding: 1.5rem;
    background-color: #1e1e23;
    border-radius: 12px;
    border: 1px solid #2a2a30;
    transition: all 0.2s ease;
}

.post-item:hover {
    border-color: #35353d;
    transform: translateX(4px);
}

/* Banner ads spacing */
.banner-ads {
    margin: 2rem 0;
    padding: 1rem;
    background-color: #1e1e23;
    border-radius: 8px;
}

/* Alert styling */
.alert {
    border-radius: 8px;
    border: 1px solid #35353d;
}

/* Table styling for leaderboards */
.table {
    color: #d4d4d4;
}

.table thead th {
    border-bottom: 2px solid #2a2a30;
    color: #fff;
    font-weight: 600;
}

.table td {
    border-top: 1px solid #2a2a30;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(42, 42, 48, 0.5);
}

/* Enhanced hover effects for links */
a.cat-link,
a.tag-item {
    display: inline-block;
}

/* Mobile menu improvements */
@media (max-width: 992px) {
    .navbar-collapse {
        background-color: #1e1e23;
        padding: 1rem;
        border-radius: 8px;
        margin-top: 1rem;
        border: 1px solid #2a2a30;
    }
    
    .nav-item {
        margin: 0.25rem 0;
    }
    
    li.nav-item:hover {
        border-radius: 6px;
    }
}

/* Loading animation for lazy images */
img.lazyload:not([src]) {
    background: linear-gradient(90deg, #2a2a30 25%, #35353d 50%, #2a2a30 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Enhanced grid spacing */
.grid-wrapper {
    margin-bottom: 2rem;
}

/* Section dividers */
.featured-section,
.bottom-container {
    border-top: 1px solid #2a2a30;
    padding-top: 2rem;
}

.featured-section {
    border-top: none;
    padding-top: 0;
}

/* Page headers */
.page-title,
h1.singlepage-title {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #2a2a30;
}

/* Enhanced game iframe container */
.game-iframe-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    border: 1px solid #2a2a30;
}
