/* Arthours Global Muse - Custom Styles */

/* Homepage Slideshow */
.fullscreen-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
    max-width: 800px;
    z-index: 10;
}

.slide-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
}

.slide-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    color: white;
}

.slide-buttons {
    margin-top: 30px;
}

/* Floating Navbar */
.floating-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    background: rgba(0, 0, 0, 0.5) !important; /* 50% transparent background */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
    transition: all 0.3s ease;
}

.floating-navbar .navbar-brand,
.floating-navbar .nav-link {
    color: #fff !important;
}

.floating-navbar .navbar-brand:hover,
.floating-navbar .nav-link:hover {
    color: #ccc !important;
}

.navbar-brand {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: flex-start;
    line-height: 1;
}

.navbar-brand img {
    margin: 0 !important;
    padding: 0 !important;
    display: block;
    height: 20px !important;
}

.floating-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.floating-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Header */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1031;
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px);
    padding: 0;
    height: 60px; /* Fixed height for desktop */
}

/* Mobile view specific adjustments */
@media (max-width: 991.98px) {
    .mobile-header {
        height: auto; /* Auto height for content */
    }
}

/* Minimal hamburger button */
.mobile-header .btn-link {
    padding: 0.5rem;
    background-color: #000000; /* Black */
    border: 1px solid #ffffff; /* White border */
    color: #ffffff; /* White text */
}

.mobile-header .btn-link:hover {
    background-color: #ffffff; /* White on hover */
    border: 1px solid #000000; /* Black border on hover */
    color: #000000; /* Black text on hover */
}

/* Offcanvas Menu */
.offcanvas {
    background-color: rgba(0, 0, 0, 0.95);
    color: white;
    width: 280px;
    z-index: 1040; /* Higher than mobile header */
}

.offcanvas .nav-link {
    color: white;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.offcanvas .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding-left: 25px;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
}

.offcanvas-title {
    font-size: 1.3rem;
    font-weight: 600;
}

.btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    padding: 0.5rem;
    border: 1px solid #ffffff; /* White border */
    border-radius: 4px;
}

.btn-close:hover {
    background-color: #ffffff; /* White background on hover */
    border: 1px solid #000000; /* Black border on hover */
}

/* Floating Logo */
.floating-logo {
    position: fixed;
    top: 10px;
    left: 20px; /* Reverted to fixed pixel value for better control */
    z-index: 1032; /* Higher z-index to bring logo in front of header */
    padding: 10px 20px;
    transition: all 0.3s ease;
    pointer-events: none; /* Container doesn't need events */
}

.floating-logo a {
    display: block;
    text-decoration: none;
    cursor: pointer;
    position: relative; /* Ensure proper positioning */
    z-index: 1033; /* Higher than logo container to ensure proper layering */
    pointer-events: auto; /* Ensure link receives events */
}

.floating-logo a:hover {
    transform: scale(1.05); /* Move hover effect to link */
}

/* Logo Image Size */
.floating-logo .logo-img {
    height: 120px;
    width: auto;
    object-fit: contain;
}

/* Mobile menu adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 0 0 10px 10px;
        padding: 10px 0;
        z-index: 1036; /* Higher than logo */
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        margin: 5px 0;
    }
    
    .navbar-nav .nav-link {
        display: block;
        padding: 10px 15px !important;
        color: white !important;
    }
    
    /* Adjust floating logo on mobile to ensure it's in front */
    .floating-logo {
        top: 15px;
        left: 15px;
        z-index: 1035; /* Higher than mobile header */
    }
    
    .floating-logo .logo-img {
        height: 80px; /* Smaller on mobile */
    }
}

/* Adjust logo and navbar for different screen sizes */
@media (min-width: 1200px) {
    .floating-logo {
        left: calc(20px + (100vw - 1140px) / 2); /* Position relative to container */
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .floating-logo {
        left: calc(20px + (100vw - 960px) / 2);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .floating-logo {
        left: calc(20px + (100vw - 720px) / 2);
    }
}

/* Full Page Logo Background */
.page-logo-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.1;
    pointer-events: none;
}

.logo-background-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: blur(5px);
}

/* Featured sections */
.featured-sections {
    margin-top: -100px;
    position: relative;
    z-index: 100;
}

/* General styles */
body.home-page {
    background-color: #000;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    padding-top: 0; /* Minimal space for mobile header */
}

@media (min-width: 992px) {
    body.home-page {
        padding-top: 0; /* Reset for desktop */
    }
}

