/* ============================================================
   SAFHAAT - SHAYARS DIRECTORY CSS
   Consolidated & Responsive Version
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Gotu&family=Merriweather:ital,wght@0,300;0,700;1,300&display=swap');

:root {
    --brand-primary: #714da6;
    --brand-dark: #1C2430;
    --brand-accent: #b60640;
    --text-main: #333;
    --text-muted: #666;
    --bg-light: #F7F4EF;
    --white: #ffffff;
    --border-color: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Barlow', sans-serif;
    background-color: var(--white);
    color: var(--text-main);
    overflow-x: hidden;
}

/* --- HERO SECTION --- */
.shayar-hero-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);    
    width: 100%;
    height: 220px;
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('/assets/images/web/rose-petals-bg.svg');
    background-size: cover;
    background-position: center;
}

.shayar-hero-section h2 {
    font-family: 'Gotu', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 1px;
}

.shayar-access-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px; 
}

.btn-shine {  
    color: var(--white);
    background: linear-gradient(to right, #9f9f9f 0, #fff 10%, #868686 20%);
    background-position: 0;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s infinite linear;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes shine {
    0% { background-position: 0; }
    60% { background-position: 180px; }
    100% { background-position: 180px; }
}

@media (max-width: 768px){
    .shayar-hero-section h2{
        font-size: 1.5rem;
    }
}

/* --- SEARCH SECTION --- */
.shayar-hero {
    width: 100%;
    padding: 60px 8% 40px;
}

.section-subtitle {
    display: block;
    color: var(--brand-accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.shayar-title {
    font-family: 'Merriweather', serif;
    font-size: 2.2rem;
    color: var(--brand-dark);
}

.shayar-search-wrapper {  
    margin-top: 25px;
    max-width: 600px;
}

.search-form {
    display: flex;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 5px 10px 5px 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.search-form:focus-within {
    border-color: var(--brand-primary);
    box-shadow: 0 4px 20px rgba(113, 77, 166, 0.15);
}

.search-form input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 10px 0;
}

.search-btn {
    background: var(--brand-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.search-btn:hover { transform: scale(1.05); }

.search-btn img {
    width: 20px;
    filter: invert(1);
}

@media (max-width: 768px){
    .shayar-hero{
        margin: 0;
        padding: 30px 15px 20px 15px;
    }
    .shayar-title{
        font-size: 1.5rem;
    }
}

/* --- Safhaat Native Slider Core --- */

.carousel-outer-wrapper {
    padding: 60px 8%;
    background: #fff; /* Light contrast to make glass pop */
}

.section-header-flex{
    display: inline-flex;
    gap: 15px;
    justify-content: center;
    align-items:center;
}

.section-header-flex h2 {
    font-family: 'Merriweather', serif;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #1a1a1a;
}

/* The Slider Container */
.native-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 24px;
    padding: 20px 10px 40px 10px;
    scrollbar-width: none;
}

.native-slider::-webkit-scrollbar { display: none; }

#legendary-slider{
    padding: 20px;
}
#contemporary-slider {
    padding: 20px;
}

@media (max-width: 768px){
    .carousel-outer-wrapper{
        margin: 0;
        padding: 30px 10px;
    }
}


/* --- THE BENTO GLASS CARD --- */
.shayar-card-wrapper {
    flex: 0 0 calc(20% - 20px); 
    scroll-snap-align: start;
}

.legendary-shayar-card, 
.contemprory-shayar-card {
    position: relative;
    height: 320px; /* Adjusted for better 5-column proportions */
    border-radius: 24px;
    overflow: hidden;
    background: #fff; /* Solid background, no more blur transparency */
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.legendary-shayar-card:hover, 
.contemprory-shayar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
}

/* Fix for the huge images */
.legendary-shayar-card img, 
.contemprory-shayar-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: top center; /* Keeps the focus on the faces */
    transition: transform 0.5s ease;
}

.legendary-shayar-card:hover img, 
.contemprory-shayar-card:hover img {
    transform: scale(1.1);
}



/* Glass Info Overlay */
.legend-info, 
.contemprory-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 15px;
    /* Subtle gradient so text is readable but face is clear */
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    color: white;
    z-index: 2;
}

.legend-info h3, 
.contemprory-info h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.legend-info p, 
.contemprory-info p {
    margin: 2px 0;
    font-size: 0.85rem;
    color: #e0e0e0;
}

.contemprory-actions {
    display: flex;
    gap: 1px
}

/* Verified Tag / Badge */
.tag {
    display: inline-block;
    background: #714da6;
    color: #fff;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 8px;
}

/* Navigation Arrow Fix */
/* --- Navigation Arrows --- */

/* Container must be relative to position arrows absolutely */
.native-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: #ffffff;
    color: #714da6; /* Safhaat Brand Purple */
    border: 1px solid rgba(113, 77, 166, 0.2);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Position exactly on the edges */
.nav-arrow.left {
    left: -22px; /* Half-out of the container for a modern look */
}

.nav-arrow.right {
    right: -22px;
}

/* Hover State */
.nav-arrow:hover {
    background-color: #714da6;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(113, 77, 166, 0.3);
    transform: translateY(-50%) scale(1.1);
}

/* Active/Click State */
.nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

/* === enrollment section ====== */
.enroll-profile{
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    justify-content: center;
    padding: 10px;
}
.cssbuttons-io-button {
    display: flex;
    background: #B60640;
    color: #fff;
    justify-content: center;
    padding: 4px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
}

@media (max-width: 768px){
    .enroll-profile{
        font-size: 1rem;
        width: 100%;
        display: block;
        align-items:center;
    }
}
/* Responsive: Hide arrows on small screens as users prefer touch swiping */
@media (max-width: 768px) {
    .nav-arrow {
        display: none;
    }
    
    /* Ensure the slider has enough margin for the "peek" effect on mobile */
    .native-carousel-container {
        padding: 0;
    }
    
    .native-slider{ padding: 20px 1px;}
}



/* High-resolution screens: Move arrows further out if container is wide */
@media (min-width: 1600px) {
    .nav-arrow.left { left: -60px; }
    .nav-arrow.right { right: -60px; }
}

/* RESPONSIVE: Adjusting column counts */
@media (max-width: 1200px) {
    .shayar-card-wrapper { flex: 0 0 calc(33.33% - 20px); } /* 3 cards */
}

@media (max-width: 768px) {
    .shayar-card-wrapper { flex: 0 0 calc(60% - 10px); } /* Peek view for mobile */
    .legendary-shayar-card, .contemprory-shayar-card { height: 240px; }
}