/**
 * Main CSS - Steve Seremeth Photography
 *
 * Photography-focused design with black theme, responsive grid, clean typography.
 */

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #000;
}

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

a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* ===== Layout ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

main {
    min-height: calc(100vh - 200px);
}

/* ===== Header Navigation ===== */
.site-header {
    position: sticky;
    top: 0;
    padding: 1.5rem 0;
    background-color: #000;
    border-bottom: 1px solid #333;
    z-index: 100;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

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

.nav-menu li {
    display: inline-block;
}

.user-info {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.btn-google-signin {
    padding: 0.5rem 1rem;
    background-color: #fff;
    color: #000;
    border-radius: 4px;
    font-weight: 500;
}

.btn-google-signin:hover {
    opacity: 0.9;
}

.btn-logout {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.btn-logout:hover {
    opacity: 0.7;
}

/* ===== Footer ===== */
.site-footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid #333;
    text-align: center;
    color: #999;
    font-size: 0.875rem;
}

.footer-links {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: #999;
}

/* ===== Responsive Grid ===== */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.photo-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background-color: #111;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

.photo-overlay h3 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
}

.photo-overlay-bottom {
    top: auto;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0.75rem;
}

.photo-card-actions {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.photo-card:hover .photo-card-actions {
    opacity: 1;
    transform: translateY(0);
}

.btn-photo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    font-size: 0.75rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-photo-link:hover {
    background-color: rgba(0, 0, 0, 0.95);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-photo-link.copied {
    background-color: rgba(76, 175, 80, 0.9);
    border-color: rgba(76, 175, 80, 1);
}

.btn-photo-link svg {
    flex-shrink: 0;
}

/* ===== Album Grid ===== */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.album-card {
    position: relative;
    background-color: #111;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.album-card:hover {
    transform: translateY(-4px);
}

.album-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.album-info {
    padding: 1.5rem;
}

.album-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.album-description {
    color: #999;
    font-size: 0.875rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.btn:hover {
    opacity: 0.9;
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}

/* ===== Photo Viewer ===== */
.photo-viewer {
    max-width: 1200px;
    margin: 2rem auto;
}

.photo-viewer img {
    width: 100%;
    margin-bottom: 1rem;
}

.photo-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.like-button {
    padding: 0.5rem 1rem;
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.like-button.liked {
    background-color: #e74c3c;
    border-color: #e74c3c;
}

.like-button:hover {
    opacity: 0.8;
}

/* ===== Responsive Design ===== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .main-nav {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

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

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

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Homepage responsive */
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .bio-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .bio-cta {
        flex-direction: column;
    }
}

/* Mobile (375px and below) */
@media (max-width: 375px) {
    .homepage-hero {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin: 2rem 0 1rem;
    }

    .featured-grid {
        gap: 1rem;
    }

    .bio-section {
        padding: 2rem 0;
    }
}

/* Large desktop (1920px and above) */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== Loading States ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Homepage Styles ===== */
.homepage-hero {
    text-align: center;
    padding: 4rem 0;
    border-bottom: 1px solid #333;
}

.hero-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #999;
    font-weight: 300;
}

.section-title {
    font-size: 2rem;
    font-weight: 300;
    text-align: center;
    margin: 3rem 0 2rem;
}

.featured-section {
    padding: 0;
}

.featured-section .container {
    max-width: none;
    padding: 0;
}

.featured-hero {
    position: relative;
    margin-bottom: 3rem;
}

.featured-photo-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    height: calc(100vh - 160px);
    min-height: 400px;
    background-color: #111;
    overflow: hidden;
}

#featured-link:hover {
    opacity: 1;
}

.featured-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.featured-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

.featured-nav {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
}

.featured-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.featured-nav svg {
    width: 18px;
    height: 18px;
}

.featured-indicators {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.featured-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.featured-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
}

.featured-indicator.active {
    background: #fff;
    width: 14px;
    height: 14px;
}

.featured-hint {
    text-align: center;
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Responsive adjustments for featured section */
@media (max-width: 768px) {
    .featured-photo-wrapper {
        min-height: 300px;
    }

    .featured-nav {
        width: 40px;
        height: 40px;
    }

    .featured-nav svg {
        width: 20px;
        height: 20px;
    }
}

/* Bio Section */
.bio-section {
    padding: 4rem 0;
    background-color: #0a0a0a;
}

.bio-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.bio-image img {
    width: 100%;
    border-radius: 8px;
    aspect-ratio: 1;
    object-fit: cover;
}

.bio-text h2 {
    margin-bottom: 1.5rem;
}

.bio-text p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.bio-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Recent Albums Section */
.recent-albums-section {
    padding: 4rem 0;
}

.album-cover-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-cover-placeholder::after {
    content: 'No cover image';
    color: #666;
    font-size: 0.875rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.empty-state p {
    font-size: 1.125rem;
}

/* ===== Albums Gallery Page ===== */
.albums-hero {
    text-align: center;
    padding: 3rem 0 2rem;
    border-bottom: 1px solid #333;
}

.albums-hero h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.albums-hero p {
    color: #999;
    font-size: 1.125rem;
}

.albums-content {
    padding: 3rem 0;
}

/* ===== Single Album Page ===== */
.album-header {
    text-align: center;
    padding: 3rem 0 1rem;
    border-bottom: 1px solid #333;
}

.album-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.album-description-text {
    color: #999;
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto 1rem;
}

.album-meta {
    color: #666;
    font-size: 0.875rem;
}

.album-photos {
    padding: 1rem 0;
}

.album-actions {
    padding: 2rem 0 4rem;
}

/* ===== Password Prompt ===== */
.password-prompt-section {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

.password-prompt {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    background-color: #111;
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid #333;
}

.password-prompt h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.password-prompt p {
    color: #999;
    margin-bottom: 2rem;
}

.password-form {
    text-align: left;
}

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

.password-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #ccc;
}

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
    padding: 1rem 2rem;
    z-index: 10000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    width: 100%;
    margin: 0;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: #fff;
    color: #000;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #e6e6e6;
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        padding: 1rem;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cookie-actions {
        width: 100%;
        justify-content: flex-end;
    }


}



.password-form input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    background-color: #000;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
}

.password-form input:focus {
    outline: none;
    border-color: #666;
}

.password-form button {
    width: 100%;
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.alert-error {
    background-color: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #ff6b6b;
}

/* ===== Photo Selector (Admin) ===== */
.photo-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.photo-selector-item {
    position: relative;
    cursor: pointer;
    display: block;
}

.photo-selector-item input[type="checkbox"] {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 10;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.photo-selector-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.photo-selector-item input[type="checkbox"]:checked+img {
    border-color: #fff;
}

.photo-selector-item span {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    color: #999;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* ===== Admin Helpers ===== */
.admin-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-header-section h1 {
    margin: 0;
}

.album-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #222;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.share-link-section {
    margin-bottom: 2rem;
}

.share-link-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.share-link-input {
    display: flex;
    gap: 0.5rem;
}

.share-link-input input {
    flex: 1;
    padding: 0.75rem;
    background-color: #111;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-family: monospace;
    font-size: 0.875rem;
}

.photo-info {
    padding: 0.5rem;
}

.photo-title {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.photo-meta {
    font-size: 0.75rem;
    color: #999;
}

.dashboard-section {
    margin-bottom: 3rem;
}

.quick-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== Like Button & Authentication ===== */
.like-container {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.like-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: transparent;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.like-button:hover:not(:disabled) {
    background-color: #222;
    border-color: #666;
}

.like-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.like-button.liked {
    background-color: #c00;
    border-color: #c00;
    color: #fff;
}

.like-button.liked:hover:not(:disabled) {
    background-color: #a00;
    border-color: #a00;
}

.like-icon {
    flex-shrink: 0;
}

.like-count {
    font-weight: 500;
    min-width: 1.5rem;
    text-align: center;
}

.like-status {
    font-size: 0.75rem;
    color: #999;
    min-width: 120px;
}

.like-status.like-status-success {
    color: #4caf50;
}

.like-status.like-status-error {
    color: #f44336;
}

.like-status.like-status-info {
    color: #2196f3;
}

/* Authentication UI */
.auth-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #444;
}

.auth-profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.auth-profile-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.auth-profile-email {
    font-size: 0.75rem;
    color: #999;
}

.btn-signin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-signin:hover {
    background-color: #f0f0f0;
}

.btn-signin img {
    width: 18px;
    height: 18px;
}

.btn-signout {
    padding: 0.5rem 1rem;
    background-color: transparent;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.btn-signout:hover {
    background-color: #222;
    border-color: #666;
}

/* ===== Single Photo Page ===== */
.photo-page {
    padding: 0;
}

.photo-breadcrumb {
    background-color: #111;
    padding: 1rem 0;
    border-bottom: 1px solid #333;
    font-size: 0.875rem;
}

.photo-breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb-link {
    color: #999;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #fff;
}

.breadcrumb-separator {
    color: #666;
}

.photo-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    min-height: calc(100vh - 200px);
}

.photo-main {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    padding: 2rem;
    overflow: hidden;
}

.photo-full {
    max-width: 100%;
    max-height: calc(100vh - 200px);
    width: auto;
    height: auto;
    object-fit: contain;
}

.photo-sidebar {
    background-color: #111;
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(100vh - 100px);
    border-left: 1px solid #333;
}

.photo-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #333;
}

.photo-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.photo-description {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

.photo-engagement {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #333;
}

.photo-metadata {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #333;
}

.metadata-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.metadata-label {
    color: #999;
    font-weight: 500;
}

.metadata-value {
    color: #fff;
}

.photo-exif {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #333;
}

.exif-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 0.875rem;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.2s ease;
}

.exif-toggle:hover {
    background-color: #222;
    border-color: #444;
}

.exif-toggle svg {
    transition: transform 0.2s ease;
}

.exif-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.exif-content {
    margin-top: 1rem;
    padding-top: 1rem;
}

.photo-share {
    margin-bottom: 2rem;
}

.share-heading {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.photo-actions {
    margin-top: 2rem;
}

/* ===== EXIF Panel ===== */
.exif-panel-container {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #333;
}

.exif-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 0.875rem;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.2s ease;
}

.exif-toggle-btn:hover {
    background-color: #222;
    border-color: #444;
}

.exif-toggle-btn:focus {
    outline: 2px solid #666;
    outline-offset: 2px;
}

.exif-icon {
    flex-shrink: 0;
    margin-right: 0.75rem;
    opacity: 0.7;
}

.exif-toggle-text {
    flex: 1;
    text-align: left;
}

.exif-chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.exif-toggle-btn[aria-expanded="true"] .exif-chevron {
    transform: rotate(180deg);
}

.exif-panel {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #0a0a0a;
    border-radius: 4px;
}

.exif-panel[hidden] {
    display: none;
}

.exif-data {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.exif-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.5rem 0;
    border-bottom: 1px solid #1a1a1a;
}

.exif-item:last-child {
    border-bottom: none;
}

.exif-label {
    color: #999;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exif-value {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 400;
    text-align: right;
}

.exif-no-data {
    color: #666;
    font-size: 0.875rem;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

.exif-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    color: #999;
    font-size: 0.875rem;
}

.exif-loading .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.exif-error {
    color: #f44336;
    font-size: 0.875rem;
    text-align: center;
    padding: 1rem;
}

/* Compact EXIF display for photo cards */
.exif-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 500;
}

.exif-badge svg {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}

/* Responsive Photo Page */
@media (max-width: 1024px) {
    .photo-container {
        grid-template-columns: 1fr;
    }

    .photo-main {
        min-height: 50vh;
    }

    .photo-sidebar {
        max-height: none;
        border-left: none;
        border-top: 1px solid #333;
    }

    .photo-full {
        max-height: 70vh;
    }
}

@media (max-width: 768px) {
    .photo-main {
        padding: 1rem;
        min-height: 40vh;
    }

    .photo-sidebar {
        padding: 1.5rem;
    }

    .photo-title {
        font-size: 1.25rem;
    }

    .photo-full {
        max-height: 60vh;
    }
}

/* ===== Utilities ===== */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-4 {
    margin-top: 4rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

/* Fix for About section on mobile to ensure it stacks */
@media (max-width: 768px) {
    .bio-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .bio-image {
        order: -1;
    }
}

/* ===== Modal Styles ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1;
}

.modal-content {
    position: relative;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
}

.modal-close {
    background: none;
    border: none;
    color: #999;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #fff;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    background-color: #000;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #666;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== Account Page ===== */
.account-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.account-header {
    background-color: #111;
    border-radius: 8px;
    padding: 3rem;
    margin-bottom: 3rem;
    border: 1px solid #333;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #333;
}

.profile-details h1 {
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.profile-email {
    color: #999;
    font-size: 1.125rem;
}

.liked-photos-section h2 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

/* Reuse photo-grid styles but ensure they work well here */
.liked-photos-section .photo-grid {
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .account-header {
        padding: 2rem;
    }

    .profile-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}