/**
 * MG2025 Theme - Photo Detail Styles
 * Stili specifici per pagina dettaglio foto
 * Layout: sidebar info + foto ingrandita
 */

/* ============================================
   PHOTO DETAIL LAYOUT
   ============================================ */

.mg2025-photo-detail {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 100vh;
    background: var(--mg-bg);
    color: var(--mg-text);
    gap: 0;
}

/* ============================================
   PHOTO SIDEBAR
   ============================================ */

.mg2025-photo-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: var(--mg-card);
    border-right: 1px solid var(--mg-border);
    padding: 0;
}

.mg2025-photo-info {
    padding: 32px 24px;
    background: var(--mg-card);
}

/* ============================================
   PHOTO HEADER
   ============================================ */

.mg2025-photo-header {
    margin-bottom: 24px;
}

.mg2025-photo-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--mg-text);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.mg2025-photo-subtitle {
    font-size: 16px;
    color: var(--mg-muted);
    margin: 0 0 16px 0;
}

.mg2025-photo-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.mg2025-photo-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--mg-muted);
}

.mg2025-photo-meta-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.mg2025-photo-meta-text {
    flex: 1;
}

/* ============================================
   PHOTO DESCRIPTION
   ============================================ */

.mg2025-photo-description {
    margin-bottom: 24px;
    padding: 20px 0;
    border-top: 1px solid var(--mg-border);
    border-bottom: 1px solid var(--mg-border);
}

.mg2025-photo-description p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--mg-text);
    margin: 0 0 12px 0;
}

.mg2025-photo-description p:last-child {
    margin-bottom: 0;
}

/* ============================================
   PHOTO STATS
   ============================================ */

.mg2025-photo-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px 0;
    border-top: 1px solid var(--mg-border);
    border-bottom: 1px solid var(--mg-border);
}

.mg2025-photo-stat {
    text-align: center;
}

.mg2025-photo-stat-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--mg-text);
    margin-bottom: 4px;
}

.mg2025-photo-stat-label {
    font-size: 12px;
    color: var(--mg-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   PHOTO ACTIONS
   ============================================ */

.mg2025-photo-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.mg2025-photo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 160ms ease-out;
    text-decoration: none;
    width: 100%;
}

.mg2025-photo-btn-like {
    background: var(--mg-primary);
    color: var(--mg-bg);
}

.mg2025-photo-btn-like:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.mg2025-photo-btn-like.liked {
    background: var(--mg-accent);
}

.mg2025-photo-btn-share {
    background: transparent;
    color: var(--mg-text);
    border: 1px solid var(--mg-border);
}

.mg2025-photo-btn-share:hover {
    background: var(--mg-hover);
}

.mg2025-photo-btn-download {
    background: var(--mg-success);
    color: var(--mg-bg);
}

.mg2025-photo-btn-download:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.mg2025-photo-btn-icon {
    width: 16px;
    height: 16px;
}

.mg2025-photo-btn-text {
    font-size: 14px;
}

/* ============================================
   PHOTO TAGS
   ============================================ */

.mg2025-photo-tags {
    margin-bottom: 24px;
}

.mg2025-photo-tags-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--mg-text);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mg2025-photo-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mg2025-photo-tag {
    display: inline-block;
    padding: 4px 8px;
    background: var(--mg-hover);
    color: var(--mg-text);
    font-size: 12px;
    border-radius: 0;
    border: 1px solid var(--mg-border);
    text-decoration: none;
    transition: all 160ms ease-out;
}

.mg2025-photo-tag:hover {
    background: var(--mg-border);
    color: var(--mg-text);
}

/* ============================================
   PHOTO AUTHOR
   ============================================ */

.mg2025-photo-author {
    margin-bottom: 24px;
    padding: 20px 0;
    border-top: 1px solid var(--mg-border);
}

.mg2025-photo-author-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--mg-text);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mg2025-photo-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mg2025-photo-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--mg-border);
}

.mg2025-photo-author-details {
    flex: 1;
}

.mg2025-photo-author-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--mg-text);
    margin: 0 0 2px 0;
}

.mg2025-photo-author-role {
    font-size: 12px;
    color: var(--mg-muted);
    margin: 0;
}

.mg2025-photo-author-btn {
    padding: 6px 12px;
    background: transparent;
    color: var(--mg-text);
    border: 1px solid var(--mg-border);
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 160ms ease-out;
    text-decoration: none;
}

.mg2025-photo-author-btn:hover {
    background: var(--mg-hover);
}

/* ============================================
   PHOTO GALLERY
   ============================================ */

.mg2025-photo-gallery {
    padding: 32px;
    background: var(--mg-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.mg2025-photo-container {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mg2025-photo-image {
    max-width: 100%;
    max-height: calc(100vh - 100px);
    object-fit: contain;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.mg2025-photo-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 160ms ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.mg2025-photo-navigation:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.mg2025-photo-nav-prev {
    left: 20px;
}

.mg2025-photo-nav-next {
    right: 20px;
}

.mg2025-photo-nav-icon {
    width: 20px;
    height: 20px;
}

/* ============================================
   PHOTO ZOOM CONTROLS
   ============================================ */

.mg2025-photo-zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.mg2025-photo-zoom-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 160ms ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mg2025-photo-zoom-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.mg2025-photo-zoom-icon {
    width: 16px;
    height: 16px;
}

/* ============================================
   RESPONSIVE LAYOUT
   ============================================ */

/* Desktop XL (≥1440px) */
@media (min-width: 1440px) {
    .mg2025-photo-detail {
        grid-template-columns: 340px 1fr;
    }
}

/* Tablet (768-991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .mg2025-photo-detail {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    
    .mg2025-photo-sidebar {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--mg-border);
    }
    
    .mg2025-photo-gallery {
        padding: 20px;
    }
}

/* Mobile L (480-767px) */
@media (min-width: 480px) and (max-width: 767px) {
    .mg2025-photo-info {
        padding: 20px 16px;
    }
    
    .mg2025-photo-gallery {
        padding: 16px;
    }
    
    .mg2025-photo-navigation {
        width: 32px;
        height: 32px;
    }
    
    .mg2025-photo-nav-prev {
        left: 10px;
    }
    
    .mg2025-photo-nav-next {
        right: 10px;
    }
}

/* Mobile S (<480px) */
@media (max-width: 479px) {
    .mg2025-photo-info {
        padding: 16px 12px;
    }
    
    .mg2025-photo-title {
        font-size: 20px;
    }
    
    .mg2025-photo-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .mg2025-photo-gallery {
        padding: 12px;
    }
    
    .mg2025-photo-navigation {
        width: 28px;
        height: 28px;
    }
    
    .mg2025-photo-nav-icon {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.mg2025-photo-image:focus {
    outline: 2px solid var(--mg-accent);
    outline-offset: 4px;
}

.mg2025-photo-navigation:focus {
    outline: 2px solid var(--mg-accent);
    outline-offset: 2px;
}

.mg2025-photo-zoom-btn:focus {
    outline: 2px solid var(--mg-accent);
    outline-offset: 2px;
}

/* ============================================
   LOADING STATES
   ============================================ */

.mg2025-photo-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: var(--mg-muted);
    font-size: 14px;
}

.mg2025-photo-loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--mg-border);
    border-top: 2px solid var(--mg-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}















