/* GHOTOKMADAM - Public Styles */
:root {
    --primary: #9B2335;
    --secondary: #5C1A1B;
    --accent: #D4A574;
    --bg: #FFFFFF;
    --text: #2C2C2C;
    --header-bg: #FFFFFF;
    --footer-bg: #1A1A1A;
    --btn: #9B2335;
    --btn-hover: #7A1C2A;
    --border: #E8E0D8;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}
h1, h2, h3, h4, h5, .brand-text, .section-title, .hero-title {
    font-family: var(--font-heading);
}

/* Header */
.site-header { background: var(--header-bg); }
.top-bar { background: var(--secondary); color: rgba(255,255,255,.85); font-size: .8rem; }
.navbar-brand .brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: .5px;
}
.nav-link { font-weight: 500; color: var(--text) !important; font-size: .95rem; }
.nav-link:hover { color: var(--primary) !important; }
.btn-primary {
    background: var(--btn);
    border-color: var(--btn);
}
.btn-primary:hover {
    background: var(--btn-hover);
    border-color: var(--btn-hover);
}
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Hero */
.hero-section {
    position: relative;
    min-height: 70vh;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 60%, #6B1E2A 100%);
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-title { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.2; }
.hero-subtitle { font-size: 1.25rem; opacity: .9; margin-bottom: .75rem; }
.hero-text { opacity: .8; max-width: 540px; }
.min-vh-75 { min-height: 70vh; }

/* Search Card */
.search-section { margin-top: -40px; position: relative; z-index: 10; }
.search-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    border: 1px solid var(--border);
}

/* Sections */
.section-title { font-size: 2rem; font-weight: 600; color: var(--secondary); }
.section-subtitle { font-size: 1.05rem; }

/* Steps */
.step-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    border: 1px solid var(--border);
    position: relative;
    transition: transform .2s, box-shadow .2s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.step-number {
    position: absolute;
    top: 12px; right: 16px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    opacity: .15;
}
.step-icon {
    width: 56px; height: 56px;
    background: rgba(155,35,53,.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary);
    font-size: 1.25rem;
}

