/* ============================================
   RESA Photography – Frontend Stylesheet
   Dark + Gold Aesthetic (Granaria-Style)
   ============================================ */

/* ==========================================================================
   1. CSS RESET & VARIABLES
   ========================================================================== */

:root {
    /* Backgrounds */
    --bg-primary: #0a0a0c;
    --bg-secondary: #111114;
    --bg-tertiary: #1a1a1e;
    --bg-card: #16161a;
    --bg-card-hover: #1c1c22;
    --bg-overlay: rgba(10, 10, 12, 0.92);

    /* Accent */
    --accent: #c9a84c;
    --accent-hover: #d4b85e;
    --accent-subtle: rgba(201, 168, 76, 0.12);

    /* Text */
    --text-primary: #e8e6e3;
    --text-secondary: #9a9a9e;
    --text-tertiary: #5a5a5e;

    /* Borders */
    --border: #2a2a2e;
    --border-hover: #3a3a3e;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Shapes */
    --radius: 3px;
    --radius-lg: 6px;
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 50px rgba(0, 0, 0, 0.6);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Tag colors */
    --tag-gold: rgba(201, 168, 76, 0.15);
    --tag-gold-text: #d4b85e;
    --tag-blue: rgba(70, 130, 220, 0.15);
    --tag-blue-text: #6ea4e8;
    --tag-rose: rgba(210, 90, 120, 0.15);
    --tag-rose-text: #e07090;
    --tag-green: rgba(80, 180, 120, 0.15);
    --tag-green-text: #60c890;
    --tag-purple: rgba(150, 100, 220, 0.15);
    --tag-purple-text: #b090e0;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
}

::selection {
    background: var(--accent-subtle);
    color: var(--accent);
}


/* ==========================================================================
   2. NOISE OVERLAY
   ========================================================================== */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
}


/* ==========================================================================
   3. HEADER
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
}

.site-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.04em;
    transition: opacity var(--transition);
}

.site-logo:hover {
    color: var(--text-primary);
    opacity: 0.85;
}

.site-logo span {
    color: var(--accent);
}

.site-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.site-nav a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color var(--transition);
    position: relative;
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition);
}

.site-nav a:hover::after,
.site-nav a.active::after {
    width: 100%;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--accent);
}

.site-nav .nav-admin {
    color: var(--accent);
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--accent-subtle);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.site-nav .nav-admin:hover {
    background: var(--accent-subtle);
}

.site-nav .nav-admin::after {
    display: none;
}


/* ==========================================================================
   4. MOBILE HAMBURGER MENU
   ========================================================================== */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition);
    transform-origin: center;
}

.nav-toggle span + span {
    margin-top: 6px;
}

/* Hamburger animation when open */
.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}


/* ==========================================================================
   5. MAIN CONTENT
   ========================================================================== */

.main-content {
    padding-top: 72px;
    min-height: 100vh;
}


/* ==========================================================================
   6. PAGE INTRO SECTION
   ========================================================================== */

.page-intro,
.hero {
    padding: clamp(3rem, 8vw, 8rem) clamp(1.5rem, 4vw, 4rem);
    text-align: center;
    position: relative;
}

.page-intro h1,
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.page-intro h1 em,
.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.page-intro p,
.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.7;
}

.page-intro .meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 1rem;
    letter-spacing: 0.05em;
}


/* ==========================================================================
   7. GALLERY GRID
   ========================================================================== */

.galleries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    padding: 0 clamp(1.5rem, 4vw, 4rem) clamp(3rem, 5vw, 5rem);
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--transition);
    cursor: pointer;
    aspect-ratio: 4 / 3;
}

.gallery-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(transparent, rgba(10, 10, 12, 0.9));
    transition: opacity var(--transition);
}

.gallery-card .card-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.gallery-card .card-count {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.05em;
}

/* Gallery detail header */
.gallery-header {
    padding: clamp(2rem, 5vw, 5rem) clamp(1.5rem, 4vw, 4rem) 2rem;
    text-align: center;
}

.gallery-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.gallery-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-header .meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 0.75rem;
}


/* ==========================================================================
   8. IMAGE GRID
   ========================================================================== */

.images-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
    padding: 0 clamp(1.5rem, 4vw, 4rem) 3rem;
}


/* ==========================================================================
   9. IMAGE ITEMS
   ========================================================================== */

.image-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    aspect-ratio: 1;
    transition: transform var(--transition);
}

.image-item:hover {
    transform: scale(1.02);
    z-index: 1;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius);
    transition: opacity var(--transition), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-item:hover img {
    opacity: 0.92;
    transform: scale(1.05);
}

.image-item .image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 0.75rem 0.6rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: 0 0 var(--radius) var(--radius);
}

.image-item:hover .image-caption {
    opacity: 1;
}


