﻿/* Root Variables - Matching the main theme */
:root {
    --primary-color: #61197C;
    --primary-dark: #471160;
    --secondary-color: #5C5C5C;
    --warning-color: #ffc107;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --hero-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    /* Spacing */
    --section-padding: 80px 0;
    --container-max-width: 1200px;
}

/* Carousel CSS - No Border or Hover Effects */

/* Main wrapper */
.stunning-image-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 3;
}

    .stunning-image-link .stunning-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.stunning-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0;
    transition: none;
    border: none !important;
}

    .stunning-carousel-wrapper:hover {
        transform: none;
        border: none !important;
    }

/* Carousel container */
.stunning-carousel {
    border-radius: 0px;
    overflow: hidden;
    background: #fff;
    position: relative;
    border: none !important;
}

    .stunning-carousel .carousel-inner {
        border-radius: 0px;
    }

/* Image container with effects */
.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none !important;
}

.stunning-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #f8f9fa;
    transition: none;
    filter: none;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.stunning-carousel-wrapper:hover .stunning-image {
    transform: none;
    filter: none;
}

/* Shine effect - Hidden */
.image-shine {
    display: none;
}

/* Glow effect - Hidden */
.image-glow {
    display: none;
}

/* Beautiful navigation indicators */
.stunning-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 0;
    z-index: 10;
}

    .stunning-indicators button {
        width: 40px;
        height: 4px;
        border: none;
        border-radius: 0px;
        background: rgba(255, 255, 255, 0.4);
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

        .stunning-indicators button.active {
            background: rgba(255, 255, 255, 0.8);
        }

.indicator-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 3s linear;
}

.stunning-indicators button.active .indicator-line {
    width: 100%;
}

/* Elegant navigation arrows */
.stunning-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.stunning-carousel-wrapper:hover .stunning-control {
    opacity: 1;
}

.stunning-control.prev-control {
    left: 15px;
}

.stunning-control.next-control {
    right: 15px;
}

.control-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffc107;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stunning-control:hover .control-circle {
    background: #667eea;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

/* View details overlay */
.view-details-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 25px 20px 15px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: 8;
}

.stunning-carousel-wrapper:hover .view-details-overlay {
    transform: translateY(0);
}

.view-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 8px 0;
}

    .view-details-btn:hover {
        color: #667eea;
        transform: translateX(5px);
    }

.view-text {
    position: relative;
}

    .view-text::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #667eea, #764ba2);
        transition: width 0.3s ease;
    }

.view-details-btn:hover .view-text::after {
    width: 100%;
}

/* Custom Arabic Switch */
.custom-arabic-switch .form-check-input {
    position: relative;
    width: 48px;
    height: 24px;
}

.custom-arabic-switch .form-check-label {
    margin-left: 10px;
}

.custom-arabic-switch .form-check-input::before {
    content: 'ع';
    position: absolute;
    top: 35%;
    left: 0px;
    width: 24px;
    height: 24px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: white;
    transform: translateY(-50%);
    pointer-events: none;
    transition: left 0.3s ease, color 0.3s ease;
}

.custom-arabic-switch .form-check-input:checked::before {
    left: 22px;
    color: #681c7c;
}

.custom-arabic-switch .form-check-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #681c7c;
}

/* Load More Button */
.load-more-btn {
    background-color: #ffffff;
    border: 2px solid #681c7c;
    color: #681c7c;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .load-more-btn:hover {
        background-color: #681c7c;
        border-color: #681c7c;
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: #000000;
    }

    .load-more-btn:focus {
        background-color: #681c7c;
        border-color: #681c7c;
        color: #ffffff;
        box-shadow: #000000;
    }

    .load-more-btn:active {
        background-color: #681c7c;
        border-color: #681c7c;
        transform: translateY(0);
    }

