/* updates.css — Updates page styles */

/* Section wrapper */
.updates-section {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 3rem clamp(16px, 5vw, 80px);
    position: relative;
    z-index: 10;
}

/* ── Section header ── */
.updates-header {
    position: relative;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

/* Yellow glow blob (md+) */
.updates-header::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: 0;
    width: 8rem;
    height: 8rem;
    background: #fef08a;
    border-radius: 50%;
    mix-blend-mode: multiply;
    filter: blur(2rem);
    opacity: 0.5;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    display: none;
}

@media (min-width: 768px) {
    .updates-header::before {
        display: block;
    }
}

.updates-header-inner {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
}

.updates-title-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 42rem;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 0.5rem;
}

.live-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #22c55e;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.live-badge .badge-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.updates-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.033em;
}

.updates-title .red-accent {
    color: var(--primary);
}

@media (min-width: 768px) {
    .updates-header-inner {
        flex-direction: row;
    }

    .live-badge {
        align-self: flex-start;
    }
}

/* ── Updates grid ── */
.updates-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 5rem;
    align-items: start;
}

@media (min-width: 768px) {
    .updates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .updates-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── Featured card ── */
.card-featured {
    position: relative;
    height: 100%;
}

@media (min-width: 768px) {
    .card-featured {
        grid-column: span 2;
    }
}

.card-featured-shadow {
    position: absolute;
    inset: 0;
    background: var(--ink);
    border-radius: 1rem;
    transform: translate(0.4rem, 0.5rem) rotate(0deg);
    opacity: 0.12;
    transition: transform 0.3s;
}

.card-featured article {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 3px solid var(--ink);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-paper);
    transform: rotate(-1.5deg);
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 10;
}

.card-featured:hover .card-featured-shadow {
    transform: translate(0.2rem, 0.3rem) rotate(0deg);
}

.card-featured:hover article {
    transform: rotate(0deg);
    box-shadow: var(--shadow-paper-hover);
}

.card-featured .img-col {
    width: 100%;
    height: 16rem;
    background: #f3f4f6;
    overflow: hidden;
    border-bottom: 2px solid var(--ink);
    position: relative;
}

.card-featured .img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.7s;
}

.card-featured:hover .img-col img {
    transform: scale(1.1);
}

.card-featured .body-col {
    flex: 1;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
}

.card-body-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.date-stamp {
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transform: rotate(12deg);
    /* original: -mt-2 only relevant (single child in justify-between = left-aligned) */
    margin-top: -0.5rem;
    opacity: 0.8;
    mix-blend-mode: multiply;
}

.date-stamp .inner {
    text-align: center;
    line-height: 1.3;
}

.card-featured h3 {
    font-size: clamp(1.25rem, 3vw, 1.875rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.card-featured p.desc {
    color: #4b5563;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.card-featured .footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 2px dashed #e5e7eb;
    margin-top: auto;
}

.card-featured .location {
    font-size: 0.875rem;
    font-weight: 700;
    color: #6b7280;
}

@media (min-width: 768px) {
    .card-featured article {
        flex-direction: row;
    }

    .card-featured .img-col {
        width: 50%;
        height: auto;
        border-bottom: none;
        border-right: 2px solid var(--ink);
    }
}

/* ── Polaroid photo card ── */
.card-photo {
    position: relative;
}

@media (min-width: 768px) {
    .card-photo {
        margin-top: 2rem;
    }
}

.card-photo article {
    background: #fff;
    /* original: p-4 pb-6 = 1rem top/sides, 1.5rem bottom */
    padding: 1rem;
    padding-bottom: 1.5rem;
    border-radius: 2px;
    /* original: shadow-xl */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    transform: rotate(-2.5deg);
    transition: transform 0.3s;
}

.card-photo:hover article {
    /* original: hover:rotate-0 hover:scale-105 */
    transform: rotate(0deg) scale(1.05);
}

.card-photo .img-area {
    aspect-ratio: 4 / 3;
    background: #f3f4f6;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.card-photo .img-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.card-photo .img-area .hover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.card-photo:hover .img-area .hover-overlay {
    opacity: 1;
}

.card-photo .img-area .hover-overlay p {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.card-photo .caption {
    text-align: center;
}

.card-photo .caption .title {
    font-family: 'Epilogue', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--ink);
}

.card-photo .caption .date {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Quote card ── */
.card-quote {
    position: relative;
}

@media (min-width: 768px) {
    .card-quote {
        /* original: md:mt-12 = 3rem */
        margin-top: 3rem;
    }
}

.card-quote article {
    height: 100%;
    background: var(--paper-peach);
    padding: 2rem;
    /* original: rounded-tl-3xl rounded-br-3xl = top-left 1.5rem, bottom-right 1.5rem, others 0 */
    border-radius: 1.5rem 0 1.5rem 0;
    border: 2px solid #fed7aa;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
    transform: rotate(-1.5deg);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.card-quote:hover article {
    transform: rotate(0deg);
}

.card-quote blockquote {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 900;
    font-style: italic;
    color: rgba(124, 45, 18, 0.8);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.card-quote .divider {
    width: 2.5rem;
    height: 0.25rem;
    background: #fdba74;
    border-radius: 9999px;
    margin: 0 auto 1rem;
}

.card-quote .attribution {
    font-size: 0.875rem;
    font-weight: 700;
    color: rgba(154, 52, 18, 0.6);
}