/* =========================================
   HOME.CSS - НАЧАЛНА СТРАНИЦА
   ========================================= */

/* --- 1. ГЛАВЕН СЛАЙДЪР (БАНЕР - КАМЪНИ) --- */
.hero-slider-container {
    position: relative; width: 100%; height: 800px; 
    overflow: hidden; background-color: #fbf9ff;
    border-radius: 0 0 35px 35px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.hero-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--color-primary), #48D1CC);
    background-size: cover; background-position: center; background-repeat: no-repeat;
    display: flex; align-items: center; justify-content: center; 
    opacity: 0; visibility: hidden; transition: all 0.7s ease-in-out; z-index: 1;
}

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

.hero-slide::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.24); z-index: 1;
}

.slide-content-wrapper {
    position: relative; z-index: 5;
    display: flex; justify-content: center; align-items: center; width: 100%;
    padding-bottom: 90px;
}

.slide-content {
    text-align: center; color: white;
    width: 100%; max-width: 850px; padding: 45px 50px;
    border: 1px solid rgba(209, 209, 209, 0.301);
    border-radius: 20px;
    background: rgba(245, 245, 245, 0.027);
    backdrop-filter: blur(4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.slide-subtitle {
    display: block; font-size: 1.05rem; text-transform: uppercase; font-weight: 600;
    letter-spacing: 4px; color: #fff; margin-bottom: 20px; text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.slide-content h2 { font-size: 3.8rem; margin-bottom: 20px; color: #fff; text-shadow: 0 4px 10px rgba(0,0,0,0.3); font-family: var(--font-heading);}
.slide-content p { font-size: 1.25rem; margin-bottom: 40px; color: #fff; line-height: 1.8; text-shadow: 0 2px 5px rgba(0,0,0,0.5);}

.slide-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;}

.btn-hero {
    padding: 15px 35px; border-radius: 50px; text-transform: uppercase; font-weight: 700;
    text-decoration: none; transition: all 0.3s ease; border: 2px solid var(--color-secondary); display: inline-block;
    font-size: 0.9rem; letter-spacing: 1px;
}

.btn-hero-primary { background-color: var(--color-primary); color: white; border-color: var(--color-primary); }
.btn-hero-primary:hover { background: #007373; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 139, 139, 0.3);}

.btn-hero-outline { background-color: transparent; color: var(--color-secondary);}
.btn-hero-outline:hover { background-color: var(--color-secondary); color: white; transform: translateY(-3px);}

.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white;
    width: 60px; height: 60px; border-radius: 50%; cursor: pointer; z-index: 10; font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center; transition: 0.3s; backdrop-filter: blur(5px);
}
.slider-arrow:hover { background: var(--color-primary); border-color: var(--color-primary); transform: translateY(-50%) scale(1.1);}
.prev { left: 40px; } .next { right: 40px; }


/* --- 2. КОЛЕКЦИИ --- */
.featured-section { padding: 80px 0 40px 0; background: #fbf9ff; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.8rem; color: var(--color-primary); font-family: var(--font-heading);}
.section-header p { font-size: 1.15rem; color: #666; letter-spacing: 1px;}

.collections-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.collection-card {
    position: relative; height: 420px; border-radius: 25px; overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06); transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex; align-items: flex-end; justify-content: center; text-align: center; 
    background-color: #2c3e50; 
    background-size: cover; background-position: center; border: 1px solid rgba(0,0,0,0.05);
    /* ВАЖНО: Този курсор кара iOS (iPhone) да разпознава докосването като Hover ефект! */
    cursor: pointer; 
}
.collection-card:hover { transform: translateY(-10px); box-shadow: 0 25px 45px rgba(0,0,0,0.12);}

.collection-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    /* Първоначално МНОГО ПО-СВЕТЪЛ градиент, за да изпъква снимката */
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 50%); 
    transition: 0.5s ease; z-index: 1;
}
.collection-card:hover .collection-overlay { 
    /* Потъмнява при ховър/докосване, за да може текстът да се чете перфектно */
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.1) 100%);
}

