/* Di Giorno Fiori - Custom CSS Overrides */

body {
    font-family: 'Inter', sans-serif;
}

.font-display {
    font-family: 'Playfair Display', serif;
}

.shell {
    width: min(1380px, calc(100% - 28px));
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .shell {
        width: min(1380px, calc(100% - 54px));
    }
}

.editorial-shadow {
    box-shadow: 0 28px 80px rgba(24, 42, 30, 0.10);
}

.line-accent::before {
    content: '';
    display: block;
    width: 58px;
    height: 1px;
    background: currentColor;
    opacity: .45;
    margin-bottom: 18px;
}

/* Form inputs */
input[type="text"],
input[type="email"],
textarea {
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #506458;
    box-shadow: 0 0 0 3px rgba(80, 100, 88, 0.1);
}

/* Button hover animations */
.hover\:-translate-y-0.5:hover {
    transition: transform 0.2s ease;
}

/* Gallery image hover */
img.transition.duration-500 {
    transition: transform 0.5s ease;
}

img.transition.duration-500:hover {
    transform: scale(1.05);
}

/* Admin-specific */
.admin-sidebar-shell {
    width: 17.5rem;
    flex: 0 0 17.5rem;
    background: #f5f2eb;
    border-right: 1px solid #ddd6ca;
}

.admin-sidebar-panel {
    display: flex;
    height: 100%;
    flex-direction: column;
    padding: 1.5rem 1rem;
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
    padding: 0 0.35rem 1rem;
    border-bottom: 1px solid #ddd6ca;
}

.admin-sidebar-mark {
    display: inline-flex;
    height: 2.7rem;
    width: 2.7rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #d5cec2;
    background: #ffffff;
    color: #51675b;
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    line-height: 1;
}

.admin-sidebar-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    line-height: 1;
    color: #31463a;
}

.admin-sidebar-subtitle {
    margin-top: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7d9083;
}

.admin-sidebar-user {
    margin: 0 0.35rem 1rem;
    padding: 0 0 1rem;
    border-bottom: 1px solid #e4ddd2;
}

.admin-sidebar-user-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7f9285;
}

.admin-sidebar-user-name {
    margin-top: 0.4rem;
    font-size: 1rem;
    font-weight: 700;
    color: #2f4337;
}

.admin-sidebar-user-role {
    margin-top: 0.18rem;
    font-size: 0.82rem;
    color: #66786f;
    text-transform: capitalize;
}

.admin-sidebar-section-label {
    margin: 0 0.35rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7f9285;
}

.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.admin-header {
    background: white;
    border-bottom: 1px solid #d8dfd9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid transparent;
    border-radius: 0.95rem;
    padding: 0.8rem 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.admin-nav-item.active {
    border-color: #d7cfc3;
    background: #ece6dc;
    box-shadow: none;
}

.admin-nav-item:hover {
    border-color: #ddd5c8;
    background-color: #eee8de;
}

.admin-nav-icon {
    display: inline-flex;
    height: 2.35rem;
    width: 2.35rem;
    flex: 0 0 2.35rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: #ffffff;
    color: #4f6458;
    box-shadow: inset 0 0 0 1px rgba(47, 67, 55, 0.1);
}

.admin-nav-icon svg {
    height: 1rem;
    width: 1rem;
}

.admin-nav-title {
    flex: 1 1 auto;
    font-size: 0.92rem;
    font-weight: 600;
    color: #2f4337;
}

.admin-nav-badge {
    display: inline-flex;
    min-width: 1.8rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffffff;
    padding: 0.24rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #2f4337;
    box-shadow: inset 0 0 0 1px rgba(47, 67, 55, 0.1);
}

.admin-nav-badge.is-alert {
    background: #e74c3c;
    color: #ffffff;
    box-shadow: none;
}

.admin-sidebar-footer {
    margin-top: auto;
    padding: 1rem 0.35rem 0;
    border-top: 1px solid #e4ddd2;
}

.admin-sidebar-credit {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7a8d80;
    text-decoration: none;
}

.admin-sidebar-credit:hover {
    color: #2f4337;
}

.admin-logout-button {
    width: 100%;
    border: 0;
    border-radius: 0.9rem;
    background: #2f4337;
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    transition: background-color 0.2s ease;
}

.admin-logout-button:hover {
    background: #24352c;
}

.gallery-thumbnail {
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.5rem;
}

.media-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.media-item:hover .media-overlay {
    opacity: 1;
}

.media-overlay {
    position: absolute;
    inset: 0;
    background: rgba(47, 67, 55, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Message indicators */
.unread-badge {
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.message-card {
    border-left: 4px solid #d8dfd9;
    transition: all 0.2s ease;
}

.message-card.unread {
    border-left-color: #2f4337;
    background: #f8f7f3;
}

.message-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Upload zone */
.upload-zone {
    border: 2px dashed #d8dfd9;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.upload-zone.dragover {
    border-color: #2f4337;
    background: rgba(47, 67, 55, 0.05);
}

.progress-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2f4337, #506458);
    transition: width 0.3s ease;
}

/* Alerts */
.alert {
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-1rem);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}
