﻿

:root {
    --aurea-bg: #FAF7F2;
    --aurea-bg-soft: #F1E8DC;
    --aurea-card: #FFFFFF;
    --aurea-gold: #B6864D;
    --aurea-gold-hover: #9A713A;
    --aurea-text: #25211D;
    --aurea-muted: #7B6B5A;
    --aurea-border: #E3D7C8;
    --aurea-success: #6F7D58;
    --aurea-warn: #C88A35;
    --aurea-danger: #A94A3A;
}

* {
    letter-spacing: 0;
}

body {
    color: var(--aurea-text);
    font-family: Inter, system-ui, sans-serif;
}

.aurea-brand,
.aurea-brand-mini,
.aurea-page-title,
.aurea-section-title,
.aurea-auth-brand,
.aurea-access-card h1,
.aurea-gallery-profile h1 {
    font-family: "Cormorant Garamond", Georgia, serif;
}

.aurea-kicker {
    color: var(--aurea-gold);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.tw-shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
}

.btn-aurea {
    --bs-btn-bg: var(--aurea-gold);
    --bs-btn-border-color: var(--aurea-gold);
    --bs-btn-hover-bg: var(--aurea-gold-hover);
    --bs-btn-hover-border-color: var(--aurea-gold-hover);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    border-radius: 999px;
    font-weight: 700;
}

.btn-aurea-outline {
    --bs-btn-color: var(--aurea-text);
    --bs-btn-border-color: var(--aurea-border);
    --bs-btn-hover-bg: var(--aurea-bg-soft);
    --bs-btn-hover-border-color: var(--aurea-gold);
    border-radius: 999px;
    font-weight: 700;
}

.btn-aurea-danger,
.btn-aurea-warn {
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
}

.btn-aurea-danger {
    --bs-btn-bg: var(--aurea-danger);
    --bs-btn-border-color: var(--aurea-danger);
    --bs-btn-hover-bg: #87392d;
    --bs-btn-hover-border-color: #87392d;
}

.btn-aurea-warn {
    --bs-btn-bg: var(--aurea-warn);
    --bs-btn-border-color: var(--aurea-warn);
    --bs-btn-hover-bg: #a9712a;
    --bs-btn-hover-border-color: #a9712a;
}

.form-control,
.form-select {
    border-color: var(--aurea-border);
    border-radius: 14px;
    color: var(--aurea-text);
    padding: .78rem .95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--aurea-gold);
    box-shadow: 0 0 0 .2rem rgba(182, 134, 77, .15);
}

.form-check-input:checked {
    background-color: var(--aurea-gold);
    border-color: var(--aurea-gold);
}

.aurea-admin-body {
    background: var(--aurea-bg);
}

.aurea-mobilebar {
    align-items: center;
    background: var(--aurea-card);
    border-bottom: 1px solid var(--aurea-border);
    display: flex;
    height: 68px;
    justify-content: space-between;
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 1040;
}

.aurea-brand-mini {
    font-size: 1.8rem;
    font-weight: 700;
}

.aurea-admin-shell {
    display: flex;
    min-height: 100vh;
}

.aurea-sidebar {
    background: var(--aurea-text);
    color: #fff;
    flex: 0 0 280px;
    min-height: 100vh;
}

@media (min-width: 992px) {
    .aurea-sidebar.offcanvas-lg {
        background: var(--aurea-text) !important;
        border-right: 0 !important;
        color: #fff !important;
        flex: 0 0 280px !important;
        max-width: 280px !important;
        min-height: 100vh !important;
        width: 280px !important;
    }

    .aurea-sidebar.offcanvas-lg .offcanvas-body {
        background: transparent !important;
        display: flex !important;
        flex-direction: column !important;
        min-height: 100vh;
        width: 100%;
    }
}

.aurea-sidebar-brand {
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    padding: 2rem 1.5rem;
}

.aurea-sidebar-brand .aurea-brand {
    display: block;
    font-size: 2.4rem;
    line-height: 1;
}

.aurea-sidebar-brand small,
.aurea-sidebar-footer {
    color: rgba(255, 255, 255, .66);
}

.aurea-sidebar-nav {
    display: grid;
    gap: .4rem;
    padding: 1.25rem;
}

.aurea-sidebar-nav a {
    border-radius: 14px;
    color: rgba(255, 255, 255, .74);
    font-weight: 700;
    padding: .9rem 1rem;
    text-decoration: none;
}

