/* 
 * Image Detail Page Styles
 */

.detail-main {
    padding-top: 4rem;
    padding-bottom: 4rem;
    min-height: calc(100vh - var(--nav-height) - 100px);
}

.detail-container {
    max-width: 1200px;
}

.detail-header {
    text-align: center;
    margin-bottom: 3rem;
}

.detail-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.detail-meta {
    margin-bottom: 1.5rem;
}

.detail-date {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.detail-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.tag-pill:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
    background: var(--bg-hover);
}

.detail-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #050505; /* Deep black for image backdrop */
    margin-bottom: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.image-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-hover) 50%, var(--bg-surface) 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
    z-index: 1;
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.detail-image {
    width: 100%;
    height: auto;
    max-height: 85vh; /* Keep it mostly in viewport */
    object-fit: contain;
    position: relative;
    z-index: 2;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.detail-image.loaded {
    opacity: 1;
}

.detail-image.loaded + .image-skeleton {
    display: none;
}

.detail-description {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.detail-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

/* Responsive Overrides for detail page */
@media (max-width: 768px) {
    .detail-header h1 {
        font-size: 2rem;
    }
    
    .detail-main {
        padding-top: 2rem;
    }
    
    .detail-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .detail-nav .btn {
        width: 100%;
    }
}
