/* ============================================
   OSEAN Gallery - Photography Portfolio
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary: #135bec;
    --primary-hover: #1a6bff;
    --primary-glow: rgba(19, 91, 236, 0.25);
    --bg-dark: #111722;
    --surface-dark: #1a2233;
    --surface-dark-hover: #222e42;
    --border-dark: #2a3548;
    --text-white: #f1f5f9;
    --text-light: #cbd5e1;
    --text-muted: #64748b;
    --text-dim: #475569;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.app-root {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background-color: rgba(17, 23, 34, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-dark);
    transition: background-color var(--transition-base);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    transition: opacity var(--transition-fast);
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-icon {
    color: var(--primary);
    font-size: 28px;
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-search-btn {
    display: none;
    color: var(--text-muted);
    padding: 0.375rem;
    transition: color var(--transition-fast);
}

.mobile-search-btn:hover {
    color: var(--text-white);
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 16rem;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 20px;
    pointer-events: none;
}

.search-input {
    width: 100%;
    background-color: var(--surface-dark);
    color: var(--text-white);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    transition: all var(--transition-base);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem;
    background-color: transparent;
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 0;
    letter-spacing: 0.015em;
    transition: all var(--transition-fast);
    box-shadow: none;
    white-space: nowrap;
}

.login-btn:hover {
    background-color: transparent;
    transform: scale(1.1);
    box-shadow: none;
}

/* Logout button styling */
.login-btn.logout-active {
    padding: 0.5rem;
    background-color: #111722;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(17, 23, 34, 0.3);
}

.login-btn.logout-active:hover {
    background-color: #1a2233;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(17, 23, 34, 0.4);
}

.login-btn i {
    font-size: 1.5rem;
}

.login-btn i.fa-circle-user {
    color: rgb(42, 97, 197);
}

.login-btn i.fa-right-from-bracket {
    color: rgb(221, 67, 22);
}

.hamburger-btn {
    display: none;
    color: var(--text-muted);
    padding: 0.375rem;
    transition: color var(--transition-fast);
}

.hamburger-btn:hover {
    color: var(--text-white);
}

/* --- Mobile Menu --- */
.mobile-menu {
    display: none;
    position: fixed;
    top: 57px;
    left: 0;
    right: 0;
    z-index: 90;
    background-color: rgba(17, 23, 34, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-dark);
    padding: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--transition-slow);
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary);
    background-color: rgba(19, 91, 236, 0.08);
}

/* --- Mobile Search Bar --- */
.mobile-search-bar {
    display: none;
    position: fixed;
    top: 57px;
    left: 0;
    right: 0;
    z-index: 90;
    background-color: rgba(17, 23, 34, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-dark);
    padding: 0.75rem 1rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--transition-slow);
}

.mobile-search-bar.open {
    transform: translateY(0);
    opacity: 1;
}

.mobile-search-inner {
    position: relative;
}

.mobile-search-inner .search-icon {
    left: 0.75rem;
}