/* Page headers */
.gallery-header,
.shop-header,
.artists-header,
.artist-detail-header,
.exhibitions-header,
.projects-header,
.about-header,
.contact-header,
.viewing-room-header,
.viewing-room-detail-header,
.videos-header,
.publications-header,
.error-header,
.account-header,
.auth-header,
.cart-header,
.confirmation-header,
.checkout-header {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 60px; /* Account for navbar height (approx 50px) plus extra space */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 300px; /* Ensure headers have minimum height for background images to display */
    position: relative;
}

.page-header-content {
    width: 100%;
    max-width: 800px;
    padding: 2rem 1rem;
}

.page-header-content h1 {
    margin-bottom: 1rem;
}

.page-header-content p {
    margin-bottom: 0;
}

/* Reduce gap between logo and header on other pages */
.main-content {
    margin-top: -20px; /* Reduce gap */
}

@media (max-width: 768px) {
    .gallery-header,
    .shop-header,
    .artists-header,
.artist-detail-header,
    .exhibitions-header,
    .projects-header,
    .about-header,
    .contact-header,
    .viewing-room-header,
    .viewing-room-detail-header,
    .videos-header,
    .publications-header,
    .error-header,
    .account-header,
    .auth-header,
    .cart-header,
    .confirmation-header,
    .checkout-header {
        margin-top: 50px; /* Reduced from previous value */
        padding: 1rem 0;
    }
    
    .page-header-content {
        padding: 1rem 0.5rem;
    }
    
    /* Further reduce gap on mobile */
    .main-content {
        margin-top: -10px;
    }
}

/* Cards */
.artwork-card,
.artist-card,
.exhibition-card,
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.artist-card {
    transition: all 0.3s ease;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.artist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.artist-card .card-img-top {
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.artist-card .card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.artist-card .card-text {
    margin-bottom: 0.25rem;
}

/* Filter styles */
.filter-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-check-input:checked {
    background-color: #6f42c1;
    border-color: #6f42c1;
}

.form-check-input:focus {
    border-color: #6f42c1;
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
}

.artwork-card:hover,
.artist-card:hover,
.exhibition-card:hover,
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn-primary {
    background-color: #000000; /* Black */
    border-color: #000000;
    color: #ffffff; /* White text */
}

.btn-primary:hover {
    background-color: #ffffff; /* White on hover */
    border-color: #000000;
    color: #000000; /* Black text on hover */
}

.btn-secondary {
    background-color: #ffffff; /* White */
    border-color: #000000;
    color: #000000; /* Black text */
}

.btn-secondary:hover {
    background-color: #000000; /* Black on hover */
    border-color: #000000;
    color: #ffffff; /* White text on hover */
}

.btn-success {
    background-color: #000000; /* Black */
    border-color: #000000;
    color: #ffffff; /* White text */
}

.btn-success:hover {
    background-color: #ffffff; /* White on hover */
    border-color: #000000;
    color: #000000; /* Black text on hover */
}

.btn-info {
    background-color: #ffffff; /* White */
    border-color: #000000;
    color: #000000; /* Black text */
}

.btn-info:hover {
    background-color: #000000; /* Black on hover */
    border-color: #000000;
    color: #ffffff; /* White text on hover */
}

.btn-warning {
    background-color: #000000; /* Black */
    border-color: #000000;
    color: #ffffff; /* White text */
}

.btn-warning:hover {
    background-color: #ffffff; /* White on hover */
    border-color: #000000;
    color: #000000; /* Black text on hover */
}

.btn-dark {
    background-color: #6f42c1; /* Primary Purple */
    border-color: #6f42c1;
    color: #FFFFFF; /* White text */
}

.btn-dark:hover {
    background-color: #5a32a3; /* Darker Purple */
    border-color: #5a32a3;
    color: #FFFFFF; /* White text */
}

.btn-outline-dark {
    background-color: transparent; /* Transparent */
    border-color: #6f42c1; /* Primary Purple */
    color: #6f42c1; /* Primary Purple text */
}

.btn-outline-dark:hover {
    background-color: #6f42c1; /* Primary Purple on hover */
    border-color: #6f42c1;
    color: #FFFFFF; /* White text on hover */
}

/* Footer */
.bg-dark {
    background-color: #1a1a1a !important;
}

.text-light {
    color: #f8f9fa !important;
}

.footer a:hover {
    color: #ddd !important;
}

/* New Homepage Styles */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

@media (min-width: 992px) {
    .hero-section {
        margin-top: 0; /* Reset for desktop */
        padding-top: 0; /* Reset for desktop */
    }
}

/* Adjust first section padding for mobile header */
.section-padding:first-of-type {
    padding-top: 5rem;
}

@media (max-width: 991.98px) {
    .section-padding:first-of-type {
        padding-top: 7rem; /* More space on mobile to account for fixed header */
    }
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.4) 100%);
}

