/**
 * SNA Picture Gallery - Main Stylesheet
 * Elegant Cultural & Historical Archive Design System
 */

:root {
    --sna-primary: #1A4D2E;
    --sna-primary-dark: #11331F;
    --sna-primary-light: #256b40;
    --sna-gold: #C5A059;
    --sna-gold-light: #E0C78E;
    --sna-gold-dark: #9D7B35;
    --sna-bg: #FAF8F5;
    --sna-surface: #FFFFFF;
    --sna-text-main: #1E232A;
    --sna-text-muted: #5A6573;
    --sna-border: #E8E3DA;
    --sna-radius: 10px;
    --sna-shadow: 0 6px 20px rgba(26, 77, 46, 0.07);
    --sna-shadow-hover: 0 12px 30px rgba(26, 77, 46, 0.14);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--sna-text-main);
    background-color: var(--sna-bg);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

h1, h2, h3, h4, .font-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--sna-primary-dark);
}

a {
    color: var(--sna-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--sna-gold-dark);
}

/* Header & Navigation */
.site-header {
    background-color: var(--sna-surface);
    border-bottom: 2px solid var(--sna-border);
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.top-bar {
    background-color: var(--sna-primary-dark);
    color: var(--sna-gold-light);
    font-size: 0.85rem;
    padding: 6px 0;
    letter-spacing: 0.5px;
}

.top-bar a {
    color: var(--sna-gold-light);
}

.top-bar a:hover {
    color: #FFFFFF;
}

.navbar-brand img {
    max-height: 54px;
    width: auto;
}

.brand-text h1 {
    font-size: 1.35rem;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.3px;
    color: var(--sna-primary-dark);
}

.brand-text small {
    font-size: 0.75rem;
    color: var(--sna-text-muted);
    font-weight: 500;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--sna-primary-dark) !important;
    padding: 8px 16px !important;
    position: relative;
    transition: color 0.25s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--sna-gold-dark) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background-color: var(--sna-gold);
}

.btn-gallery-cta {
    background-color: var(--sna-primary);
    color: #FFFFFF !important;
    font-weight: 600;
    border-radius: 30px;
    padding: 8px 22px;
    border: 1px solid var(--sna-gold);
    box-shadow: 0 4px 10px rgba(26, 77, 46, 0.2);
    transition: all 0.25s ease;
}

.btn-gallery-cta:hover {
    background-color: var(--sna-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(26, 77, 46, 0.3);
}

/* Homepage Hero */
.hero-section {
    background: linear-gradient(135deg, rgba(17, 51, 31, 0.90) 0%, rgba(26, 77, 46, 0.82) 50%, rgba(17, 51, 31, 0.88) 100%), 
                url('../images/hero-bg.jpg') center center/cover no-repeat;
    color: #FFFFFF;
    padding: 85px 0 95px;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--sna-gold), var(--sna-gold-light), var(--sna-gold));
}

/* Floating Gurudevan Portrait */
.guru-float-wrapper {
    position: relative;
    display: inline-block;
    filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.5));
    animation: guruFloat 4s ease-in-out infinite;
    padding-bottom: 25px;
}

@keyframes guruFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

.guru-float-img {
    max-height: 420px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.guru-float-wrapper:hover .guru-float-img {
    transform: scale(1.03);
}

.guru-caption-badge {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(17, 51, 31, 0.92);
    color: var(--sna-gold-light);
    border: 1px solid var(--sna-gold);
    padding: 6px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.hero-quote {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--sna-gold-light);
    font-style: italic;
    border-left: 3px solid var(--sna-gold);
    padding-left: 16px;
    margin: 20px 0;
}

.btn-gold {
    background-color: var(--sna-gold);
    color: #11331F;
    font-weight: 700;
    border-radius: 30px;
    padding: 12px 28px;
    border: none;
    box-shadow: 0 4px 14px rgba(197, 160, 89, 0.35);
    transition: all 0.25s ease;
}

.btn-gold:hover {
    background-color: var(--sna-gold-light);
    color: #11331F;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(197, 160, 89, 0.5);
}

.btn-outline-light-custom {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 30px;
    padding: 11px 26px;
    transition: all 0.25s ease;
}

.btn-outline-light-custom:hover {
    background-color: #FFFFFF;
    color: var(--sna-primary-dark);
}

/* Section Common Styling */
.section-title {
    font-size: 2.2rem;
    color: var(--sna-primary-dark);
    position: relative;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--sna-text-muted);
    font-size: 1.05rem;
    max-width: 680px;
    margin: 0 auto 35px;
}