.mobile-search-inner .search-input {
    width: 100%;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    padding: 1.5rem 1rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* --- Section Header --- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.view-toggles {
    display: flex;
    gap: 0.25rem;
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: var(--text-dim);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.view-toggle-btn:hover {
    color: var(--text-white);
    background-color: var(--surface-dark);
}

.view-toggle-btn.active {
    color: var(--text-light);
}

/* ============================================
   GALLERY GRID
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-grid.list-view {
    display: block;
    max-width: 900px;
    margin: 0 auto;
}

/* --- Gallery Table (List View) --- */
.gallery-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--surface-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    table-layout: auto;
}

.gallery-table th:nth-child(1),
.gallery-table td:nth-child(1) {
    width: 45%;
}

.gallery-table th:nth-child(2),
.gallery-table td:nth-child(2) {
    width: 30%;
}

.gallery-table th:nth-child(3),
.gallery-table td:nth-child(3) {
    width: 25%;
}

.gallery-table thead {
    background-color: var(--bg-darker);
    border-bottom: 1px solid var(--border-dark);
}

.gallery-table thead th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-table tbody tr {
    border-bottom: 1px solid var(--border-dark);
    transition: all var(--transition-fast);
}

.gallery-table tbody tr:hover {
    background-color: var(--bg-darker);
}

.gallery-table tbody td {
    padding: 0.875rem 1rem;
}

.table-photo-cell {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.table-photo-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.table-photo-info {
    flex: 1;
    min-width: 0;
}

.table-photo-title {
    color: var(--text-white);
    font-weight: 500;
    font-size: 0.9375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
        max-width: 150px;
    }

    .table-category-cell,
    .table-action-cell {
        color: var(--text-muted);
        font-size: 0.875rem;
    }

    .table-category-cell {
        font-weight: 500;
        color: var(--text-light);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
}

.table-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background-color: transparent;
    color: var(--text-light);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    font-size: 1rem;
}

.table-action-btn:hover {
    background-color: var(--bg-darker);
    color: var(--primary);
}

.table-action-btn.share-btn i {
    color: rgb(42, 97, 197);
}

.table-action-btn.share-btn:hover {
    color: rgb(42, 97, 197);
}

.table-action-btn.info-btn i {
    color: rgb(100, 150, 200);
}

.table-action-btn.info-btn:hover {
    color: rgb(100, 150, 200);
}

/* --- Gallery Card --- */
.gallery-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--surface-dark);
    border-radius: 1%;
    overflow: hidden;
    transition: all var(--transition-slow);
    border: 1px solid var(--text-white);
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(19, 91, 236, 0.1);
}

.gallery-card.accent-border {
    border: 1px solid var(--text-white);
}

/* --- Card Image --- */
.card-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .card-image {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.gallery-card:hover .card-overlay {
    opacity: 1;
}

.fullscreen-btn {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    color: white;
    opacity: 0;
    transform: translateY(8px);
    transition: all var(--transition-base);
}

.fullscreen-btn .material-symbols-outlined {
    font-size: 20px;
}

.gallery-card:hover .fullscreen-btn {
    opacity: 1;
    transform: translateY(0);
}

.fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* --- Card Info --- */
.card-info {
    padding: 1rem 1rem 1.25rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.25rem;
    color: var(--text-white);
}

.card-category {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 500;
    font-family: 'Inter', monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0 1rem;
    margin-top: 1rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.page-btn:hover {
    color: var(--text-white);
    background-color: var(--surface-dark);
}

.page-btn .material-symbols-outlined {
    font-size: 20px;
}

.page-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    transition: all var(--transition-fast);
}

.page-num:hover {
    background-color: var(--surface-dark);
}

.page-num.active {
    background-color: var(--primary);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.page-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.875rem;
    color: var(--text-dim);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    border-top: 1px solid var(--border-dark);
    background-color: var(--bg-dark);
    padding: 0.25rem 0.5rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: fit-content;
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

/* ============================================
   ABOUT MODAL
   ============================================ */
.about-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.about-modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a2233 0%, #111722 100%);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.about-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.about-modal-close:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.1);
}

.about-modal-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.about-modal-logo .material-symbols-outlined {
    font-size: 40px;
    color: var(--primary);
}

.about-modal-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-full);
}

.about-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.about-modal-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    letter-spacing: 0.3px;
}

.about-modal-socials {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.about-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-full);
    color: var(--text-light);
    transition: all var(--transition-fast);
    font-size: 1.5rem;
}

.about-social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-4px);
}

/* ============================================
   PHOTO INFO MODAL
   ============================================ */
.photo-info-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease;
}

.photo-info-modal.open {
    display: flex;
}

.photo-info-content {
    background: var(--surface-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    padding: 0;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

.photo-info-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.photo-info-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
}

.photo-info-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
}

.photo-info-close:hover {
    color: var(--text-white);
    background: var(--bg-darker);
}

.photo-info-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.info-thumb-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.info-thumb-wrap img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-dark);
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.info-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-dark);
}

.info-table td:first-child {
    background-color: var(--bg-darker);
    font-weight: 600;
    color: var(--text-light);
    width: 35%;
    white-space: nowrap;
}