/* Profile Cards — full-color natural photos */
.profile-card {
    display: block;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    transition: transform .2s, box-shadow .2s;
    color: #222 !important;
    text-decoration: none !important;
    opacity: 1 !important;
}
.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,.14);
    color: #222 !important;
}
.profile-photo {
    position: relative;
    aspect-ratio: 3/4;
    background: #e8e4df;
    overflow: hidden;
}
.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.photo-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: #bbb;
    background: linear-gradient(145deg, #f0ebe6, #e2ddd6);
}
.profile-info { padding: 0.9rem 1rem 1.1rem; background: #fff; }
.profile-info h6 { color: #1a1a1a; font-weight: 600; margin-bottom: .2rem; }
.profile-id { font-size: .75rem; color: var(--primary, #9B2335); font-weight: 600; margin-top: .25rem; }
.section-featured .profile-photo { min-height: 220px; }

/* Features */
.feature-list { list-style: none; padding: 0; }
.feature-list li { padding: .5rem 0; }
.feature-list i { margin-right: .5rem; }

/* Stories */
.story-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.75rem;
    border: 1px solid var(--border);
}
.story-header { color: var(--primary); margin-bottom: .75rem; font-size: 1.05rem; }
.story-text { font-size: .95rem; color: #555; }

/* FAQ */
.accordion-button:not(.collapsed) {
    background: rgba(155,35,53,.06);
    color: var(--primary);
    box-shadow: none;
}
.accordion-button:focus { box-shadow: none; border-color: var(--border); }

/* CTA */
.section-cta {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: rgba(255,255,255,.8);
}
.footer-brand { font-family: var(--font-heading); color: #fff; font-size: 1.35rem; }
.footer-heading { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links a, .footer-contact li { color: rgba(255,255,255,.7); text-decoration: none; font-size: .9rem; display: block; padding: .3rem 0; }
.footer-links a:hover { color: var(--accent); }
.footer-contact i { width: 20px; margin-right: .4rem; color: var(--accent); }
.social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.1); color: #fff; margin-right: .5rem;
    transition: background .2s;
}
.social-links a:hover { background: var(--primary); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }

/* Auth pages */
.auth-wrapper {
    min-height: calc(100vh - 200px);
    display: flex; align-items: center;
    padding: 3rem 0;
}
.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    border: 1px solid var(--border);
    padding: 2.5rem;
    max-width: 480px;
    margin: 0 auto;
}
.auth-card h2 { font-family: var(--font-heading); color: var(--secondary); }

/* Forms */
.form-label { font-weight: 500; font-size: .9rem; }
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(155,35,53,.15);
}

/* Profile detail */
.profile-detail-header {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #fff;
    padding: 2rem 0;
}
.profile-section-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.profile-section-card h5 {
    font-family: var(--font-heading);
    color: var(--secondary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: .5rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .search-section { margin-top: -20px; }
    .search-card { padding: 1rem; }
}



/* Default gradient when no photo */
.hero-slide:not(.has-bg) {
    background-image: linear-gradient(120deg, #5C1A1B 0%, #9B2335 50%, #7A1C2A 100%);
}
/* Soft dark gradient only on left so photo stays visible on right */
.hero-slide.has-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(40, 10, 12, 0.82) 0%,
        rgba(40, 10, 12, 0.55) 42%,
        rgba(40, 10, 12, 0.25) 70%,
        rgba(40, 10, 12, 0.15) 100%
    );
    z-index: 1;
    pointer-events: none;
}
.hero-slider-section .hero-overlay { display: none; }
.hero-slide .container { position: relative; z-index: 2; }
.hero-slider-section .hero-title {
    color: #fff !important;
    text-shadow: 0 2px 12px rgba(0,0,0,.45);
    font-size: 2.75rem;
}
.hero-slider-section .hero-subtitle {
    color: rgba(255,255,255,.95) !important;
    text-shadow: 0 1px 6px rgba(0,0,0,.35);
}
.hero-slider-section .hero-text {
    color: rgba(255,255,255,.88) !important;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
    max-width: 520px;
}
.hero-slider-section .btn-outline-light {
    border-width: 2px;
    background: rgba(255,255,255,.08);
}
.hero-slider-section .btn-outline-light:hover {
    background: #fff;
    color: #9B2335;
}
.hero-slider-section .carousel-indicators {
    margin-bottom: 1.5rem;
    z-index: 3;
}
.hero-slider-section .carousel-indicators [data-bs-target] {
    width: 12px; height: 12px; border-radius: 50%;
    background-color: rgba(255,255,255,.4);
    border: 0;
    transition: background .2s;
}
.hero-slider-section .carousel-indicators .active {
    background-color: #fff;
    width: 28px; border-radius: 6px;
}
.hero-slider-section .carousel-control-prev,
.hero-slider-section .carousel-control-next {
    width: 5%;
    opacity: .85;
    z-index: 3;
}
.hero-slider-section .carousel-control-prev:hover,
.hero-slider-section .carousel-control-next:hover { opacity: 1; }
@media (max-width: 768px) {
    .hero-slide, .hero-slider-section .carousel-item { min-height: 440px; }
    .hero-slider-section .hero-title { font-size: 1.85rem; }
    .hero-slide.has-bg::before {
        background: linear-gradient(180deg, rgba(30,8,10,.75) 0%, rgba(30,8,10,.55) 100%);
    }
}


/* Static Hero */
.hero-section {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    background: linear-gradient(120deg, #5C1A1B 0%, #9B2335 55%, #7A1C2A 100%);
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
}
.hero-section.has-bg {
    background-color: #5C1A1B;
}
.hero-section.has-bg .hero-overlay {
    background: linear-gradient(
        90deg,
        rgba(40, 10, 12, 0.78) 0%,
        rgba(40, 10, 12, 0.45) 50%,
        rgba(40, 10, 12, 0.2) 100%
    );
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 40%, transparent 0%, rgba(0,0,0,.12) 100%);
    pointer-events: none;
}
.hero-section .container { position: relative; z-index: 2; }
.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.hero-subtitle {
    font-size: 1.25rem;
    opacity: .95;
    margin-bottom: .75rem;
    color: #fff;
}
.hero-text {
    opacity: .9;
    max-width: 540px;
    color: rgba(255,255,255,.9);
}
.hero-section .btn-outline-light {
    border-width: 2px;
    background: rgba(255,255,255,.08);
}
.hero-section .btn-outline-light:hover {
    background: #fff;
    color: #9B2335;
}
@media (max-width: 768px) {
    .hero-section { min-height: 400px; }
    .hero-title { font-size: 2rem; }
}

/* Language switcher */
.lang-switch .btn { font-weight: 600; min-width: 42px; }
.lang-switch .btn-primary { background: #9B2335; border-color: #9B2335; }


/* Public profile photos — privacy blur (homepage / guests) */
.profile-card .profile-photo img,
.profile-card .profile-photo-blur img,
.public-profile-photo img {
    filter: blur(14px) saturate(1.05) !important;
    -webkit-filter: blur(14px) saturate(1.05) !important;
    transform: scale(1.08);
    opacity: 1 !important;
}
.profile-card .profile-photo {
    position: relative;
    overflow: hidden;
}
.profile-card .profile-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.45) 0%, transparent 45%);
    pointer-events: none;
    z-index: 1;
}
/* Clear photo only when explicitly allowed */
.profile-card.photo-clear .profile-photo img,
.photo-clear img {
    filter: none !important;
    -webkit-filter: none !important;
    transform: none;
}
.profile-card.photo-clear .profile-photo::after {
    display: none;
}


/* Footer logo */
.footer-logo-wrap {
    margin-bottom: 1rem;
}
.footer-logo-link {
    text-decoration: none;
    display: inline-block;
}
.footer-logo {
    max-height: 64px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
    background: transparent;
}
.site-footer .footer-brand {
    margin-top: 0.35rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
}
