/**
 * Photo of the Month Template Styles
 * Matches the existing static POTM page design.
 * @package LC_Award_Management
 * @since   2.27.13
 */

/* ── Wrapper ────────────────────────────────────────────────────────────── */
.lc-potm-wrap {
    max-width: 1140px;
    margin: 30px auto 60px;
    padding: 0 24px;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
}

/* ── Header row: intro text + At a Glance ───────────────────────────────── */
.lc-potm-header {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    margin-bottom: 36px;
}
.lc-potm-header-text {
    flex: 1;
    min-width: 0;
}
.lc-potm-title {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.5px;
    margin: 0 0 18px;
    line-height: 1.25;
    text-transform: uppercase;
}
.lc-potm-intro {
    font-size: 15px;
    line-height: 1.75;
    color: #333;
    margin: 0;
}
.lc-potm-intro a {
    color: inherit;
    text-decoration: none;
}
.lc-potm-intro strong a {
    color: #111;
}

/* ── At a Glance panel ──────────────────────────────────────────────────── */
.lc-potm-glance {
    width: 210px;
    flex-shrink: 0;
    padding-top: 4px;
}
.lc-potm-glance-year {
    font-size: 52px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 0;
}
.lc-potm-glance-month {
    font-size: 22px;
    font-weight: 700;
    color: #555;
    letter-spacing: 2px;
    margin-bottom: 4px;
}
.lc-potm-glance-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #888;
    border-bottom: 2px solid #222;
    padding-bottom: 8px;
    margin-bottom: 12px;
}
.lc-potm-glance-rows {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.lc-potm-glance-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #333;
    gap: 8px;
}
.lc-potm-glance-val {
    font-weight: 700;
    color: #c0392b;   /* amber/accent — award colour */
    white-space: nowrap;
}
.lc-potm-glance-val--plain {
    color: #222;
}
.lc-potm-glance-positions {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

/* ── Winner cards ───────────────────────────────────────────────────────── */
.lc-potm-winners {
    display: grid;
    grid-template-columns: 1.45fr 1.25fr 1fr;
    gap: 12px;
    margin-bottom: 48px;
    align-items: start;
}
.lc-potm-winner {
    background: #f8f8f8;
    border: 1px solid #e8e8e8;
    padding: 20px 18px 18px;
    border-radius: 3px;
}

/* Large ordinal number (1st / 2nd / 3rd) */
.lc-potm-pos-num {
    font-size: 72px;
    font-weight: 900;
    line-height: 1;
    color: #ccc;
    letter-spacing: -3px;
    margin-bottom: 0;
}
.lc-potm-winner--1st .lc-potm-pos-num { font-size: 80px; }
.lc-potm-winner--3rd .lc-potm-pos-num { font-size: 60px; }

.lc-potm-pos-label {
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 700;
    color: #999;
    margin-bottom: 10px;
}
.lc-potm-winner-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}
.lc-potm-winner-by {
    display: block;
    font-weight: 400;
    color: #555;
}
.lc-potm-winner-img-link {
    display: block;
    margin-bottom: 12px;
}
.lc-potm-winner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Score table */
.lc-potm-score-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.lc-potm-score-table td {
    padding: 5px 8px;
    border: 1px solid #ddd;
    vertical-align: middle;
}
.lc-potm-score-table tr:first-child td {
    background: #fff;
    font-weight: 600;
}
.lc-potm-score-table td:last-child {
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

/* ── Gallery section ────────────────────────────────────────────────────── */
.lc-potm-gallery-section {
    border-top: 2px solid #eee;
    padding-top: 36px;
}
.lc-potm-gallery-title {
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px;
}
.lc-potm-gallery-intro {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 24px;
    max-width: 900px;
}

/* Mosaic grid — 5 columns on desktop, responsive */
.lc-potm-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}
.lc-potm-gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: block;
    text-decoration: none;
    background: #f0f0f0;
}
.lc-potm-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.lc-potm-gallery-item:hover img {
    transform: scale(1.07);
}
.lc-potm-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lc-potm-gallery-item:hover .lc-potm-gallery-overlay {
    opacity: 1;
}
.lc-potm-gallery-cat {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3px;
}
.lc-potm-gallery-name {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

/* ── Empty state ────────────────────────────────────────────────────────── */
.lc-potm-empty {
    padding: 40px 0;
    color: #888;
    font-size: 15px;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .lc-potm-header {
        flex-direction: column;
        gap: 24px;
    }
    .lc-potm-glance {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px 24px;
        align-items: baseline;
    }
    .lc-potm-glance-label { width: 100%; }
    .lc-potm-winners {
        grid-template-columns: 1fr;
    }
    .lc-potm-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 600px) {
    .lc-potm-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .lc-potm-title {
        font-size: 20px;
    }
}