.aurea-sidebar-nav a.active,
.aurea-sidebar-nav a:hover {
    background: rgba(182, 134, 77, .28);
    color: #fff;
}

.aurea-sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: auto;
    padding: 1.25rem;
}

.btn-aurea-sidebar {
    border-color: rgba(255, 255, 255, .18);
    color: #fff;
    margin-top: .75rem;
}

.aurea-admin-main {
    flex: 1;
    min-width: 0;
    padding: 2rem;
}

.aurea-admin-top {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.aurea-page-title {
    font-size: 2.4rem;
    font-weight: 700;
}

.aurea-section-title {
    font-size: 1.55rem;
    font-weight: 700;
}

.aurea-panel,
.aurea-stat-card {
    background: var(--aurea-card);
    border: 1px solid var(--aurea-border);
    border-radius: 18px;
    box-shadow: 0 18px 46px rgba(37, 33, 29, .06);
}

.aurea-panel {
    padding: 1.25rem;
}

.aurea-stat-card {
    min-height: 130px;
    padding: 1.3rem;
}

.aurea-stat-card span {
    color: var(--aurea-muted);
    display: block;
    font-weight: 700;
    margin-bottom: .8rem;
}

.aurea-stat-card strong {
    display: block;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 3rem;
    line-height: 1;
}

.aurea-table th {
    color: var(--aurea-muted);
    font-size: .78rem;
    text-transform: uppercase;
}

.aurea-table td,
.aurea-table th {
    border-color: var(--aurea-border);
    padding: 1rem;
}

.aurea-thumb {
    background: var(--aurea-bg-soft);
    border-radius: 14px;
    height: 64px;
    overflow: hidden;
    width: 64px;
}

.aurea-thumb img,
.aurea-gallery-avatar img,
.aurea-admin-photo-image img,
.aurea-photo-open img,
.aurea-upload-preview img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.aurea-badge {
    background: var(--aurea-bg-soft);
    border: 1px solid var(--aurea-border);
    border-radius: 999px;
    color: var(--aurea-muted);
    display: inline-block;
    font-size: .75rem;
    font-weight: 800;
    padding: .35rem .65rem;
}

.aurea-badge-published {
    background: rgba(111, 125, 88, .12);
    border-color: rgba(111, 125, 88, .22);
    color: var(--aurea-success);
}

.aurea-badge-blocked,
.aurea-badge-expired {
    background: rgba(169, 74, 58, .1);
    border-color: rgba(169, 74, 58, .22);
    color: var(--aurea-danger);
}

.aurea-dropzone {
    align-items: center;
    background: linear-gradient(135deg, #fff, var(--aurea-bg-soft));
    border: 2px dashed var(--aurea-border);
    border-radius: 22px;
    cursor: pointer;
    display: flex;
    min-height: 240px;
    justify-content: center;
    text-align: center;
    transition: .2s ease;
}

.aurea-dropzone.is-dragging {
    border-color: var(--aurea-gold);
    transform: scale(.995);
}

.aurea-dropzone-inner strong {
    display: block;
    font-size: 1.35rem;
}

.aurea-dropzone-inner span {
    color: var(--aurea-muted);
}

.aurea-upload-queue {
    display: grid;
    gap: .75rem;
    max-height: 280px;
    overflow: auto;
    overscroll-behavior: contain;
}

.aurea-upload-card {
    align-items: center;
    background: #fff;
    border: 1px solid var(--aurea-border);
    border-radius: 16px;
    display: flex;
    gap: 1rem;
    padding: .75rem;
}

.aurea-upload-card.is-error {
    border-color: var(--aurea-danger);
}

.aurea-upload-preview {
    border-radius: 12px;
    height: 68px;
    overflow: hidden;
    width: 68px;
}

.progress-bar {
    background-color: var(--aurea-gold);
}

.aurea-admin-photo-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.aurea-admin-photo-card {
    background: #fff;
    border: 1px solid var(--aurea-border);
    border-radius: 18px;
    cursor: grab;
    overflow: hidden;
    user-select: none;
}

.aurea-admin-photo-card.is-dragging {
    opacity: .55;
    will-change: transform;
}

.aurea-admin-photo-card.is-cover {
    border-color: var(--aurea-gold);
    box-shadow: 0 14px 34px rgba(182, 134, 77, .18);
}

.aurea-admin-photo-image {
    aspect-ratio: 4 / 3;
    background: var(--aurea-bg-soft);
    position: relative;
}

.aurea-admin-photo-image img {
    backface-visibility: hidden;
    pointer-events: none;
    -webkit-user-drag: none;
}

.aurea-cover-chip {
    background: var(--aurea-gold);
    border-radius: 999px;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    padding: .28rem .55rem;
    position: absolute;
    right: .65rem;
    top: .65rem;
}

.aurea-auth-body,
.aurea-gallery-body {
    background: var(--aurea-bg);
}

.aurea-auth-screen {
    align-items: center;
    background:
        radial-gradient(circle at top left, rgba(182, 134, 77, .2), transparent 32rem),
        var(--aurea-bg);
    display: flex;
    min-height: 100vh;
    justify-content: center;
    padding: 1.5rem;
}

.aurea-auth-card {
    background: #fff;
    border: 1px solid var(--aurea-border);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(37, 33, 29, .12);
    max-width: 460px;
    padding: 2rem;
    width: 100%;
}

.aurea-auth-brand {
    font-size: 4rem;
    line-height: .9;
}

.aurea-link {
    color: var(--aurea-gold-hover);
    font-weight: 700;
    text-decoration: none;
}

.aurea-access-screen {
    align-items: center;
    background:
        linear-gradient(rgba(37, 33, 29, .48), rgba(37, 33, 29, .64)),
        var(--cover-url, linear-gradient(135deg, #2d2823, #6b5d4c));
    background-position: center;
    background-size: cover;
    display: flex;
    min-height: 100vh;
    justify-content: center;
    overflow: hidden;
    padding: 1.5rem;
    position: relative;
}

.aurea-access-screen::before {
    background: inherit;
    content: "";
    filter: blur(18px);
    inset: -24px;
    position: absolute;
    transform: scale(1.04);
}

.aurea-access-overlay {
    background: rgba(37, 33, 29, .45);
    inset: 0;
    position: absolute;
}

.aurea-access-card {
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 28px;
    max-width: 520px;
    overflow: hidden;
    padding: clamp(1.4rem, 4vw, 2.5rem);
    position: relative;
    text-align: center;
    width: min(100%, 520px);
}

.aurea-access-card h1 {
    font-size: clamp(2.05rem, 12vw, 3rem);
    font-weight: 700;
    hyphens: auto;
    line-height: 1;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-wrap: balance;
    word-break: break-word;
}

.aurea-access-subtitle,
.aurea-gallery-subtitle {
    color: var(--aurea-muted);
    font-size: 1.1rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.aurea-access-client {
    color: var(--aurea-text);
    font-weight: 800;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.aurea-gallery-hero {
    align-items: end;
    background:
        linear-gradient(rgba(37, 33, 29, .25), rgba(37, 33, 29, .62)),
        var(--cover-url, linear-gradient(135deg, #574b40, #b6864d));
    background-position: center;
    background-size: cover;
    color: #fff;
    display: flex;
    min-height: clamp(420px, 56vh, 620px);
    padding: 6rem 0 3rem;
    position: relative;
}

.aurea-gallery-profile {
    max-width: 760px;
}

.aurea-gallery-profile h1 {
    font-size: 3.2rem;
    font-weight: 700;
    hyphens: auto;
    line-height: .95;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-wrap: balance;
    word-break: break-word;
}

.aurea-gallery-profile .aurea-kicker,
.aurea-gallery-profile .aurea-gallery-subtitle {
    color: rgba(255, 255, 255, .84);
}

.aurea-gallery-avatar {
    background: var(--aurea-bg-soft);
    border: 4px solid rgba(255, 255, 255, .78);
    border-radius: 999px;
    height: 116px;
    margin-bottom: 1rem;
    overflow: hidden;
    width: 116px;
}

.aurea-gallery-content {
    padding-bottom: 7rem;
    padding-top: 2rem;
}

.aurea-gallery-message,
.aurea-gallery-toolbar {
    background: #fff;
    border: 1px solid var(--aurea-border);
    border-radius: 20px;
    box-shadow: 0 18px 46px rgba(37, 33, 29, .06);
    margin-bottom: 1.25rem;
    padding: 1.25rem;
}

.aurea-gallery-toolbar {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.aurea-photo-grid {
    display: grid;
    gap: .85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aurea-photo-grid:has(.aurea-empty-gallery) {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .aurea-page-title {
        font-size: 3.25rem;
    }

    .aurea-access-card h1 {
        font-size: clamp(2.8rem, 7vw, 4.8rem);
    }

    .aurea-gallery-profile h1 {
        font-size: clamp(3.4rem, 7vw, 6rem);
    }

    .aurea-photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .aurea-photo-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.aurea-access-card h1.aurea-title-compact {
    font-size: clamp(1.65rem, 5vw, 2.6rem);
    line-height: 1.05;
}

.aurea-gallery-profile h1.aurea-title-compact {
    font-size: clamp(2.25rem, 5vw, 3.6rem);
    line-height: 1;
}

.aurea-photo-card {
    aspect-ratio: 4 / 5;
    background: var(--aurea-bg-soft);
    border-radius: 18px;
    contain: paint;
    display: block;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.aurea-photo-open {
    border: 0;
    display: block;
    height: 100%;
    padding: 0;
    width: 100%;
}

.aurea-photo-open img {
    backface-visibility: hidden;
    background: var(--aurea-bg-soft);
    display: block;
}

.aurea-photo-actions {
    align-items: center;
    background: linear-gradient(transparent, rgba(37, 33, 29, .74));
    bottom: 0;
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
    left: 0;
    opacity: 0;
    padding: 3rem .7rem .7rem;
    position: absolute;
    right: 0;
    transition: .18s ease;
}

.aurea-photo-card:hover .aurea-photo-actions,
.aurea-photo-card:focus-within .aurea-photo-actions {
    opacity: 1;
}

.aurea-photo-select {
    display: none;
    left: .7rem;
    position: absolute;
    top: .7rem;
    z-index: 2;
}

.aurea-photo-select input {
    height: 1.35rem;
    width: 1.35rem;
}

.aurea-photo-grid.is-selecting .aurea-photo-select {
    display: block;
}

.aurea-selection-bar {
    align-items: center;
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--aurea-border);
    border-radius: 22px;
    bottom: 1rem;
    box-shadow: 0 18px 48px rgba(37, 33, 29, .14);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    left: 50%;
    max-width: 720px;
    opacity: 0;
    padding: .8rem;
    pointer-events: none;
    position: fixed;
    transform: translate(-50%, 24px);
    transition: .2s ease;
    width: calc(100% - 2rem);
    z-index: 1030;
}

.aurea-selection-bar.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.aurea-modal {
    border: 1px solid var(--aurea-border);
    border-radius: 22px;
}

.aurea-modal-text {
    color: var(--aurea-muted);
    font-size: 1rem;
}

.aurea-lightbox {
    align-items: center;
    background: rgba(13, 12, 11, .96);
    display: flex;
    justify-content: center;
    position: relative;
}

.aurea-lightbox img {
    max-height: 92vh;
    max-width: 92vw;
    object-fit: contain;
}

.aurea-lightbox-close {
    position: absolute;
    right: 1.25rem;
    top: 1.25rem;
    z-index: 2;
}

.aurea-lightbox-nav {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    color: #fff;
    font-size: 3rem;
    height: 64px;
    line-height: 1;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 64px;
    z-index: 2;
}

.aurea-lightbox-nav.prev {
    left: 1rem;
}

.aurea-lightbox-nav.next {
    right: 1rem;
}

.aurea-empty-gallery {
    background: #fff;
    border: 1px solid var(--aurea-border);
    border-radius: 18px;
    color: var(--aurea-muted);
    display: block;
    padding: 3rem;
    text-align: center;
}

.aurea-admin-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
}

.aurea-admin-actions .btn,
.aurea-admin-actions form {
    flex: 0 0 auto;
}

.aurea-gallery-admin-header {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.aurea-gallery-admin-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
}

.aurea-gallery-admin-header-actions .btn {
    min-width: 128px;
}

@media (max-width: 991.98px) {
    .aurea-admin-shell {
        display: block;
    }

    .aurea-sidebar {
        min-height: auto;
    }

    .aurea-admin-main {
        padding: 1rem;
    }

    .aurea-admin-top {
        align-items: flex-start;
    }
}

@media (max-width: 575.98px) {
    .aurea-panel {
        padding: 1rem;
    }

    .aurea-gallery-toolbar,
    .aurea-selection-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .aurea-gallery-admin-header {
        align-items: stretch;
        flex-direction: column;
    }

    .aurea-gallery-admin-header-actions,
    .aurea-gallery-admin-header-actions .btn {
        width: 100%;
    }

    .aurea-photo-actions {
        opacity: 1;
    }
}
