/* ============================================================
   ACM Quarterly Housing Market Reviews — Stylesheet v1.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Rajdhani:wght@400;500;600;700&display=swap');

.acm-qr-fullwidth {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    margin-left: -50vw !important;
    background: #07080A !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    font-family: 'Rajdhani', sans-serif;
    color: #E8E0D0;
}

/* ── Red ACM Banner Header ── */
.acm-qr-header {
    background: linear-gradient(135deg, #6B0000 0%, #8B0000 40%, #7A0000 100%);
    border-bottom: 3px solid #C9A84C;
    padding: 28px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.acm-qr-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(0,0,0,0.04) 40px, rgba(0,0,0,0.04) 80px);
    pointer-events: none;
}
.acm-qr-brand  { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: rgba(232,224,208,0.65); margin-bottom: 8px; }
.acm-qr-title  { font-size: 28px; font-weight: 700; color: #FFFFFF; letter-spacing: 1px; text-transform: uppercase; line-height: 1.1; margin: 0; }
.acm-qr-sub    { font-size: 11px; color: rgba(232,224,208,0.55); letter-spacing: 2px; text-transform: uppercase; margin-top: 6px; }
.acm-qr-byline { border: 1px solid rgba(201,168,76,0.6); padding: 12px 20px; text-align: center; flex-shrink: 0; }
.acm-qr-byline-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(232,224,208,0.5); margin-bottom: 4px; }
.acm-qr-byline-name  { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: #E8CC7A; }
@media (max-width: 700px) { .acm-qr-header { flex-direction: column; gap: 16px; padding: 24px 20px; } .acm-qr-title { font-size: 22px; } }

/* ── Stats bar ── */
.acm-qr-stats {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 16px 48px;
    background: #0A0B0E;
    border-bottom: 1px solid rgba(201,168,76,0.12);
    flex-wrap: wrap;
}
.acm-qr-stat { display: flex; flex-direction: column; align-items: center; }
.acm-qr-stat-num { font-size: 32px; font-weight: 700; color: #E8CC7A; line-height: 1; }
.acm-qr-stat-lbl { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #555; margin-top: 3px; }
.acm-qr-stat-desc { font-size: 14px; color: #8A8278; margin-left: auto; max-width: 520px; line-height: 1.5; }
@media (max-width: 700px) { .acm-qr-stats { padding: 14px 20px; gap: 20px; } .acm-qr-stat-desc { margin-left: 0; } }

/* ── Main content ── */
.acm-qr-content { padding: 0 48px 64px; }
@media (max-width: 700px) { .acm-qr-content { padding: 0 20px 40px; } }

/* ── Sections ── */
.acm-qr-section { padding-top: 48px; }
.acm-qr-section-label { font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: #C9A84C; margin-bottom: 10px; }
.acm-qr-section-title { font-size: 24px; font-weight: 700; color: #FFFFFF; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid rgba(201,168,76,0.2); }

/* ── Body text ── */
.acm-qr-body { font-size: 18px; line-height: 1.9; color: #B8B0A0; margin: 0 0 18px; }
.acm-qr-link { color: #C9A84C; text-decoration: none; }
.acm-qr-link:hover { color: #FFE09A; text-decoration: none; }

/* ── Period sections ── */
.acm-qr-period { margin-top: 48px; }

.acm-qr-period-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 2px solid #8B0000;
    padding-bottom: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}
.acm-qr-period-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 400;
    color: #E8CC7A;
    line-height: 1;
}
.acm-qr-period-count {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #555;
}
.acm-qr-period-desc {
    font-size: 16px;
    line-height: 1.7;
    color: #8A8278;
    margin: 0 0 24px;
    max-width: 900px;
}

/* ── Video grid ── */
.acm-qr-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 1000px) { .acm-qr-video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .acm-qr-video-grid { grid-template-columns: 1fr; } }

/* ── Individual video card ── */
.acm-qr-video-card {
    background: #0E1014;
    border: 1px solid rgba(201,168,76,0.12);
    overflow: hidden;
    transition: border-color 0.2s;
}
.acm-qr-video-card:hover { border-color: rgba(201,168,76,0.35); }

/* ── Thumbnail / click-to-play ── */
.acm-qr-video-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    cursor: pointer;
    overflow: hidden;
    background: #07080A;
}
.acm-qr-video-thumb img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.acm-qr-video-card:hover .acm-qr-video-thumb img { transform: scale(1.03); }

.acm-qr-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    transition: background 0.2s;
}
.acm-qr-video-card:hover .acm-qr-video-overlay { background: rgba(0,0,0,0.15); }

.acm-qr-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 56px; height: 56px;
    background: rgba(139,0,0,0.9);
    border: 2px solid #C9A84C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #E8CC7A;
    z-index: 2;
    transition: background 0.2s, transform 0.2s;
    padding-left: 4px;
}
.acm-qr-video-card:hover .acm-qr-play-btn {
    background: rgba(180,0,0,0.95);
    transform: translate(-50%, -50%) scale(1.1);
}

/* ── Video info ── */
.acm-qr-video-info { padding: 16px 18px 18px; }
.acm-qr-video-title {
    font-size: 15px;
    font-weight: 700;
    color: #E8E0D0;
    line-height: 1.4;
    margin-bottom: 8px;
}
.acm-qr-video-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 10px;
}
.acm-qr-yt-link {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #C9A84C;
    text-decoration: none;
}
.acm-qr-yt-link:hover { color: #FFE09A; text-decoration: none; }

/* ── Empty state ── */
.acm-qr-empty {
    background: #0A0B0E;
    border: 1px dashed rgba(201,168,76,0.2);
    padding: 40px;
    text-align: center;
}
.acm-qr-empty-icon { font-size: 32px; color: rgba(201,168,76,0.2); margin-bottom: 12px; }
.acm-qr-empty-text { font-size: 15px; color: #555; margin-bottom: 6px; }
.acm-qr-empty-sub  { font-size: 12px; color: #333; letter-spacing: 1px; font-family: monospace; }

/* ── YouTube channel CTA ── */
.acm-qr-yt-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 56px;
    background: #0E1014;
    border: 1px solid rgba(201,168,76,0.2);
    border-left: 4px solid #C9A84C;
    padding: 28px 32px;
    flex-wrap: wrap;
}
.acm-qr-yt-cta-title { font-size: 17px; font-weight: 700; color: #E8E0D0; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.acm-qr-yt-cta-desc  { font-size: 15px; color: #8A8278; }
.acm-qr-yt-btn {
    display: inline-block;
    background: linear-gradient(135deg, #8B0000, #B22222);
    border: 1px solid #C9A84C;
    color: #E8CC7A;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 32px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
}
.acm-qr-yt-btn:hover { background: linear-gradient(135deg, #A00000, #CC2222); color: #FFE09A; text-decoration: none; }