.collection-content { position: relative; z-index: 2; padding: 40px 30px; color: white; width: 100%; transition: 0.4s ease;}
.collection-content h3 { 
    font-size: 2.2rem; margin-bottom: 20px; color: white; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); font-family: var(--font-heading);
    transition: transform 0.4s ease, margin-bottom 0.4s ease;
    /* Първоначално сваляме заглавието малко надолу */
    transform: translateY(20px); 
}
.collection-content p { 
    font-size: 1.05rem; color: #eee; text-shadow: 0 1px 5px rgba(0,0,0,0.5); line-height: 1.5;
    /* МАГИЯТА ЗА СКРИВАНЕ И ПОКАЗВАНЕ */
    max-height: 0; opacity: 0; overflow: hidden; margin-bottom: 0;
    transform: translateY(20px); transition: all 0.4s ease;
}

/* --- ЕФЕКТИТЕ ПРИ ХОВЪР (МИШКА) ИЛИ ДОКОСВАНЕ (ТЕЛЕФОН) --- */
.collection-card:hover .collection-content h3 {
    transform: translateY(0);
    margin-bottom: 15px;
}
.collection-card:hover .collection-content p {
    max-height: 150px; /* Отваря място за текста */
    opacity: 1; /* Прави го видим */
    margin-bottom: 25px;
    transform: translateY(0); /* Плъзга го нагоре */
}

.btn-collection {
    display: inline-block; padding: 12px 30px; background: rgba(255,255,255,0.15); backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.5); color: white; border-radius: 50px; font-weight: bold;
    text-transform: uppercase; font-size: 0.85rem; transition: 0.4s ease; letter-spacing: 1px;
    /* Бутонът също седи малко по-надолу в началото */
    transform: translateY(20px); 
}
.collection-card:hover .btn-collection {
    transform: translateY(0); /* Вдига се плавно заедно с текста */
}
.btn-collection i { margin-left: 5px; transition: 0.3s; }
.btn-collection:hover { background: white; color: var(--color-primary); border-color: white;}
.btn-collection:hover i { transform: translateX(5px); }


/* --- 3. МАЛЪК СЛАЙДЪР ЗА САМОДИВИТЕ --- */
.fairy-slider-section { padding: 60px 0 80px 0; background: #fbf9ff; }

.fairy-slider-container {
    position: relative; width: 90%; max-width: 1000px; height: 480px; 
    margin: 0 auto; border-radius: 30px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.fairy-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: flex-start;
    opacity: 0; visibility: hidden; transition: all 0.8s ease-in-out; z-index: 1;
}

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

.fairy-slide-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.644) 0%, rgba(0, 0, 0, 0.055) 100%); z-index: 1;
}

.fairy-slide-content { position: relative; z-index: 5; color: white; width: 100%; padding: 50px 80px; text-align: left; }