.divider-gold {
    width: 60px;
    height: 3px;
    background-color: var(--sna-gold);
    margin: 15px auto;
}

/* Gallery & Album Cards */
.album-card {
    background-color: var(--sna-surface);
    border-radius: var(--sna-radius);
    border: 1px solid var(--sna-border);
    overflow: hidden;
    box-shadow: var(--sna-shadow);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sna-shadow-hover);
    border-color: var(--sna-gold);
}

.album-cover-wrap {
    position: relative;
    padding-top: 66%; /* 3:2 aspect ratio */
    overflow: hidden;
    background-color: #ECEAE4;
}

.album-cover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.album-card:hover .album-cover-img {
    transform: scale(1.05);
}

.album-badge-year {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--sna-primary-dark);
    color: var(--sna-gold-light);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.album-badge-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: rgba(17, 51, 31, 0.85);
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.album-card-body {
    padding: 20px;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.album-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--sna-primary-dark);
    margin-bottom: 8px;
    line-height: 1.35;
}

.album-card-meta {
    font-size: 0.85rem;
    color: var(--sna-text-muted);
    margin-top: auto;
}

/* Timeline & Year Filter Bar */
.year-pills-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
}

.year-pill {
    padding: 8px 18px;
    border-radius: 25px;
    background-color: var(--sna-surface);
    border: 1px solid var(--sna-border);
    color: var(--sna-primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.year-pill:hover, .year-pill.active {
    background-color: var(--sna-primary);
    color: #FFFFFF;
    border-color: var(--sna-primary);
    box-shadow: 0 4px 10px rgba(26, 77, 46, 0.2);
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.photo-item {
    position: relative;
    padding-top: 75%;
    border-radius: 8px;
    overflow: hidden;
    background-color: #E6E1D8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
}

.photo-item.is-portrait {
    grid-row: span 2;
    padding-top: 155%;
}

.photo-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.04);
}

.photo-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #FFFFFF;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.photo-item:hover .photo-item-overlay {
    opacity: 1;
}

/* Lightbox Modal */
.sna-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 14, 12, 0.96);
    z-index: 2000;
    display: none;
    flex-direction: column;
    justify-content: space-between;
}

.sna-lightbox.active {
    display: flex;
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    color: #FFFFFF;
    background: linear-gradient(rgba(0, 0, 0, 0.8), transparent);
}

.lightbox-content {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 10px;
}

.lightbox-content img {
    max-width: 92vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
    user-select: none;
    transition: transform 0.2s ease;
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
    backdrop-filter: blur(4px);
}

.lightbox-nav-btn:hover {
    background: rgba(197, 160, 89, 0.8);
    color: #11331F;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-footer {
    padding: 14px 24px;
    color: #E0C78E;
    text-align: center;
    font-size: 0.9rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

/* Footer */
.site-footer {
    background-color: var(--sna-primary-dark);
    color: #E2DFD9;
    padding: 60px 0 25px;
    border-top: 4px solid var(--sna-gold);
    margin-top: 60px;
}

.site-footer h5 {
    color: var(--sna-gold-light);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.site-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--sna-gold);
}

.site-footer a {
    color: #D2CEC4;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: var(--sna-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 45px;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #A5A198;
}

/* Content Article & Section Styling */
.content-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #2D3748;
}

.content-section {
    position: relative;
    scroll-margin-top: 100px;
}

.section-subheading {
    font-family: var(--font-heading);
    color: var(--sna-primary-dark);
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--sna-border);
    position: relative;
}

.section-subheading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--sna-gold);
}

.content-body img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.leadership-card {
    background-color: #FAFAFA;
    border: 1px solid var(--sna-border);
    transition: box-shadow 0.3s ease;
}

.leadership-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
}

.publication-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.publication-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }
    .hero-section {
        padding: 50px 0 60px;
    }
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .lightbox-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
}
