/* Demo Gallery Page Styles */

body {
    background-color: var(--color-secondary);
}

.demo-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1a1a1a;
}

.gallery-hero {
    background: linear-gradient(to bottom, #fff 0%, var(--color-secondary) 100%);
    padding: 100px 0 60px;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.gallery-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.gallery-hero .divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--color-primary), transparent);
    margin: 1rem auto;
}

.gallery-hero p {
    color: #666;
    font-size: 1.1rem;
}

.gallery-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--color-primary);
    display: block;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
}

.albums-section {
    padding: 60px 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 380px));
    gap: 30px;
    justify-content: center;
}

.album-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    cursor: pointer;
}

.album-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.album-preview {
    aspect-ratio: 5/4;
    overflow: hidden;
    position: relative;
}

.album-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.album-card:hover .album-preview img {
    transform: scale(1.08);
}

.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.3) 100%);
}

.album-info {
    padding: 24px;
    text-align: center;
}

.album-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.album-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.album-count {
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Photo Grid */
.photos-section {
    padding: 60px 0;
    display: none;
}

.photos-section.active {
    display: block;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px 24px;
    border-radius: 6px;
    color: #666;
    text-decoration: none;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.photo-item {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    cursor: pointer;
}

.photo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.photo-wrapper {
    padding: 8px;
}

.photo-wrapper img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 2px;
}

.photo-info {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid #f0f0f0;
}

.photo-new-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--color-primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
}

/* Separatore foto ospiti */
.guest-photos-divider {
    display: flex;
    align-items: center;
    margin: 50px 0 40px;
    gap: 20px;
}

.guest-photos-divider::before,
.guest-photos-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.15), transparent);
}

.guest-photos-divider span {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #666;
    white-space: nowrap;
}

/* Album ospiti - griglia centrata per singolo album */
.albums-grid.guest-albums {
    grid-template-columns: minmax(280px, 380px);
    justify-content: center;
}

/* Upload Button */
.upload-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.upload-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

/* Upload Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

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

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
}

.modal-body {
    padding: 24px;
}

.dropzone-area {
    border: 2px dashed var(--color-primary);
    border-radius: 8px;
    padding: 48px 24px;
    text-align: center;
    background: var(--color-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropzone-area:hover {
    background: #fff;
    border-color: var(--color-accent);
}

.dropzone-area i {
    font-size: 48px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.dropzone-area p {
    margin: 0;
    color: #666;
}

.info-alert {
    background: #e8f4fd;
    border: 1px solid #b8daff;
    border-radius: 6px;
    padding: 16px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #004085;
}

/* Footer */
.gallery-footer {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .gallery-hero h1 {
        font-size: 2rem;
    }

    .gallery-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

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

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}