.info-table td:last-child {
    color: var(--text-white);
    word-break: break-word;
}

.info-table tr:last-child td {
    border-bottom: none;
}

.info-vis-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.info-vis-badge.public {
    background-color: rgba(34, 197, 94, 0.15);
    color: rgb(34, 197, 94);
}

.info-vis-badge.private {
    background-color: rgba(239, 68, 68, 0.15);
    color: rgb(239, 68, 68);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.lightbox.open {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: white;
    transition: background var(--transition-fast);
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Large screens */
@media (min-width: 1024px) {
    .navbar {
        padding: 0.75rem 2.5rem;
    }

    .content-wrapper {
        padding: 2rem 2.5rem 3rem;
    }

    .footer {
        padding: 0.25rem 0.5rem;
    }
}

/* Medium screens */
@media (max-width: 1023px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .card-image {
        height: 200px;
    }
}

/* Tablet & small screens */
@media (max-width: 767px) {
    .nav-links {
        display: none;
    }

    .search-box {
        display: none;
    }

    .mobile-search-btn,
    .hamburger-btn {
        display: flex;
    }

    .mobile-menu,
    .mobile-search-bar {
        display: block;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .gallery-grid.list-view {
        display: block;
    }

    .gallery-table thead {
        display: none;
    }

    .gallery-table tbody {
        display: block;
    }

    .gallery-table tbody tr {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        margin-bottom: 1rem;
        border: 1px solid var(--border-dark);
        border-radius: var(--radius-md);
        padding: 0.5rem;
        gap: 0.5rem;
        overflow: hidden;
    }

    .table-photo-cell,
    .table-category-cell,
    .table-action-cell {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 0.5rem !important;
        border: none;
        min-width: 0;
    }

    .table-photo-cell {
        flex: 0 0 45%;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }

    .table-category-cell {
        flex: 0 0 25%;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }

    .table-action-cell {
        flex: 0 0 30%;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0.35rem;
    }

    .table-photo-cell::before,
    .table-category-cell::before,
    .table-action-cell::before {
        display: none;
    }

    .table-photo-thumb {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .table-photo-title {
        font-size: 0.75rem;
        word-break: break-word;
        max-height: 40px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .table-photo-info {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .table-category-cell {
        font-size: 0.7rem;
        word-break: break-word;
    }

    .table-action-btn {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .card-image {
        height: 160px;
    }

    .card-title {
        font-size: 0.9375rem;
    }

    .card-category {
        font-size: 0.625rem;
    }

    .card-info {
        padding: 0.75rem 0.875rem 1rem;
    }

    .section-title {
        font-size: 1.25rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card-image {
        height: 200px;
    }

    .content-wrapper {
        padding: 1rem 0.75rem 2rem;
    }

    .navbar {
        padding: 0.75rem 0.75rem;
    }

    .login-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8125rem;
    }
}

/* ============================================
   ANIMATIONS & SCROLL EFFECTS
   ============================================ */
.gallery-card {
    animation: cardFadeIn 0.5s ease both;
}

.gallery-card:nth-child(1) {
    animation-delay: 0.05s;
}

.gallery-card:nth-child(2) {
    animation-delay: 0.1s;
}

.gallery-card:nth-child(3) {
    animation-delay: 0.15s;
}

.gallery-card:nth-child(4) {
    animation-delay: 0.2s;
}

.gallery-card:nth-child(5) {
    animation-delay: 0.25s;
}

.gallery-card:nth-child(6) {
    animation-delay: 0.3s;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover glow for accent cards */
.gallery-card.accent-border:hover {
    border-left-color: var(--primary-hover);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4),
        -4px 0 20px var(--primary-glow);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}

/* Gallery loading state */
.gallery-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 1rem;
    color: var(--text-muted);
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-dark);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.gallery-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

/* Lightbox loading */
.lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lightbox-loading .loading-spinner {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

/* Selection styling */
::selection {
    background-color: rgba(19, 91, 236, 0.3);
    color: var(--text-white);
}