/* UN Looks — Frontend styles */

/* ── Look detail ────────────────────────────────────────────────────────── */

.un-look-detail {
    max-width: 1000px;
    margin: 0 auto;
}

.un-look-detail__header {
    margin-bottom: 24px;
}

.un-look-detail__title {
    font-size: 2em;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.2;
}

.un-look-featured-badge {
    color: #e8a800;
    font-size: 0.7em;
    vertical-align: middle;
    margin-left: 8px;
}

.un-look-detail__meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    color: #666;
    font-size: 0.9em;
}

.un-look-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.un-look-difficulty::before {
    content: "◆ ";
    font-size: 0.7em;
}

/* ── Image slideshow ─────────────────────────────────────────────────────── */

.un-look-slideshow {
    position: relative;
    margin-bottom: 24px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
}

.un-look-slideshow__track {
    position: relative;
}

.un-look-slideshow__slide {
    display: none;
}
.un-look-slideshow__slide:first-child {
    display: block;
}
.un-look-slideshow__slide img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    display: block;
}

.un-slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.45);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.4em;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 2;
    transition: background .2s;
}
.un-slideshow-arrow:hover {
    background: rgba(0,0,0,.7);
}
.un-slideshow-prev { left: 12px; }
.un-slideshow-next { right: 12px; }

.un-slideshow-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.un-slideshow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s;
}
.un-slideshow-dot.is-active {
    background: #fff;
}

/* ── Two-column layout ───────────────────────────────────────────────────── */

.un-look-detail__two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.un-look-detail__two-col h2 {
    font-size: 1.1em;
    font-weight: 700;
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #f0f0f0;
}

.un-look-prose {
    color: #333;
    line-height: 1.65;
    font-size: 0.95em;
}

.un-look-steps {
    padding-left: 1.2em;
    margin: 0;
}
.un-look-steps li {
    margin-bottom: 8px;
    line-height: 1.5;
}

@media (max-width: 680px) {
    .un-look-detail__two-col {
        grid-template-columns: 1fr;
    }
}

/* ── Author box ──────────────────────────────────────────────────────────── */

.un-look-author-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 28px;
}

.un-look-author-box__avatar {
    position: relative;
    flex-shrink: 0;
}

.un-look-author-box__avatar img {
    border-radius: 50%;
    display: block;
}

.un-look-rank-badge {
    position: absolute;
    top: -4px;
    left: -8px;
    background: #2271b1;
    color: #fff;
    font-size: 0.65em;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.un-look-author-box__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.un-look-author-box__name {
    font-size: 1em;
    font-weight: 600;
}

.un-look-author-box__link {
    font-size: 0.9em;
}

/* ── Tips & Tricks ───────────────────────────────────────────────────────── */

.un-look-tips {
    background: #fffbf0;
    border: 1px solid #f0e0a0;
    border-radius: 8px;
    padding: 18px 24px;
    margin-bottom: 28px;
}

.un-look-tips h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1em;
    font-weight: 700;
    /* !important: Elementor's WC My Account widget forces margin-top: 30px on
       h2:first-of-type with spec 0,5,1; targeted override keeps the tips box
       balanced regardless of which h2 comes first in the account content. */
    margin: 0 0 10px !important;
    color: #8a6000;
}

.un-look-tips__icon {
    flex-shrink: 0;
    color: #8a6000;
}

.un-look-tips .un-look-prose,
.un-look-tips .un-look-prose p {
    margin: 0;
}

/* ── Social bar ──────────────────────────────────────────────────────────── */

.un-look-social-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 32px;
}

.un-look-social-bar__stats {
    display: flex;
    gap: 16px;
}

.un-social-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
    color: #555;
}

.un-social-icon {
    font-size: 1.1em;
}

.un-look-social-bar__share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.un-share-label {
    font-size: 0.85em;
    color: #888;
}

.un-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #444;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.un-share-btn:hover {
    background: #2271b1;
    color: #fff;
}

/* ── Linked collection section ───────────────────────────────────────────── */

.un-look-collection {
    margin-bottom: 40px;
}
.un-look-collection h2 {
    font-size: 1.2em;
    font-weight: 700;
    margin: 0 0 16px;
}

/* ── Look card ───────────────────────────────────────────────────────────── */

.un-look-card {
    border: 1px solid #e5e7ea;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s;
}
.un-look-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

.un-look-card__image-link {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}

.un-look-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.un-look-card:hover .un-look-card__image {
    transform: scale(1.04);
}

.un-look-card__image--placeholder {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.un-look-card__body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.un-look-card__title {
    font-size: 0.95em;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}
.un-look-card__title a {
    color: inherit;
    text-decoration: none;
}
.un-look-card__title a:hover {
    text-decoration: underline;
}

.un-look-card__author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82em;
    color: #666;
}
.un-look-card__author img {
    border-radius: 50%;
}

.un-look-card__cta {
    margin-top: auto;
    font-size: 0.85em;
    text-align: center;
    display: block;
}

/* ── Linked looks widget ─────────────────────────────────────────────────── */

.un-linked-looks {
    margin-top: 32px;
}

.un-linked-looks__title {
    font-size: 1.3em;
    font-weight: 600;
    margin: 0 0 16px;
}

.un-linked-looks__grid {
    display: grid;
    gap: 20px;
}

.un-linked-looks.layout-grid .un-linked-looks__grid {
    grid-template-columns: repeat(3, 1fr);
}

.un-linked-looks.layout-list .un-linked-looks__grid {
    grid-template-columns: 1fr;
}
.un-linked-looks.layout-list .un-look-card {
    flex-direction: row;
}
.un-linked-looks.layout-list .un-look-card__image-link {
    width: 100px;
    aspect-ratio: unset;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .un-linked-looks.layout-grid .un-linked-looks__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .un-linked-looks.layout-grid .un-linked-looks__grid {
        grid-template-columns: 1fr;
    }
}

/* ── Status badges (shared admin + frontend) ─────────────────────────────── */

.un-look-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    white-space: nowrap;
}
.un-look-badge--draft     { background: #f0f0f0; color: #555; }
.un-look-badge--pending   { background: #fff3cd; color: #856404; }
.un-look-badge--approved  { background: #d4edda; color: #155724; }
.un-look-badge--denied    { background: #f8d7da; color: #721c24; }
.un-look-badge--planned   { background: #d1ecf1; color: #0c5460; }
.un-look-badge--published { background: #d4edda; color: #155724; }

.un-denial-reason {
    display: block;
    font-style: italic;
    font-size: 0.8em;
    color: #721c24;
    margin-top: 3px;
}

/* ── My Looks (My Account) ───────────────────────────────────────────────── */

.un-my-looks__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.un-my-looks__header h2 {
    margin: 0;
}

/* ── Preview bar ─────────────────────────────────────────────────────────── */

.un-look-preview-bar {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,.97);
    border-top: 2px solid #e5e7ea;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100;
    box-shadow: 0 -2px 12px rgba(0,0,0,.08);
}