/* ==========================================================================
   9b. VIDEO PLAY OVERLAY (on thumbnails)
   ========================================================================== */

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.video-play-overlay svg {
    width: 48px;
    height: 48px;
    color: rgba(255, 255, 255, 0.85);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
    transition: transform var(--transition), color var(--transition);
}

.image-item.is-video:hover .video-play-overlay svg {
    transform: scale(1.15);
    color: var(--accent);
}


/* ==========================================================================
   10. LIGHTBOX
   ========================================================================== */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.96);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
}

.lightbox img,
.lightbox video {
    max-width: 92vw;
    max-height: 85vh;
    object-fit: contain;
    cursor: default;
    animation: fadeIn 0.3s ease;
    border-radius: var(--radius);
}

.lightbox video {
    outline: none;
    background: #000;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition);
    z-index: 2001;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.lightbox-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    transition: all var(--transition);
    z-index: 2001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.lightbox-nav:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 2001;
}

.lightbox-info span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    letter-spacing: 0.03em;
}

.lightbox-info .lightbox-title {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.lightbox-info .lightbox-counter {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-tertiary);
}


/* ==========================================================================
   11. BLOG CARDS
   ========================================================================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
    padding: 0 clamp(1.5rem, 4vw, 4rem) clamp(3rem, 5vw, 5rem);
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.blog-card .card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .card-image img {
    transform: scale(1.04);
}

.blog-card .card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card .card-date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.blog-card .card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    line-height: 1.35;
    transition: color var(--transition);
}

.blog-card:hover .card-title {
    color: var(--accent);
}

.blog-card .card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.blog-card .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}


/* ==========================================================================
   12. BLOG POST TYPOGRAPHY (Prose)
   ========================================================================== */

.prose {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 4rem) clamp(3rem, 5vw, 5rem);
}

.prose h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.prose h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.3;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
}

.prose h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 2rem 0 0.75rem;
    color: var(--text-primary);
}

.prose h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
    color: var(--text-primary);
}

.prose p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.prose p strong {
    color: var(--text-primary);
    font-weight: 600;
}

.prose p em {
    color: var(--accent);
}

.prose a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: var(--accent-subtle);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--transition);
}

.prose a:hover {
    text-decoration-color: var(--accent);
}

.prose ul,
.prose ol {
    margin: 0 0 1.5rem 1.25rem;
    color: var(--text-secondary);
}

.prose li {
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 0.4rem;
}

.prose li::marker {
    color: var(--accent);
}

.prose blockquote {
    border-left: 3px solid var(--accent);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--accent-subtle);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.prose blockquote p {
    font-style: italic;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0;
}

.prose code {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    background: var(--bg-tertiary);
    color: var(--accent);
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.prose pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
    overflow-x: auto;
}

.prose pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.7;
}

.prose img {
    width: 100%;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    border: 1px solid var(--border);
}

.prose figure {
    margin: 2rem 0;
}

.prose figure img {
    margin: 0 0 0.75rem;
}

.prose figcaption {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    text-align: center;
    font-style: italic;
}

.prose hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 3rem 0;
}

/* Post header */
.post-header {
    text-align: center;
    padding: clamp(2.5rem, 6vw, 6rem) clamp(1.5rem, 4vw, 4rem) 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.post-header .post-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.post-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.post-header .post-excerpt {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
}

.post-cover {
    max-width: 1000px;
    margin: 0 auto 2rem;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
}

.post-cover img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}


/* ==========================================================================
   13. TAG CHIPS
   ========================================================================== */

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 2px;
    background: var(--tag-gold);
    color: var(--tag-gold-text);
    transition: opacity var(--transition);
    line-height: 1.6;
}

.tag:hover {
    opacity: 0.8;
}

.tag--tech,
.tag[data-tag="tech"],
.tag[data-tag="technik"] {
    background: var(--tag-blue);
    color: var(--tag-blue-text);
}

.tag--art,
.tag[data-tag="art"],
.tag[data-tag="kunst"] {
    background: var(--tag-rose);
    color: var(--tag-rose-text);
}

.tag--nature,
.tag[data-tag="nature"],
.tag[data-tag="natur"] {
    background: var(--tag-green);
    color: var(--tag-green-text);
}

.tag--personal,
.tag[data-tag="personal"],
.tag[data-tag="persoenlich"] {
    background: var(--tag-purple);
    color: var(--tag-purple-text);
}


/* ==========================================================================
   14. ABOUT / CONTACT PAGE STYLES
   ========================================================================== */

.page-about,
.page-contact {
    max-width: 700px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 5rem) clamp(1.5rem, 4vw, 4rem) clamp(3rem, 5vw, 5rem);
}

.page-about h1,
.page-contact h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    text-align: center;
    margin-bottom: 2rem;
}

