/* Simple Carousel Pro V2 CSS - Clean & Minimal */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset and Base */
.scpv2-carousel * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Main Container - NO PADDING */
.scpv2-carousel {
    position: relative;
    width: 100%;
    height: 60vh;
	background: #000;
    min-height: 400px;
    max-height: 600px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
    /* NO PADDING - padding causes overflow */
}

/* Carousel Container */
.scpv2-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Carousel Track - NO PADDING, PRECISE GAP CALCULATION */
.scpv2-carousel-track {
    display: flex;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0; /* NO GAP - we'll use margin on slides instead */
    padding: 0; /* NO PADDING */
    margin: 0; /* NO MARGIN */
}

.scpv2-carousel-track::-webkit-scrollbar {
    display: none;
}

.scpv2-slide {
    position: relative;
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    
    /* VIGTIGT: Standardbredde før JavaScript loader */
    width: 100vw;
    min-width: 100vw;
    
    /* Skjul slides indtil JavaScript er færdig */
    opacity: 0;
    transform: translateY(10px);
}

/* Når carousel er initialiseret, vis slides med smooth transition */
.scpv2-carousel.initialized .scpv2-slide {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Loading state for selve carousel containeren */
.scpv2-carousel:not(.initialized) {
    background: #000;
    position: relative;
}

.scpv2-carousel:not(.initialized)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
    pointer-events: none;
}

/* Loading spinner */
.scpv2-carousel:not(.initialized)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 3px solid rgba(140, 113, 49, 0.3);
    border-top: 3px solid #8c7131;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 101;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Skjul navigation og dots under loading */
.scpv2-carousel:not(.initialized) .scpv2-carousel-nav,
.scpv2-carousel:not(.initialized) .scpv2-carousel-dots {
    opacity: 0;
    pointer-events: none;
}

/* Vis navigation og dots når initialiseret */
.scpv2-carousel.initialized .scpv2-carousel-nav,
.scpv2-carousel.initialized .scpv2-carousel-dots {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease 0.2s; /* Lille delay så slides vises først */
}

/* Track skal have overflow hidden under loading */
.scpv2-carousel:not(.initialized) .scpv2-carousel-track {
    overflow: hidden;
}

.scpv2-carousel.initialized .scpv2-carousel-track {
    overflow-x: auto;
    overflow-y: hidden;
}



/* Background Image */
.scpv2-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Overlay - Standard */
.scpv2-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    transition: background 0.4s ease;
}

/* Center aligned slides - overlay fra center og ud */
.scpv2-slide.scpv2-has-text-center .scpv2-slide-overlay {
    background: radial-gradient(
        ellipse at center, 
        rgba(0, 0, 0, 0.7) 0%, 
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.3) 70%,
        rgba(0, 0, 0, 0.1) 100%
    );
}

/* Left aligned slides - overlay fra venstre */
.scpv2-slide.scpv2-has-text-left .scpv2-slide-overlay {
    background: linear-gradient(
        to right, 
        rgba(0, 0, 0, 0.65) 0%, 
        rgba(0, 0, 0, 0.5) 30%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.1) 70%,
        transparent 100%
    );
}


/* Content */
.scpv2-slide-content {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
	max-width: 1400px;
    display: flex;
    align-items: center;
    padding: 0 30px;
}

.scpv2-slide-content.scpv2-text-left {
    justify-content: flex-start;
    text-align: left;
}

.scpv2-slide-content.scpv2-text-center {
    justify-content: center;
    text-align: center;
}

.scpv2-slide-content.scpv2-text-right {
    justify-content: flex-end;
    text-align: right;
}

/* Content Inner - TILBAGE TIL NORMAL */
.scpv2-slide-inner {
    max-width: 500px;
    width: auto;
}

/* Typography - Forbedret størrelse og synlighed */
.scpv2-slide-title {
    font-family: 'Korolev', 'Poppins', sans-serif;
    font-size: 3.6rem; /* Øget fra 2.5rem */
    font-weight: 600; /* Øget fra 700 */
    line-height: 1.1; /* Lidt tættere for bedre læsbarhed */
    margin: 0 0 18px 0; /* Øget margin */
    color: #ffffff;
    /* Forbedret text-shadow med flere lag for maximum synlighed */
   
}

.scpv2-slide-description {
    font-family: 'Poppins', sans-serif;
    font-size: 18px; /* Øget fra 1rem */
    font-weight: 500; /* Øget fra 400 */
    line-height: 1.4;
    margin-bottom: 0; /* Fjernet margin da knap nu er absolut */
    color: #ffffff;
    /* Forbedret text-shadow */
    text-shadow: 
     0px 10px 30px rgba(0,0,0,0.68);

    /* Backup outline */
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.4);
}

/* Responsive typography */
.scpv2-slide[style*="33vw"] .scpv2-slide-title,
.scpv2-slide[style*="30vw"] .scpv2-slide-title,
.scpv2-slide[style*="25vw"] .scpv2-slide-title {
    font-size: 2.8rem;
}

