/* ============================================
   J&T Photography — Public Gallery Styles
   ============================================ */

/* --- Color tokens --- */
:root {
    --jt-primary:      #2563eb;
    --jt-primary-dark: #1d4ed8;
    --jt-accent:       #d97706;
    --jt-accent-dark:  #b45309;
    --jt-bg:           #f8fafc;
    --jt-fg:           #0f172a;
    --jt-muted:        #64748b;
    --jt-border:       #e2e8f0;
}

/* --- Base --- */
body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--jt-bg);
    color: var(--jt-fg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Caveat', cursive;
}

/* --- Navbar --- */
#header .navbar {
    padding: 0.875rem 0;
}

#header-logo {
    font-family: 'Caveat', cursive;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--jt-fg) !important;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

#header-logo:hover {
    color: var(--jt-primary) !important;
    text-decoration: none;
}

/* Collapsible about/contact panel */
#navbarHeader {
    background-color: var(--jt-fg);
    color: #fff;
}

#navbarHeader h4 {
    font-family: 'Caveat', cursive;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

#navbarHeader p,
#navbarHeader .text-muted {
    color: rgba(255,255,255,0.65) !important;
    font-size: 0.9rem;
}

#navbarHeader a {
    color: rgba(255,255,255,0.8);
    transition: color 0.2s ease;
}

#navbarHeader a:hover {
    color: #fff;
}

/* --- Hero --- */
#mainBanner {
    background: linear-gradient(150deg, #ffffff 0%, #eef2ff 100%);
    border-radius: 0;
    border-bottom: 1px solid var(--jt-border);
    padding: 4rem 1rem 3.5rem;
    margin-bottom: 0;
}

.jumbotron-heading {
    font-family: 'Caveat', cursive;
    font-size: clamp(2.6rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--jt-fg);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

#mainBanner .lead {
    font-size: 1.05rem;
    color: var(--jt-muted);
    max-width: 520px;
    margin: 0 auto 1.25rem;
    line-height: 1.65;
}

.access-note {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-size: 0.85rem;
    color: var(--jt-muted);
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 99px;
    padding: 0.35rem 1.1rem;
    margin: 0;
}

.access-note a {
    color: var(--jt-primary);
    font-weight: 600;
    text-decoration: none;
}

.access-note a:hover {
    color: var(--jt-primary-dark);
    text-decoration: underline;
}

/* --- Gallery album section --- */
.album {
    background-color: var(--jt-bg) !important;
}

/* --- Filter navigation --- */
#collection-menu,
#group-menu,
#filter-menu {
    padding: 0.5rem 0;
}

#group-menu {
    border-top: 1px solid var(--jt-border);
    margin-top: 0.5rem;
    padding-top: 0.875rem;
}

#filter-menu {
    border-top: 1px dashed var(--jt-border);
    margin-top: 0.25rem;
    padding-top: 0.75rem;
}

.btn-filter {
    display: inline-block;
    padding: 0.35rem 1rem;
    margin: 0.2rem;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid var(--jt-border);
    border-radius: 99px;
    background: #fff;
    color: var(--jt-muted);
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-filter:hover {
    border-color: var(--jt-primary);
    color: var(--jt-primary);
    background: rgba(37, 99, 235, 0.04);
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-filter.active {
    border-color: var(--jt-primary);
    background: var(--jt-primary);
    color: #fff;
}

.btn-filter:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* --- Collection heading --- */
#collection-heading {
    text-align: center;
    padding: 2rem 0 0.75rem;
}

#collection-heading span {
    display: inline-block;
    font-family: 'Caveat', cursive;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--jt-fg);
    position: relative;
    padding-bottom: 0.6rem;
}

#collection-heading span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2.5rem;
    height: 3px;
    background: var(--jt-primary);
    border-radius: 2px;
}

/* --- Gallery cards --- */
.card {
    border: 1px solid var(--jt-border) !important;
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.1);
}

.card-title {
    font-family: 'Caveat', cursive;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--jt-fg);
}

.card-text {
    font-size: 0.875rem;
    color: var(--jt-muted);
    line-height: 1.55;
    margin-bottom: 0.75rem;
}

.gallery-date {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.8rem;
}

.photo-count {
    font-size: 0.78rem;
    color: var(--jt-muted);
    margin-bottom: 0.75rem;
}

/* View Gallery button — full-width amber CTA */
.btn-view {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    background: var(--jt-accent);
    color: #fff;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
    letter-spacing: 0.01em;
}

.btn-view:hover,
.btn-view:focus {
    background: var(--jt-accent-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.25);
}

/* --- Empty state --- */
.empty-state {
    padding: 3.5rem 1rem;
    color: var(--jt-muted);
    text-align: center;
}

.empty-state .empty-icon {
    font-size: 3rem;
    opacity: 0.25;
    display: block;
    margin-bottom: 1rem;
}

.empty-state p {
    margin: 0;
    font-size: 0.95rem;
}

/* --- Scroll-up button --- */
a.scrollUp {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--jt-primary);
    border: none;
    border-radius: 50%;
    padding: 0;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transition: background 0.2s ease, transform 0.2s ease;
}

a.scrollUp:hover {
    background: var(--jt-primary-dark);
    transform: translateY(-2px);
}

/* --- Footer --- */
#footer {
    background: var(--jt-fg);
    color: rgba(255,255,255,0.45);
    text-align: center;
    padding: 2rem 1rem;
}

#footer .copyright {
    font-size: 0.85rem;
    margin: 0;
}

#footer a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s ease;
}

#footer a:hover {
    color: #fff;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