.fairy-slide-subtitle {
    display: block; font-size: 1rem; text-transform: uppercase; font-weight: 600;
    letter-spacing: 3px; color: var(--color-accent); margin-bottom: 15px; text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

.fairy-slide-content h3 { font-size: 3rem; margin-bottom: 15px; color: #fff; text-shadow: 0 4px 10px rgba(0,0,0,0.5); font-family: var(--font-heading);}
.fairy-slide-content p { font-size: 1.15rem; margin-bottom: 30px; color: #eee; max-width: 550px; line-height: 1.7; text-shadow: 0 2px 5px rgba(0,0,0,0.8);}

.btn-fairy-primary {
    padding: 15px 40px; border-radius: 50px; text-transform: uppercase; font-weight: 700;
    text-decoration: none; transition: all 0.3s ease; display: inline-block;
    font-size: 0.95rem; letter-spacing: 1px; background-color: var(--color-accent); color: white; border: 2px solid var(--color-accent);
}
.btn-fairy-primary:hover {
    transform: translateY(-3px); background-color: #B85B1A; border-color: #B85B1A; box-shadow: 0 10px 20px rgba(210,105,30,0.3);
}

.fairy-slider-container .slider-arrow { width: 50px; height: 50px; font-size: 1.2rem; background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); }
.fairy-slider-container .slider-arrow:hover { background: var(--color-accent); border-color: var(--color-accent); }
.fairy-slider-container .prev { left: 20px; } .fairy-slider-container .next { right: 20px; }


/* --- 4. КАК РАБОТИМ --- */
.process-section { padding: 100px 0; background: #fff; text-align: center; border-top: 1px solid #f0f0f0; }
.process-wrapper { position: relative; max-width: 1000px; margin: 60px auto 0 auto; }

.process-wrapper::before {
    content: ''; position: absolute; top: 50px; left: 10%; right: 10%; height: 3px; 
    background: repeating-linear-gradient(to right, var(--color-primary) 0, var(--color-primary) 10px, transparent 10px, transparent 20px);
    z-index: 1; opacity: 0.3;
}

.process-grid { display: flex; justify-content: space-between; position: relative; z-index: 2; }
.process-step { flex: 1; min-width: 200px; text-align: center; padding: 20px 10px; position: relative; transition: 0.4s; }

.step-number {
    position: absolute; top: -40px; right: 12px; font-size: 5rem; font-weight: 800; 
    color: rgba(0, 139, 139, 0.05); font-family: var(--font-heading); z-index: 0; transition: 0.4s;
}

.icon-box {
    width: 100px; height: 100px; margin: 0 auto 40px auto; background: #fbf9ff; 
    border: 2px dashed var(--color-secondary); color: var(--color-primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 2.8rem; transition: 0.4s;
}

.process-step:hover { transform: translateY(-10px); }
.process-step:hover .icon-box { border-color: var(--color-primary); background: var(--color-primary); color: white; transform: scale(1.1); box-shadow: 0 15px 30px rgba(0,139,139,0.3); }
.process-step:hover .step-number { color: rgba(73, 0, 92, 0.219); transform: scale(1.1); }
.process-step h3 { margin-top: 10px; font-size: 1.4rem; color: #333; font-family: var(--font-heading); position: relative; z-index: 2;}
.process-step p { color: #666; font-size: 1rem; line-height: 1.6; position: relative; z-index: 2;}


/* --- 5. МОБИЛНА ВЕРСИЯ (КОМПАКТНОСТ И СКРИВАНЕ НА СТРЕЛКИТЕ) --- */
@media (max-width: 900px) {
    /* Скриване на стрелките на всички слайдъри */
    .slider-arrow { display: none !important; }

    /* Главен Слайдър */
    .hero-slider-container { height: 550px; border-radius: 0 0 20px 20px; }
    .slide-content-wrapper { padding-bottom: 0; }
    
    /* Стъкленият панел става по-компактен */
    .slide-content { 
        padding: 25px 20px; 
        margin: 0 15px; 
        border-radius: 15px;
        background: rgba(15, 15, 15, 0.205); /* Малко по-тъмен фон за четимост */
        backdrop-filter: blur(3px);
    }
    .slide-content h2 { font-size: 2rem; margin-bottom: 10px; }
    .slide-content p { font-size: 0.95rem; margin-bottom: 20px; line-height: 1.4; }
    
    /* Бутоните */
    .slide-buttons { flex-direction: column; gap: 10px; width: 100%; padding: 0;}
    .btn-hero, .btn-fairy-primary { padding: 12px 15px; font-size: 0.85rem; width: 100%; text-align: center;}
    
    /* Колекции */
    .section-header h2 { font-size: 2.2rem; }

    /* Слайдър със самодиви */
    .fairy-slider-container { width: 92%; height: 420px; border-radius: 15px; }
    .fairy-slide-overlay { background: rgba(0,0,0,0.65); }
    .fairy-slide-content { padding: 25px 20px; text-align: center; }
    .fairy-slide-content h3 { font-size: 2rem; margin-bottom: 10px;}
    .fairy-slide-content p { font-size: 0.95rem; margin-bottom: 20px; line-height: 1.4; margin-left: auto; margin-right: auto;}
    
    /* Как работим */
    .process-wrapper::before { display: none; }
    .process-grid { flex-direction: column; align-items: center; gap: 30px; }
}