.scpv2-slide[style*="33vw"] .scpv2-slide-description,
.scpv2-slide[style*="30vw"] .scpv2-slide-description,
.scpv2-slide[style*="25vw"] .scpv2-slide-description,
.scpv2-slide[style*="50vw"] .scpv2-slide-description {
    font-size: 1.2rem;
}

.scpv2-slide[style*="33vw"] .scpv2-slide-content,
.scpv2-slide[style*="30vw"] .scpv2-slide-content,
.scpv2-slide[style*="25vw"] .scpv2-slide-content {
    padding: 0 20px;
}

.scpv2-slide[style*="20vw"] .scpv2-slide-content,
.scpv2-slide[style*="15vw"] .scpv2-slide-content {
    padding: 0 15px;
}

.scpv2-slide[style*="20vw"] .scpv2-slide-title,
.scpv2-slide[style*="15vw"] .scpv2-slide-title {
    font-size: 2.2rem;
}

.scpv2-slide[style*="20vw"] .scpv2-slide-description,
.scpv2-slide[style*="15vw"] .scpv2-slide-description {
    font-size: 1.1rem;
}

/* Buttons - EN STIL FOR ALLE */
.scpv2-slide-button {
    display: inline-flex;
    align-items: center;
    padding: 18px 40px;
    font-family: 'Korolev', sans-serif;
    font-size: 19px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 12px;
    margin-top: 20px;
    /* Guld/primary stil som standard */
    background: #8c7131;
    color: white !important;
    
    /* SKJULT SOM STANDARD - INGEN PLADS */
    
  

    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}



/* HOVER EFFEKT PÅ KNAPPEN */
.scpv2-slide-button:hover {
    background: #fff;
    color: #000 !important;
    transform: translateY(-3px) scale(1.05);
    transition-delay: 0s;
}

.scpv2-button-arrow {
    font-size: 18px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: bold;
}

.scpv2-slide-button:hover .scpv2-button-arrow {
    transform: translateX(8px) scale(1.2);
}

/* Smaller buttons for narrow slides */
.scpv2-slide[style*="33vw"] .scpv2-slide-button,
.scpv2-slide[style*="30vw"] .scpv2-slide-button,
.scpv2-slide[style*="25vw"] .scpv2-slide-button {
    padding: 10px 24px;
    font-size: 14px;
}

.scpv2-slide[style*="20vw"] .scpv2-slide-button,
.scpv2-slide[style*="15vw"] .scpv2-slide-button {
    padding: 8px 20px;
    font-size: 13px;
}

/* Navigation Arrows - GOLD THEME */
.scpv2-carousel-nav {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    z-index: 10;
    pointer-events: none;
    transform: translateY(-50%);
}