.slide-content {
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-content h1 {
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 1.25rem;
    max-width: 600px;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.prev-btn, .next-btn {
    background: rgba(0,0,0,0.2); /* Black background with transparency */
    border: 1px solid #ffffff; /* White border */
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(255,255,255,0.3); /* White background on hover */
    border: 1px solid #000000; /* Black border on hover */
    color: #000000; /* Black icon on hover */
    transform: scale(1.1);
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Section Titles */
.section-title {
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #6f42c1;
    border-radius: 2px;
}

.divider {
    width: 80px;
    height: 4px;
    background: #6f42c1;
    border-radius: 2px;
}

/* Cards */
.artist-card, .artwork-card {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.artist-card:hover, .artwork-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
}

.artist-card .card-img-top, .artwork-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.no-image-placeholder {
    height: 250px;
    background-color: #f8f9fa;
}

/* Feature Icons */
.feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Testimonials */
.testimonial-slider {
    position: relative;
}

.testimonial-item {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-text {
    font-style: italic;
    position: relative;
}

.quote-icon {
    opacity: 0.2;
}

/* Newsletter */
.newsletter-section {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
}

.newsletter-form .form-control {
    border: none;
    padding: 15px 20px;
}

.newsletter-form .btn {
    padding: 15px 30px;
    font-weight: 600;
    background-color: #000000; /* Black */
    border: 1px solid #ffffff; /* White border */
    color: #ffffff; /* White text */
}

.newsletter-form .btn:hover {
    background-color: #ffffff; /* White on hover */
    color: #000000; /* Black text on hover */
}

/* About Section */
.about-image {
    position: relative;
    overflow: hidden;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(111,66,193,0.1), rgba(255,255,255,0.1));
    z-index: 1;
}

.about-image img {
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Price Tag */
.price-tag {
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        height: 80vh;
    }
    
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .prev-btn, .next-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
        min-height: 500px;
    }
    
    .slide-content {
        text-align: center;
        padding: 0 15px;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-buttons {
        justify-content: center !important;
    }
    
    .slider-controls {
        display: none;
    }
    
    .slider-indicators {
        bottom: 20px;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .featured-artists,
    .featured-artworks,
    .about-section,
    .testimonials-section,
    .newsletter-section {
        padding: 40px 0;
    }
}

@media (max-width: 575.98px) {
    .slide-content h1 {
        font-size: 1.75rem;
    }
    
    .slide-content .btn {
        padding: 10px 20px !important;
        font-size: 0.9rem;
        background-color: #000000; /* Black */
        border: 1px solid #ffffff; /* White border */
        color: #ffffff; /* White text */
    }
    
    .slide-content .btn:hover {
        background-color: #ffffff; /* White on hover */
        color: #000000; /* Black text on hover */
    }
    
    .feature-item {
        text-align: center;
    }
    
    .feature-icon {
        margin: 0 auto 15px !important;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-form .input-group .form-control,
    .newsletter-form .input-group .btn {
        width: 100%;
    }
}

/* Viewing Room Detail Header and Video */
.viewing-room-detail-header {
    margin-top: 60px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-immersive-container {
    background: #000;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-overlay-play {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-overlay-play i {
    font-size: 5rem;
    color: white;
    opacity: 0.8;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.5));
}

.video-immersive-container:hover .video-overlay-play {
    background: rgba(0,0,0,0.1);
}

.video-immersive-container:hover .video-overlay-play i {
    transform: scale(1.1);
    opacity: 1;
}

.video-immersive-container.is-playing .video-overlay-play {
    opacity: 0;
}

.video-immersive-container.is-playing:hover .video-overlay-play {
    opacity: 1;
    background: rgba(0,0,0,0.2);
}

.video-overlay-play {
    pointer-events: auto; /* Always block events to the iframe */
}

/* Seamless YouTube Embed Styling - Clipping Technique */
.video-immersive-container .ratio {
    overflow: hidden;
    background: #000;
}

.video-immersive-container .ratio > * {
    border: 0;
    width: 110% !important; /* Slightly wider */
    height: 130% !important; /* Significantly taller to hide top title/share and bottom logo */
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important; /* Centered clipping */
    pointer-events: none; /* Let the security overlay handle all clicks */
}

.video-overlay-play {
    cursor: pointer;
}

.rounded-4 {
    border-radius: 1rem !important;
}

/* Homepage section navigation */
.navbar-homepage-nav {
    z-index: 1030 !important; /* Set to same as main nav */
}

/* Ensure homepage content starts below navigation */
.homepage-content {
    margin-top: 80px; /* Adjust based on navbar height */
}