@font-face {
    font-family: 'Geist';
    src: url('../fonts/Geist-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geist';
    src: url('../fonts/Geist-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geist';
    src: url('../fonts/Geist-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/PlayfairDisplay-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/PlayfairDisplay-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --red-pastel: #ffcdd2;
    --red-light: #ef5350;
    --red-dark: #c62828;

    --green-pastel: #c8e6c9;
    --green-light: #66bb6a;
    --green-dark: #2e7d32;

    --yellow-pastel: #fefcf7;
    --yellow-light: #ffee58;
    --yellow-dark: #f9a825;

    --purple-pastel: #e1bee7;
    --purple-light: #ab47bc;
    --purple-dark: #6a1b9a;

    --blue-pastel: #bbdefb;
    --blue-light: #42a5f5;
    --blue-dark: #1565c0;

    --orange-pastel: #ffe0b2;
    --orange-light: #ffa726;
    --orange-dark: #ef6c00;

    --pink-pastel: #f8bbd0;
    --pink-light: #ec407a;
    --pink-dark: #c2185b;

    --teal-pastel: #b2dfdb;
    --teal-light: #26a69a;
    --teal-dark: #00695c;

    --color-bg: #ffffff;
    --color-text: #000;
    --color-border: #e0e0e0;
    --color-accent: #0066cc;

    --category-pill: var(--blue-pastel);
    --tag-pill: var(--green-pastel);
    --exif-pill: #f3f4f6;
    --exif-box-bg: #f3f4f6;
    --pill-border: #dcdcdc;
    --exif-pill-border: #000;
    --pill-border-radius-lg: 8px;
    --pill-border-radius-md: 6px;
    --pill-border-radius-sm: 4px;
    --image-border-radius: 8px;

    --font-body: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body-weight: 300;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-size-base: 15px;
    --font-size-lg: 18px;
    --font-size-sm: 14px;
    --line-height-base: 1.6;
    --line-height-heading: 1.2;
}

body {
    font-family: var(--font-body);
    font-weight: var(--font-body-weight);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: var(--line-height-base);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: var(--font-size-base);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--mountains-global-bg);
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: cover;
    background-attachment: fixed;
    opacity: 0.5;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    min-height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 3rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(8px)) {
    .navbar {
        background-color: rgba(255, 255, 255, 0.5);
    }
}

/* Container styles removed - navbar is now styled directly */

.navbar-brand a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand a .navbar-logo {
    width: 1.75rem;
    height: 1.75rem;
    object-fit: contain;
}

.navbar-menu {
    display: flex;
    gap: 1.5rem;
}

.navbar-link {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 400;
}

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

.navbar-link span {
    font-size: 0.85rem;
}

/* Tablet adjustments */
@media (max-width: 1024px) {
    .navbar {
        padding: 0.75rem 1.5rem;
    }
}

/* Mobile navbar improvements */
@media (max-width: 800px) {
    .navbar {
        position: sticky;
        padding: 0;
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
        height: auto;
    }

    .navbar-brand {
        width: 100%;
        padding: 0.75rem 1rem;
        background: rgba(255, 255, 255, 0.95);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar-brand a {
        font-size: 1.25rem;
        justify-content: center;
    }

    .navbar-menu {
        width: 100%;
        padding: 0.5rem;
        display: flex;
        justify-content: space-around;
        gap: 0.5rem;
        background: rgba(255, 255, 255, 0.95);
    }

    .navbar-link {
        flex-direction: column;
        padding: 0.75rem 1rem;
        font-size: 1.5rem; /* Bigger icons for touch targets */
        min-width: 60px;
        text-align: center;
        position: relative;
        transition: background-color 0.2s;
    }

    .navbar-link:active {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .navbar-link .icon {
        width: 1.5rem;
        height: 1.5rem;
    }

    .navbar-link span {
        display: none; /* Hide text labels on mobile */
    }

    .content {
        padding-top: calc(3rem + 60px); /* Adjust for two-row navbar */
    }
}

@media (max-width: 480px) {
    .navbar-link {
        padding: 0.75rem 0.5rem;
        min-width: 50px;
    }
}


.content {
    flex: 1;
    padding: 5rem 0 3rem 0;
}

.footer {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-border);
    padding: 2rem 0;
    margin-top: auto;
}

.footer p {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

a.hashtag {
    background-color: var(--tag-pill);
    border: 1px solid var(--pill-border);
    border-radius: var(--pill-border-radius-sm);
    padding: 0.15rem 0.25rem;
    text-decoration: none;
    color: #000;
}

/* Mastodon Reactions */
.mastodon-reactions {
    color: #666;
    font-size: 0.875rem;
}

.mastodon-reactions-card {
    margin-top: 2rem;
}

.mastodon-reactions-card .entry-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mastodon-reactions-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1.1rem;
}

.mastodon-link {
    color: var(--color-accent);
    text-decoration: none;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.mastodon-link:hover {
    text-decoration: underline;
}

.mastodon-reactions-content {
    padding: 1rem;
}

.reaction-section {
    margin-bottom: 1.5rem;
}

.reaction-section:last-child {
    margin-bottom: 0;
}

.reaction-section h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    color: var(--color-text);
}

.reaction-avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.reaction-avatar {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.reaction-avatar:hover {
    transform: scale(1.1);
}

.reaction-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reaction-comments {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reaction-comment {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--pill-border-radius-md);
    border-left: 3px solid var(--blue-light);
}

.reaction-comment.comment-reply {
    margin-left: 2rem;
    background: #f0f1f2;
    border-left-color: var(--red-pastel);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.comment-avatar {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-meta {
    flex: 1;
    min-width: 0;
}

.comment-author {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    display: block;
}

.comment-author:hover {
    text-decoration: underline;
}

.comment-instance {
    color: #666;
    font-size: 0.875rem;
}

.comment-link {
    color: #666;
    text-decoration: none;
    flex-shrink: 0;
}

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

.comment-content {
    line-height: 1.5;
    color: var(--color-text);
}

.comment-content p {
    margin: 0;
}

.mastodon-reactions-footer {
    padding-top: 1rem;
    border-top: 1px solid #eee;
    text-align: right;
}

.mastodon-reactions-footer small {
    color: #666;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .reaction-avatars {
        gap: 0.25rem;
    }

    .reaction-avatar {
        width: 28px;
        height: 28px;
    }

    .comment-header {
        gap: 0.5rem;
    }

    .comment-avatar {
        width: 28px;
        height: 28px;
    }
}