/* ===========================
   Banner
=========================== */

#mainBanner .carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 10px;
}

#mainBanner h2 {
    font-size: 32px;
    color: #fff;
}

#mainBanner p {
    font-size: 18px;
    color: #ddd;
}

/* ===========================
   Section Title
=========================== */

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

/* ===========================
   Game Cards (Shared)
=========================== */

.game-card {
    position: relative;
    width: 250px;
    height: 320px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background-color: #020617;
    transition: transform 0.3s;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card:hover {
    transform: scale(1.03);
}

.game-hover {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 15px;
    opacity: 0;
    transition: 0.3s;
}

.game-card:hover .game-hover {
    opacity: 1;
}

/* ===========================
   Swiper Wrapper
=========================== */

.top-games-swiper {
    position: relative;
    padding: 0;
}

.top-games-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
}

.top-games-swiper .swiper-slide {
    display: flex;
    justify-content: flex-start;
    margin-left: 0;
    margin-right: 20px;
}

/* ===========================
   Swiper Navigation Buttons
=========================== */
.top-games-swiper .swiper-button-next,
.top-games-swiper .swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 70px;
    background: rgba(15, 23, 42, 0.8);
    color: #e5f0ff;
    border-radius: 12px;
    z-index: 50;
}

/* دکمه راست */
.top-games-swiper .swiper-button-next {
    right: 10px;
    left: auto;
}

/* دکمه چپ */
.top-games-swiper .swiper-button-prev {
    left: 10px;
    right: auto;
}


/* Hover */
.top-games-swiper .swiper-button-next:hover,
.top-games-swiper .swiper-button-prev:hover {
    background: #0ea5e9 !important;
    color: #fff !important;
}


/* CTA Section with Video Background */
.cta-video-section {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    margin: 40px 0;
}

.cta-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;   /* ویدیو کل بخش رو پر کنه */
    z-index: 1;
    display: block;      /* مطمئن شو مخفی نیست */
}


/* لایه تاریک روی ویدیو */
.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.6); /* رنگ تیره از پالت */
    z-index: 2;
}

/* محتوای CTA */
.cta-content {
    position: relative;
    z-index: 3;
    color: #fff;
    text-align: center;
    max-width: 600px;
    padding: 20px;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-subtitle {
    font-size: 18px;
    margin-bottom: 25px;
    color: #e5f0ff;
}

.cta-content .btn {
    font-size: 18px;
    padding: 12px 30px;
    border-radius: 8px;
}


/* ===========================
   Masonry Gallery
=========================== */

.gallery-section {
    margin-top: 60px;
}

.masonry-gallery {
    column-count: 3;              /* تعداد ستون‌ها */
    column-gap: 20px;             /* فاصله بین ستون‌ها */
}

.masonry-gallery img {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 12px;
    display: block;
    break-inside: avoid;          /* جلوگیری از شکستن عکس */
    transition: transform 0.3s, opacity 0.3s;
}

/* افکت Hover */
.masonry-gallery img:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .masonry-gallery {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .masonry-gallery {
        column-count: 1;
    }
}

/* ===========================
   Gaming Neon Footer
=========================== */

.footer-gaming {
    background: #0f172a;
    padding: 50px 0 20px;
    position: relative;
    color: #e2e8f0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 800;
    color: #38bdf8; /* آبی نئونی */
    margin-bottom: 15px;
}

.footer-desc {
    font-size: 15px;
    line-height: 1.8;
    color: #cbd5e1;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #38bdf8;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #38bdf8;
    padding-right: 5px;
}

/* شبکه‌های اجتماعی */
.footer-socials a {
    font-size: 22px;
    margin-left: 15px;
    color: #94a3b8;
    transition: 0.3s;
}

.footer-socials a:hover {
    color: #38bdf8;
    text-shadow: 0 0 10px #38bdf8;
}

/* خط نئونی پایین */
.footer-neon-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
    margin-top: 40px;
    opacity: 0.7;
}

/* کپی‌رایت */
.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #64748b;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-socials a {
        margin: 0 10px;
    }
}

.modal-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1; /* perfect square */
    overflow: hidden;
    border-radius: 8px;
    background-color: #222;
}

.modal-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
}


.game-card img {
    transition: transform 0.3s ease;
    cursor: pointer;
}
.game-card img:hover {
    transform: scale(1.05);
}
.carousel-item {
    padding: 10px 0;
}