.scpv2-nav-prev,
.scpv2-nav-next {
    position: absolute;
    top: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(140, 113, 49, 0.9), rgba(184, 148, 74, 0.9));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    opacity: 0.9;
    box-shadow: 
        0 8px 25px rgba(140, 113, 49, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.scpv2-nav-prev {
    left: 0;
}

.scpv2-nav-next {
    right: 0;
}

.scpv2-nav-prev:hover,
.scpv2-nav-next:hover {
    background: linear-gradient(135deg, rgba(184, 148, 74, 0.95), rgba(212, 175, 97, 0.95));
    transform: scale(1.1) translateY(-2px);
    opacity: 1;
    box-shadow: 
        0 15px 35px rgba(140, 113, 49, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.scpv2-nav-prev:active,
.scpv2-nav-next:active {
    transform: scale(0.95);
}

.scpv2-nav-prev:disabled,
.scpv2-nav-next:disabled {
    cursor: not-allowed;
    opacity: 0.3;
    background: rgba(140, 113, 49, 0.3);
}

.scpv2-nav-prev:disabled:hover,
.scpv2-nav-next:disabled:hover {
    transform: none;
    background: rgba(140, 113, 49, 0.3);
    box-shadow: 0 8px 25px rgba(140, 113, 49, 0.3);
}

/* Make SVG icons smaller too */
.scpv2-nav-prev svg,
.scpv2-nav-next svg {
    width: 24px;
    height: 24px;
}

/* Dots Navigation - GOLD THEME */
.scpv2-carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    padding: 12px 20px;
    border-radius: 25px;
    border: 1px solid rgba(140, 113, 49, 0.3);
}

.scpv2-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(140, 113, 49, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.scpv2-dot.scpv2-dot-active {
    background: linear-gradient(135deg, #8c7131, #b8944a);
    transform: scale(1.3);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(140, 113, 49, 0.4);
}

.scpv2-dot:hover {
    background: rgba(140, 113, 49, 0.8);
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.6);
}

/* No Slides Message */
.scpv2-no-slides {
    padding: 60px 20px;
    text-align: center;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    margin: 20px 0;
}

.scpv2-no-slides p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.scpv2-no-slides a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.scpv2-no-slides a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 968px) {
    .scpv2-carousel {
        height: 50vh;
        min-height: 350px;
        max-height: 500px;
    }
    
    .scpv2-slide-title {
        font-size: 2.8rem; /* Stadig større end original */
    }
    
    .scpv2-slide-description {
        font-size: 1.2rem; /* Stadig større end original */
    }
    
    .scpv2-nav-prev,
    .scpv2-nav-next {
        width: 45px;
        height: 45px;
    }
    
    /* Force wider slides on tablet for better readability */
    .scpv2-slide[style*="25vw"],
    .scpv2-slide[style*="20vw"],
    .scpv2-slide[style*="15vw"] {
        width: 50vw !important;
    }
    
    .scpv2-slide[style*="33vw"] .scpv2-slide-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 640px) {
    .scpv2-carousel {
        height: 45vh;
        min-height: 300px;
        max-height: 400px;
    }
	
	.scpv2-carousel-nav {
		top: 85%;
	}
  .scpv2-slide {
		border-radius: 0px;
	}
	
	.scpv2-slide-bg {
		border-radius: 0px; 
	}
    .scpv2-slide-content {
        padding: 0 25px;
    }
    .scpv2-slide-overlay {
		border-radius: 0px;
	}
    .scpv2-slide-title {
        font-size: 2rem; /* Stadig større end original */
    }
    
    .scpv2-slide-subtitle {
        font-size: 12px;
    }
    .scpv2-slide.scpv2-has-text-left .scpv2-slide-description {
		padding-right: 20%;
	}
	
	.scpv2-slide.scpv2-has-text-left .scpv2-slide-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.60) 30%, rgba(0, 0, 0, 0.55) 50%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
}
    .scpv2-slide-description {
        font-size: 0.9rem; /* Stadig større end original */
    }
    
    .scpv2-slide-button {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .scpv2-nav-prev,
    .scpv2-nav-next {
        width: 30px;
        height: 30px;
    }
    
    .scpv2-carousel-dots {
        bottom: 20px;
        gap: 8px;
    }
    
    .scpv2-dot {
        width: 8px;
        height: 8px;
    }
    
    /* Force wider slides on mobile for readability */
    .scpv2-slide[style*="25vw"],
    .scpv2-slide[style*="20vw"],
    .scpv2-slide[style*="15vw"],
    .scpv2-slide[style*="33vw"] {
        width: 90vw !important;
    }
    
    .scpv2-slide[style*="50vw"] {
        width: 100vw !important;
    }
    
    /* Ekstra text-shadow på mobile for bedre synlighed */
    .scpv2-slide-title,
    .scpv2-slide-description {
        text-shadow: 
            2px 2px 4px rgba(0, 0, 0, 0),
            4px 4px 8px rgba(0, 0, 0, 0),
            0 0 25px rgba(0, 0, 0, 0);
    }
}

@media (max-width: 480px) {
    .scpv2-slide-title {
        font-size: 2.3rem; /* Stadig større end original */
    }
    .scpv2-slide-description {
        font-size: 0.8rem;
		
    }
    
    .scpv2-slide-content {
        padding: 0 25px;
    }
    
    /* All slides full width on very small screens */
    .scpv2-slide {
        width: 100vw !important;
    }
}

/* Scroll indicators for better UX */
.scpv2-carousel::before,
.scpv2-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    z-index: 8;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scpv2-carousel::before {
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1), transparent);
}

.scpv2-carousel::after {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.1), transparent);
}

.scpv2-carousel:hover::before,
.scpv2-carousel:hover::after {
    opacity: 1;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .scpv2-slide-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .scpv2-slide-button {
        border: 2px solid white;
    }
    
    .scpv2-nav-prev,
    .scpv2-nav-next {
        background: rgba(0, 0, 0, 0.8);
        border: 2px solid white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .scpv2-carousel-track {
        scroll-behavior: auto;
    }
    
    .scpv2-slide,
    .scpv2-slide-button,
    .scpv2-nav-prev,
    .scpv2-nav-next,
    .scpv2-dot {
        transition: none !important;
        animation: none !important;
    }
}

/* Print styles */
@media print {
    .scpv2-carousel {
        height: auto !important;
        overflow: visible !important;
    }
    
    .scpv2-carousel-track {
        display: block !important;
        overflow: visible !important;
    }
    
    .scpv2-slide {
        width: 100% !important;
        height: auto !important;
        page-break-inside: avoid;
        margin-bottom: 20px;
        display: block !important;
    }
    
    .scpv2-carousel-nav,
    .scpv2-carousel-dots {
        display: none !important;
    }
}

/* Custom scrollbar for accessibility (when enabled) */
.scpv2-show-scrollbar .scpv2-carousel-track {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
}

.scpv2-show-scrollbar .scpv2-carousel-track::-webkit-scrollbar {
    display: block;
    height: 8px;
}

.scpv2-show-scrollbar .scpv2-carousel-track::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.scpv2-show-scrollbar .scpv2-carousel-track::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.scpv2-show-scrollbar .scpv2-carousel-track::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Focus states for accessibility */
.scpv2-nav-prev:focus,
.scpv2-nav-next:focus,
.scpv2-dot:focus,
.scpv2-slide-button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}
