/* ===================================
   INDEX PAGE STYLES - HOTOP
   =================================== */

/* Remove header border on index page */
.header .container {
    border-bottom: none !important;
}

/* Hero Section */
.hero-section {
    background: url('../images/05/material-image-17.jpg') no-repeat center center;
    background-size: cover;
    height: 1080px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: 30px;
    display: flex;
    justify-content: center;
}

.hero-btn {
    background-color: #FFFFFF;
    color: #000000;
    width: 400px;
    height: 80px;
    font-size: 32px;
    font-weight: 700;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-btn:hover {
    background-color: #F5F5F5;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Collection Section */
.collection-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.collection-item {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    display: block;
}

a.collection-item:hover,
a.collection-item:focus {
    text-decoration: none;
    color: inherit;
}

.collection-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.collection-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    pointer-events: none;
}

.collection-label {
    position: absolute;
    bottom: 18px;
    left: 40px;
    right: 40px;
    background: #fff;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    pointer-events: none;
    z-index: 2;
}

.collection-label h3 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    line-height: 1.4;
    margin: 0;
    text-align: center;
}

/* Marketplace Buttons */
.marketplace-buttons {
    display: flex;
    justify-content: center;
    gap: 70px;
    margin-top: 50px;
}

.marketplace-btn {
    display: block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.marketplace-btn:hover {
    transform: translateY(-3px);
}

.marketplace-btn img {
    display: block;
    width: 640px;
    height: auto;
    max-width: 100%;
}

/* Invitation Section */
.invitation-section {
    padding: 0;
    margin: 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.invitation-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
}

/* Reviews Section */
.reviews-section {
    padding: 80px 0;
    background-color: #fff;
    overflow: visible;
    position: relative;
}

.reviews-section .container {
    max-width: 1524px;
    overflow: visible;
    position: relative;
}

.reviews-carousel {
    position: relative;
    width: 1524px;
    max-width: 100%;
    margin: 0 auto;
}

.reviewsSwiper {
    position: relative;
    padding: 10px 7px 20px !important;
    width: 1524px;
    max-width: 100%;
    overflow: hidden;
}

.reviewsSwiper .swiper-slide {
    width: 280px;
    height: auto;
}

.swiper-backface-hidden .swiper-slide {
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.5);
}

.review-card {
    width: 280px;
    height: 380px;
    background: #fff;
    border-radius: 0;
    padding: 30px 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.review-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.review-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-name {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin: 0;
    line-height: 1.4;
}

.review-date {
    font-size: 14px;
    color: #000;
    margin: 0;
}

.review-rating {
    display: flex;
    gap: 4px;
    margin-top: 0;
    line-height: 1;
}

.review-rating span {
    font-size: 20px;
    color: #000;
    line-height: 1;
}

.review-rating img {
    width: auto;
    height: 20px;
}

.review-text {
    font-size: 12px;
    line-height: 1.6;
    color: #333;
    flex: 1;
    overflow: hidden;
}

/* Swiper Navigation Buttons */
.reviews-carousel .reviews-button-prev,
.reviews-carousel .reviews-button-next {
    width: auto;
    height: auto;
    background: none;
    border: none;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    pointer-events: auto;
}

.reviews-carousel .reviews-button-prev {
    left: -100px;
}

.reviews-carousel .reviews-button-next {
    right: -100px;
}

.reviews-carousel .reviews-button-prev:after,
.reviews-carousel .reviews-button-next:after {
    display: none !important;
    content: none !important;
}

.reviews-carousel .reviews-button-prev:hover,
.reviews-carousel .reviews-button-next:hover {
    opacity: 0.8;
}

.reviews-carousel .reviews-button-prev img,
.reviews-carousel .reviews-button-next img {
    width: 80px;
    height: auto;
    display: block;
}

.reviews-carousel .swiper-button-disabled {
    opacity: 0.35;
    pointer-events: auto;
    cursor: pointer;
}

/* Videos Section */
.videos-section {
    background: transparent;
    position: relative;
    padding-bottom: 50px;
}

.videos-section .container {
    position: relative;
}

.videos-section .container::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 260px;
    background: #FFD700;
    border-radius: 100px 100px 0 0;
    z-index: 0;
    pointer-events: none;
}

.videos-section .section-title {
    color: #333;
    position: relative;
    z-index: 2;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.video-card {
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    width: 360px;
    height: 640px;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.video-card.is-playable {
    cursor: pointer;
}

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

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border: 3px solid #fff;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: auto;
}

.play-btn::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 35px 0 35px 60px;
    border-color: transparent transparent transparent #fff;
    margin-left: 10px;
    position: relative;
    z-index: 2;
}

.play-btn:hover {
    border-color: rgba(255, 255, 255, 0.7);
}

.videos-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background-color: #033490;
    color: #ffffff;
    width: 400px;
    height: 80px;
    font-size: 32px;
    font-weight: 600;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.videos-more-btn:hover,
.videos-more-btn:focus {
    background-color: #022870;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(3, 52, 144, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .videos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
    }
    
    .hero-content {
        padding-bottom: 40px;
    }
    
    .hero-btn {
        width: 320px;
        height: 70px;
        font-size: 26px;
    }
    
    .collection-grid {
        grid-template-columns: 1fr;
    }
    
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .marketplace-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .reviewsSwiper {
        padding: 10px 0 20px;
        width: 1500px;
        max-width: 100%;
        overflow: hidden;
    }

    .reviewsSwiper .swiper-slide,
    .review-card {
        width: 240px;
    }

    .reviews-carousel .reviews-button-prev {
        left: 10px;
    }

    .reviews-carousel .reviews-button-next {
        right: 10px;
    }
    
    .reviews-carousel .reviews-button-prev img,
    .reviews-carousel .reviews-button-next img {
        width: 50px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 400px;
    }
    
    .hero-content {
        padding-bottom: 30px;
    }
    
    .hero-btn {
        width: 280px;
        height: 60px;
        font-size: 22px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
}

/* Home video modal (Творческие видео) */
.video-modal.home-video-modal.active,
.video-modal.active {
    display: flex;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.home-video-modal .video-modal-content {
    position: relative;
    width: min(960px, 100%);
    background: #000;
}

.home-video-modal .video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}

.home-video-modal .video-modal-close:hover {
    background: #ff1493;
}

.home-video-modal .video-player {
    width: 100%;
    max-height: 80vh;
    display: block;
    background: #000;
}