/* Premium Badge */
.premium-badge {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    border: 1px solid rgba(245, 158, 11, 0.3);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

    .premium-badge:hover {
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.15) 100%);
        border-color: rgba(245, 158, 11, 0.4);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    }

    .premium-badge .crown-icon {
        display: flex;
        align-items: center;
        color: #d97706;
    }

    .premium-badge .premium-text {
        font-weight: 600;
        color: #92400e;
    }

@keyframes gemSparkle {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(-3deg) scale(1.05);
    }
}

/* Ultra-minimal variant */
.premium-badge.minimal {
    background: rgba(243, 244, 246, 0.8);
    color: #374151;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(6px);
}

    .premium-badge.minimal:hover {
        background: rgba(249, 250, 251, 0.9);
        color: #1f2937;
    }

    .premium-badge.minimal .premium-icon {
        color: #6b7280;
    }

/* Dark variant */
.premium-badge.dark {
    background: rgba(17, 24, 39, 0.8);
    color: #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(55, 65, 81, 0.3);
}

    .premium-badge.dark:hover {
        background: rgba(31, 41, 55, 0.85);
        color: #f9fafb;
    }

    .premium-badge.dark .premium-icon {
        color: #8b5cf6;
    }

/* Elegant variant */
.premium-badge.elegant {
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 0 0 1px rgba(203, 213, 225, 0.4);
    backdrop-filter: blur(10px);
}

    .premium-badge.elegant:hover {
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(203, 213, 225, 0.5);
    }

    .premium-badge.elegant .premium-icon {
        color: #4f46e5;
    }

/* CTA Section */
.cta-section {
    background: url('../images/heropic.jpg');
    padding: var(--section-padding);
    color: var(--white);
    text-align: center;
}

    .cta-section h2 {
        color: ghostwhite !important;
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .cta-section p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        opacity: 0.9;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

.cta-buttons {
    margin-top: 2rem;
}

    .cta-buttons .btn {
        padding: 1rem 2rem;
        font-weight: 500;
        border-radius: 8px;
        transition: all 0.3s ease;
        margin: 0.5rem;
    }

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive design - MOBILE FIX APPLIED */
@media (max-width: 768px) {
    .stunning-carousel-wrapper {
        border-radius: 0px;
        padding: 0;
    }

    .stunning-carousel {
        border-radius: 0px;
    }

    /* MOBILE FIX: Auto height with contain to show full image */
    .image-container {
        height: auto;
        min-height: 200px;
    }

    .stunning-image {
        object-fit: contain; /* Show full image without cropping */
        background: #f8f9fa; /* Background color for letterboxing */
    }

    .control-circle {
        width: 32px;
        height: 32px;
    }

    .stunning-control.prev-control {
        left: 8px;
    }

    .stunning-control.next-control {
        right: 8px;
    }

    .stunning-indicators {
        bottom: 12px;
        gap: 6px;
    }

        .stunning-indicators button {
            width: 25px;
        }

    .premium-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        gap: 0.2rem;
    }

        .premium-badge .gem-icon i {
            font-size: 0.8rem;
        }

        .premium-badge .verified-icon i {
            font-size: 0.75rem;
        }
}

@media (max-width: 480px) {
    /* MOBILE FIX: Auto height for smaller screens */
    .image-container {
        height: auto;
        min-height: 180px;
    }

    .stunning-carousel-wrapper:hover {
        transform: none;
    }
}

/* Loading state for placeholder */
.stunning-image[src*="placeholder"] {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .stunning-image[src*="placeholder"]::after {
        content: "🎨";
        font-size: 3rem;
        opacity: 0.6;
    }

/* Smooth carousel transitions */
.stunning-carousel .carousel-item {
    transition: transform 0.6s ease-in-out;
}

/* Focus states for accessibility */
.stunning-control:focus,
.stunning-indicators button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Perfect image quality */
.stunning-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Disable default Bootstrap carousel controls */
.stunning-carousel .carousel-control-prev-icon,
.stunning-carousel .carousel-control-next-icon {
    display: none;
}
