/* Demat Component CSS - Glass Morphism Design */

:root {
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', serif;
    
    /* Modern vibrant background */
    --background: radial-gradient(ellipse at top, #e0f2fe 0%, #fef3c7 25%, #fce7f3 50%, #e0e7ff 75%, #ecfdf5 100%);
    --background-overlay: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.3) 100%);
    
    --foreground: #0f172a;
    --foreground-soft: #334155;
    
    /* Glass morphism effects */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --glass-hover-bg: rgba(255, 255, 255, 0.35);
    
    /* Primary colors */
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --primary-solid: #6366f1;
    
    /* Accent colors */
    --accent-pink: linear-gradient(135deg, #ec4899 0%, #f97316 100%);
    --accent-blue: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    
    --radius: 1.25rem;
    --radius-xl: 2rem;
    
    /* Animation variables */
    --animation-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --animation-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    box-sizing: border-box;
}

html {
    font-family: var(--font-family);
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    color: var(--foreground);
    font-family: var(--font-family);
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background-overlay);
    pointer-events: none;
    z-index: -1;
}

/* Typography */
.font-display {
    font-family: var(--font-display);
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-family: var(--font-display);
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-family: var(--font-display);
}

h3 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    font-family: var(--font-display);
}

/* Glass morphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius);
    transition: all 0.3s var(--animation-smooth);
}

.glass-hover {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s var(--animation-smooth);
}

.glass-hover:hover {
    background: var(--glass-hover-bg);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.glass-minimal {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Gradient backgrounds */
.bg-gradient-primary {
    background: var(--primary-gradient);
}

.bg-gradient-pink {
    background: var(--accent-pink);
}

.bg-gradient-blue {
    background: var(--accent-blue);
}

/* Text gradients */
.text-gradient-primary {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section */
.hero-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    transition: all 0.1s linear;
}

.hero-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    transition: transform 0.1s linear;
}

.hero-content-wrapper {
    padding-top: 100vh;
    position: relative;
    z-index: 10;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 90%;
    max-width: 800px;
}

/* Product Carousel */
.product-carousel {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    cursor: pointer;
}

.product-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
}

.product-slide.active {
    opacity: 1;
}

.product-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--animation-smooth);
}

.product-carousel:hover .product-slide img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.2), transparent);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.product-carousel:hover .product-overlay {
    opacity: 0.8;
}

.product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.product-carousel:hover .product-info {
    opacity: 1;
    transform: translateY(0);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.carousel-indicators {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    width: 32px;
    background: white;
}

/* Badges */
.badge-custom {
    background: rgba(255, 255, 255, 0.9);
    color: var(--foreground);
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.badge-featured {
    background: var(--accent-pink);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-shop {
    background: var(--accent-blue);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Price tag */
.price-tag {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: bold;
    font-size: 1.25rem;
    z-index: 2;
}

/* Category badge */
.category-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 2;
}

.featured-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2;
}

/* Destinations */
.destination-card {
    position: relative;
    height: 320px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s var(--animation-smooth);
}

.destination-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.destination-card:hover img {
    transform: scale(1.1);
}

.destination-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}

.destination-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: white;
}

.destination-number {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-solid);
}

/* Events */
.event-card {
    height: 256px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s var(--animation-smooth);
}

.event-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.event-image {
    position: relative;
    height: 128px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.event-date {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    border-radius: 0.75rem;
    text-align: center;
    min-width: 60px;
}

.event-date-number {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-solid);
    line-height: 1;
}

.event-date-month {
    font-size: 0.75rem;
    color: var(--foreground-soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Craftsmen */
.craftsman-card {
    transition: all 0.3s var(--animation-smooth);
    cursor: pointer;
}

.craftsman-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.craftsman-image {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
}

.craftsman-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.craftsman-card:hover .craftsman-image img {
    transform: scale(1.1);
}

.rating-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Horizontal scroll */
.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 2rem;
    padding: 0 2rem;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.horizontal-scroll-item {
    flex: none;
    scroll-snap-align: start;
}

/* Buttons */
.btn-gradient {
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    color: white;
}

.btn-outline-glass {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: var(--radius);
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-glass:hover {
    background: white;
    color: var(--foreground);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.fade-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.fade-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s ease;
}

.scale-in.animate {
    opacity: 1;
    transform: scale(1);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .horizontal-scroll {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .destination-card {
        height: 280px;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--glass-bg);
    border-radius: 4px;
    backdrop-filter: blur(10px);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--glass-hover-bg);
}