/* Premium Slider Pro - Frontend Styles */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;700;900&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

.premium-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0F172A;
}

.ps-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.ps-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ps-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Overlay Gradient */
.ps-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

/* Animated Background Elements */
.ps-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 2;
}

.ps-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
}

.ps-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(99, 102, 241, 0.4);
    top: -150px;
    left: -150px;
}

.ps-orb-2 {
    width: 350px;
    height: 350px;
    background: rgba(236, 72, 153, 0.4);
    bottom: -100px;
    right: -100px;
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Content */
.ps-slide-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1600px;
    padding: 0 80px;
    margin: 0 auto;
}

.ps-content-wrapper {
    max-width: 900px;
}

.ps-subtitle {
    font-size: clamp(14px, 1.5vw, 20px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.ps-active .ps-subtitle {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.ps-title {
    font-size: clamp(36px, 5vw, 84px);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 30px 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
}

.ps-active .ps-title {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.ps-description {
    font-size: clamp(16px, 1.8vw, 24px);
    line-height: 1.6;
    margin: 0 0 40px 0;
    opacity: 0.9;
    opacity: 0;
    transform: translateY(30px);
}

.ps-active .ps-description {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

.ps-cta {
    opacity: 0;
    transform: translateY(30px);
}

.ps-active .ps-cta {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.ps-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: rgba(255, 255, 255, 0.95);
    color: #0F172A;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.ps-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.ps-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.ps-btn:hover::before {
    left: 100%;
}

.ps-btn-arrow {
    transition: transform 0.3s ease;
}

.ps-btn:hover .ps-btn-arrow {
    transform: translateX(5px);
}

/* Button Styles */
.ps-btn-rounded {
    border-radius: 12px;
}

.ps-btn-square {
    border-radius: 4px;
}

.ps-btn-pill {
    border-radius: 50px;
}

/* Navigation Arrows */
.ps-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    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.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.ps-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.ps-arrow-prev {
    left: 40px;
}

.ps-arrow-next {
    right: 40px;
}

.ps-arrow svg {
    width: 24px;
    height: 24px;
}

/* Navigation Dots */
.ps-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 100;
}

.ps-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.ps-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.ps-dot.active {
    width: 40px;
    border-radius: 6px;
    background: white;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Responsive Design */

/* Extra Large Screens (1920px+) */
@media (min-width: 1920px) {
    .ps-slide-content {
        max-width: 1800px;
        padding: 0 120px;
    }

    .ps-content-wrapper {
        max-width: 1000px;
    }

    .ps-subtitle {
        font-size: 20px;
        letter-spacing: 3px;
    }

    .ps-title {
        font-size: 84px;
        margin-bottom: 35px;
    }

    .ps-description {
        font-size: 24px;
        line-height: 1.7;
        margin-bottom: 50px;
    }

    .ps-btn {
        padding: 20px 50px;
        font-size: 18px;
    }

    .ps-arrow {
        width: 64px;
        height: 64px;
    }

    .ps-arrow-prev {
        left: 60px;
    }

    .ps-arrow-next {
        right: 60px;
    }

    .ps-arrow svg {
        width: 28px;
        height: 28px;
    }

    .ps-dots {
        bottom: 50px;
        gap: 16px;
    }

    .ps-dot {
        width: 14px;
        height: 14px;
    }

    .ps-dot.active {
        width: 50px;
    }
}

/* Large Screens (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .ps-slide-content {
        max-width: 1600px;
        padding: 0 100px;
    }

    .ps-content-wrapper {
        max-width: 900px;
    }

    .ps-subtitle {
        font-size: 18px;
    }

    .ps-title {
        font-size: 72px;
    }

    .ps-description {
        font-size: 22px;
    }

    .ps-btn {
        padding: 18px 45px;
        font-size: 17px;
    }
}

/* Desktop (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .ps-slide-content {
        padding: 0 80px;
    }

    .ps-content-wrapper {
        max-width: 800px;
    }

    .ps-subtitle {
        font-size: 16px;
    }

    .ps-title {
        font-size: 60px;
    }

    .ps-description {
        font-size: 20px;
    }
}

@media (max-width: 1024px) {
    .ps-slide-content {
        padding: 0 60px;
    }

    .ps-arrow-prev {
        left: 20px;
    }

    .ps-arrow-next {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .ps-slide-content {
        padding: 0 30px;
    }

    .ps-content-wrapper {
        max-width: 100%;
    }

    .ps-subtitle {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .ps-title {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .ps-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .ps-btn {
        padding: 14px 32px;
        font-size: 15px;
    }

    .ps-arrow {
        width: 48px;
        height: 48px;
    }

    .ps-arrow-prev {
        left: 15px;
    }

    .ps-arrow-next {
        right: 15px;
    }

    .ps-dots {
        bottom: 30px;
    }

    .ps-orb-1,
    .ps-orb-2 {
        display: none; /* Hide orbs on mobile for performance */
    }
}

@media (max-width: 480px) {
    .ps-slide-content {
        padding: 0 20px;
    }

    .ps-title {
        font-size: 28px;
    }

    .ps-description {
        font-size: 15px;
    }

    .ps-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
    }

    .ps-arrow {
        width: 40px;
        height: 40px;
    }

    .ps-arrow svg {
        width: 20px;
        height: 20px;
    }
}

/* Print Styles */
@media print {
    .ps-arrow,
    .ps-dots {
        display: none;
    }
}

/* Accessibility */
.ps-arrow:focus,
.ps-dot:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .ps-slide,
    .ps-subtitle,
    .ps-title,
    .ps-description,
    .ps-cta {
        animation: none;
        transition: none;
    }

    .ps-orb {
        animation: none;
    }

    .ps-btn::before {
        display: none;
    }
}

/* Loading State */
.premium-slider-container.loading {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-slider-container.loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Font Size Variations */

/* Title Sizes */
.ps-title-small .ps-title {
    font-size: clamp(36px, 4vw, 64px) !important;
}

.ps-title-medium .ps-title {
    font-size: clamp(48px, 5vw, 84px) !important;
}

.ps-title-large .ps-title {
    font-size: clamp(60px, 6vw, 96px) !important;
}

.ps-title-xlarge .ps-title {
    font-size: clamp(72px, 7vw, 120px) !important;
}

/* Description Sizes */
.ps-desc-small .ps-description {
    font-size: clamp(14px, 1.5vw, 18px) !important;
}

.ps-desc-medium .ps-description {
    font-size: clamp(16px, 1.8vw, 22px) !important;
}

.ps-desc-large .ps-description {
    font-size: clamp(18px, 2vw, 26px) !important;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .ps-arrow {
        background: white;
        color: black;
        border-color: black;
    }

    .ps-dot {
        background: white;
        border-color: black;
    }
}
