/* ==========================================
   ARTWORK DETAIL — FINAL (CLEAN & STABLE)
========================================== */

.artwork-detail-container {
    max-width: var(--container-max-width, 1200px);
    margin: 0 auto;
    padding: 0 10px 40px;
}

.artwork-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--grid-gap-large, 60px);
    align-items: start;
    margin-bottom: 50px;
}



/* ================= IMAGE ================= */

.artwork-detail-image img {
    width: 100%;
    max-width: 520px;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.5s ease;
    cursor: zoom-in;
}

.artwork-detail-image:hover img {
    transform: scale(1.03);
}

/* Lightbox */
.img-enlarged {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: zoom-out;
}

.img-enlarged img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* ================= TEXT FLOW ================= */

.artwork-detail-info h1 {
    max-width: 620px;
    letter-spacing: -0.01em;
}

/* GLOBAL SPACING SYSTEM */
.artwork-detail-info > * + * {
    margin-top: 12px;
}

/* ================= PARAGRAPHS ================= */

.section-text p {
    margin: 0;
}

.section-text p + p {
    margin-top: 14px;
}

/* ================= TAGS (LAYOUT ONLY) ================= */

.artwork-tags {
    margin-bottom: 24px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ================= ARTIST ================= */

.detail-artist-block {
    margin: 36px 0;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.artist-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.artist-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.artist-name {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--color-text-primary);
}

/* spacing label → name */
.artist-link .label-caps {
    margin-bottom: 6px;
    display: block;
}

.artist-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
}

.artist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.detail-stats {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin: 36px 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-value {
    font-size: 1.1rem;
    font-family: var(--font-serif);
}

/* ================= BACK LINK ================= */

.detail-back {
    margin-top: 20px;
    margin-bottom: 30px;
}

/* ================= COMMENTS WRAPPER ================= */

.detail-comments-section {
    max-width: 650px;
    margin-top: 40px;
    margin-bottom: 0;
}

.view-all-comments {
    margin-top: 40px;
    padding-top: 20px;
}

/* ================= LIKE SYSTEM ================= */

.like-wrapper {
    position: relative;
    display: inline-block;
}

.like-error {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    font-size: 1.1rem;
    font-family: var(--font-serif);
    color: rgba(122, 31, 42, 0.75);
    white-space: nowrap;

    opacity: 0;
    transform: translateY(-4px);

    transition: all 0.3s ease;
    pointer-events: none;
}

.like-error.active {
    opacity: 1;
    transform: translateY(0);
}

.detail-report {
    margin-top: 1.2rem;
    display: flex;
    justify-content: flex-end;
}

.report-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.report-action-link {
    text-decoration: none;
    color: var(--color-text-primary); /* Или цвета на числата ти */
    transition: transform 0.2s ease, color 0.2s ease;
    display: inline-block;
    line-height: 1;
}

.report-action-link:hover {
    color: #cc0000; /* Цвят при ховър */
    transform: scale(1.2);
}

.report-icon {
    font-size: 1.2rem; /* Малко по-голямо, за да отговаря на височината на числата */
    display: block;
}

.stat-report {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.text-muted {
    margin-bottom: 20px;
}

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

@media (max-width: 980px) {
    .artwork-detail-layout {
        grid-template-columns: 1fr;
    }

    .artwork-detail-image img {
        max-width: 100%;
    }
}