.page-about h1 em,
.page-contact h1 em {
    font-style: italic;
    color: var(--accent);
}

.page-about p,
.page-contact p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.page-about .about-portrait {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 2rem;
    border: 2px solid var(--border);
}

/* Contact form */
.contact-form {
    margin-top: 2rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-form button[type="submit"]:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* Flash messages */
.flash {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.flash--success {
    background: rgba(80, 180, 120, 0.12);
    border: 1px solid rgba(80, 180, 120, 0.25);
    color: var(--tag-green-text);
}

.flash--error {
    background: rgba(210, 90, 120, 0.12);
    border: 1px solid rgba(210, 90, 120, 0.25);
    color: var(--tag-rose-text);
}


/* ==========================================================================
   15. BACK LINK
   ========================================================================== */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    transition: color var(--transition);
}

.back-link:hover {
    color: var(--accent);
}

.back-link::before {
    content: '\2190';
    font-size: 1rem;
    line-height: 1;
    transition: transform var(--transition);
}

.back-link:hover::before {
    transform: translateX(-3px);
}


/* ==========================================================================
   16. FOOTER
   ========================================================================== */

.site-footer {
    padding: 3rem clamp(1.5rem, 4vw, 4rem);
    border-top: 1px solid var(--border);
    text-align: center;
}

.site-footer p {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    letter-spacing: 0.03em;
}


/* ==========================================================================
   17. ANIMATIONS
   ========================================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.fade-in {
    animation: fadeIn 0.4s ease both;
}

.slide-up {
    animation: slideUp 0.5s ease both;
}

/* Staggered animation delays */
.slide-up:nth-child(1) { animation-delay: 0.05s; }
.slide-up:nth-child(2) { animation-delay: 0.1s; }
.slide-up:nth-child(3) { animation-delay: 0.15s; }
.slide-up:nth-child(4) { animation-delay: 0.2s; }
.slide-up:nth-child(5) { animation-delay: 0.25s; }
.slide-up:nth-child(6) { animation-delay: 0.3s; }
.slide-up:nth-child(7) { animation-delay: 0.35s; }
.slide-up:nth-child(8) { animation-delay: 0.4s; }
.slide-up:nth-child(9) { animation-delay: 0.45s; }

/* Loading skeleton */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-card) 25%,
        var(--bg-card-hover) 50%,
        var(--bg-card) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}


/* ==========================================================================
   18. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet landscape / small desktop */
@media (max-width: 1024px) {
    .images-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .galleries-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Tablet portrait */
@media (max-width: 768px) {
    /* Mobile nav */
    .site-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-overlay);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        z-index: 999;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        font-size: 1.2rem;
        letter-spacing: 0.1em;
    }

    .site-nav a::after {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    /* Two columns on mobile */
    .images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.25rem;
    }

    /* Single column grids */
    .galleries-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* Smaller hero */
    .page-intro,
    .hero {
        padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 3vw, 2rem);
    }

    .page-intro h1,
    .hero h1 {
        font-size: clamp(1.8rem, 5vw, 2.8rem);
    }

    /* Lightbox adjustments */
    .lightbox img,
    .lightbox video {
        max-width: 96vw;
        max-height: 80vh;
    }

    .lightbox-nav {
        padding: 0.5rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    /* Post typography */
    .prose {
        padding: 0 clamp(1rem, 3vw, 2rem) clamp(2rem, 4vw, 3rem);
    }

    .prose h2 {
        margin-top: 2rem;
    }

    .post-header {
        padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem) 1.5rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .site-header {
        padding: 0 1rem;
    }

    .galleries-grid,
    .blog-grid {
        padding: 0 1rem 2rem;
    }

    .images-grid {
        padding: 0 1rem 2rem;
    }

    .page-about,
    .page-contact {
        padding: 2rem 1rem 3rem;
    }

    .gallery-card .card-overlay {
        padding: 1.5rem 1rem 1rem;
    }

    .gallery-card .card-title {
        font-size: 1.1rem;
    }

    .blog-card .card-body {
        padding: 1.25rem;
    }

    .site-footer {
        padding: 2rem 1rem;
    }
}


/* ==========================================================================
   19. SCROLLBAR STYLING
   ========================================================================== */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--bg-primary);
}


/* ==========================================================================
   20. UTILITY CLASSES
   ========================================================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
}

.container--narrow {
    max-width: 900px;
}

.container--prose {
    max-width: 800px;
}

/* Text utilities */
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-accent { color: var(--accent); }

/* Spacing utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Display utilities */
.hidden { display: none; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: clamp(3rem, 6vw, 6rem) 2rem;
    color: var(--text-tertiary);
}

.empty-state p {
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.empty-state .empty-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}
