/* static/css/main/press.css */

/* Page background + layout inspired by about */
.press-hero-bg {
    position: relative; /* enable overlay positioning */
    background: var(--background);
    padding: 45px 0 2.5rem 0; /* Reduced from 120px to account for body padding-top including shadow */
    width: 100%;
    overflow: hidden;
}
.press-hero-bg::before {
    content: "";
    position: fixed; /* cover viewport to avoid visible tile seams on scroll */
    inset: 0;
    background-image: url('/static/images/paperbg.png');
    background-position: center;
    background-repeat: repeat;
    background-size: 1400px auto; /* upscale to reduce edge repetition */
    opacity: 0.35; /* soften texture */
    pointer-events: none;
    mix-blend-mode: multiply; /* blend with background for seamless look */
    z-index: 0;
}

.press-hero {
    max-width: 68.75rem; /* 1100px */
    margin: 0 auto;
    padding: 3.25rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    align-items: center;
}

.press-content-col { flex: 1 1 0%; }

.press-title-bar {
    width: 3.5rem;
    height: 0.35rem;
    background: var(--accent);
    border-radius: 0.2rem;
    margin-bottom: 1rem;
}

.press-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.02em;
}

.press-lead {
    font-size: 1.1rem;
    color: var(--primary-light);
    max-width: 46rem;
    line-height: 1.6;
}

.press-container {
    width: 100%;
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 1.5rem 3rem 1.5rem;
    position: relative;
    z-index: 1; /* ensure content sits above paper texture */
    box-sizing: border-box;
}

/* --- Hero with image --- */
/* Two-column layout: feature left, articles/videos right */
.press-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: start;
}

.press-hero-copy h1 {
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--primary-dark);
    background-color: var(--background-light-shade);
    margin: 0;
    border: 2px solid var(--primary-dark);
    padding: 12px 20px 8px 20px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    line-height: 1.2;
    border-bottom: none;
}

.press-hero-copy p {
    font-size: 0.95rem;
    color: var(--primary-light);
    margin: 0;
    line-height: 1.5;
    background-color: var(--background-light-shade);
    border: 2px solid var(--primary-dark);
    border-top: none;
    padding: 0 20px 12px 20px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.hero-dots {
    height: 10px;
    margin-top: 10px;
    background-image: radial-gradient(var(--primary-dark) 2px, rgba(0,0,0,0) 2px);
    background-size: 12px 10px;
    background-repeat: repeat-x;
    opacity: 0.25;
}

.press-feature .feature-card {
    background: transparent; /* remove pink wrapper */
    border: none; /* keep only the black outline on the image itself */
    padding: 0;
    box-shadow: none;
}
.feature-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-medium);
    transform: rotate(-1.5deg);
    border: 2px solid var(--primary-dark);
    background: var(--background-light-shade);
}
.feature-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05) saturate(1.05);
}
.feature-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at bottom right, rgba(255,107,107,0.18), transparent 60%);
    pointer-events: none;
}
.hero-stamp {
    position: absolute;
    left: -10px;
    top: 14px;
    background: var(--accent);
    color: var(--white);
    font-weight: 900;
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 6px;
    transform: rotate(-6deg);
    box-shadow: 0 4px 10px var(--shadow-light);
}

.feature-tag {
    position: absolute;
    left: 10px;
    top: 10px;
    background: var(--accent);
    color: var(--white);
    font-weight: 800;
    padding: 16px 24px; /* EVEN BIGGER */
    border-radius: 12px;
    font-size: 1.6rem; /* EVEN BIGGER */
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px var(--shadow-light);
    transform: rotate(-4deg);
    border: 2px solid var(--primary-dark); /* black outline */
    z-index: 2;
}
.feature-sub {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: var(--accent); /* same pink object */
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid var(--primary-dark); /* black outline */
    transform: rotate(-1deg);
    z-index: 2;
}

.press-right { display: flex; flex-direction: column; gap: 1.5rem; }

.press-intro {
    display: inline-block;
    background: var(--white);
    border: 2px solid var(--primary-dark);
    border-radius: 8px;
    padding: 10px 16px;
    color: var(--primary-dark);
    font-weight: 800; /* match section headers weight */
    letter-spacing: 0.02em;
    font-size: 1rem;
    line-height: 1.4;
    box-shadow: 0 2px 8px var(--shadow-light);
}

@media (max-width: 56.25rem) {
    .press-content-grid { grid-template-columns: 1fr; }
    .feature-image-wrap { aspect-ratio: 16 / 9; transform: rotate(0deg); }
}

/* Outlined header style matching data page */
.press-header {
    text-align: left;
    margin-bottom: 1.25rem;
}

.press-header h1 {
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--primary-dark);
    background-color: var(--background-light-shade);
    margin: 0;
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 2px solid var(--primary-dark);
    padding: 12px 20px 8px 20px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    line-height: 1.2;
    border-bottom: none;
}

.press-header p {
    font-size: 0.9rem;
    color: var(--primary-light);
    margin: 0;
    line-height: 1.4;
    background-color: var(--background-light-shade);
    border: 2px solid var(--primary-dark);
    border-top: none;
    padding: 0 20px 12px 20px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

/* Dotted divider inspired by index accents */
.dotted-divider {
    width: 100%;
    height: 10px;
    margin: 1.5rem 0 2rem 0;
    background-image: radial-gradient(var(--primary-dark) 2px, rgba(0,0,0,0) 2px);
    background-size: 12px 10px; /* dot spacing */
    background-repeat: repeat-x;
    background-position: left center;
    opacity: 0.25;
}

.press-section {
    margin-bottom: 2.5rem;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.5rem; /* tighter to content */
}

.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
}

.press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

/* Tabs */
.press-tabs {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2; /* over texture */
}
.press-tab-btn {
    background: var(--accent);
    color: var(--white);
    border: 2px solid var(--primary-dark);
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 2;
    transition: transform 140ms ease, box-shadow 140ms ease;
}
.press-tab-btn:not(.active) {
    background: transparent;
    color: var(--primary-dark);
}
.press-tab-pane.is-hidden { display: none; }

.press-card {
    background: var(--light-accent);
    border: 2px solid var(--accent);
    border-radius: 0.75rem;
    padding: 1rem 1rem 1.25rem 1rem;
    box-shadow: 0 0.25rem 0.75rem var(--shadow-light);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 1; /* sit above background */
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.press-card-top { display: flex; align-items: center; gap: 0.75rem; }

.press-card-logo {
    width: 120px; /* unify width */
    height: 40px;
    border-radius: 8px; /* rounded corners for both */
    background: var(--white); /* white spacing around IBJ */
    padding: 6px 10px; /* inner spacing around logos */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--light-accent);
    overflow: hidden;
}
.press-card-logo img { max-width: 100%; max-height: 100%; display: block; }

/* For white wordmarks on dark chip */
.press-card-logo--dark {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    padding: 6px 10px; /* spacing around PATTERN wordmark */
}
.press-card-logo--dark img { filter: brightness(110%); }

.press-card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.press-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0.25rem 0;
}

.press-card-desc {
    font-size: 0.98rem;
    color: var(--primary-dark);
}

.press-card-link {
    margin-top: auto;
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    border-bottom: 2px dotted var(--primary-dark);
}
.press-card-link:hover { color: var(--accent); border-color: var(--accent); }

.video-thumb-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}
.video-thumb-link:hover {
    transform: translateY(-2px);
}
.video-thumb {
    position: relative;
    background: linear-gradient(135deg, var(--background) 40%, var(--background-light-shade) 100%);
    border: 2px dashed var(--primary-dark);
    border-radius: 0.5rem;
    height: 9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.video-play {
    position: absolute;
    font-size: 2rem;
    color: var(--white);
    z-index: 1;
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Mobile responsiveness */
@media (max-width: 768px), (max-height: 768px) {
    .press-hero-bg {
        padding: 20px 0 1rem 0; /* Reduce top padding on mobile */
        overflow-x: hidden; /* Prevent horizontal scroll at root */
        width: 100%;
    }
    
    .press-container {
        max-width: 100vw; /* Use viewport width */
        padding: 0 1rem 2rem 1rem; /* Reduce side padding */
        margin: 0;
        overflow-x: hidden; /* Prevent horizontal scroll */
        box-sizing: border-box;
    }
    
    .press-content-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1.5rem;
        width: 100%; /* Ensure full width */
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .press-feature {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .press-feature .feature-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .press-right {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden; /* Prevent horizontal scroll */
        box-sizing: border-box;
    }
    
    .press-intro {
        font-size: 0.9rem;
        padding: 8px 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
    }
    
    .press-tabs {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
    
    .press-tab-btn {
        flex: 1;
        max-width: 150px;
        padding: 10px 16px;
        font-size: 0.9rem;
        box-sizing: border-box;
    }
    
    .press-section {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .press-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .press-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
    }
    
    .press-card-top {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        flex-wrap: wrap;
    }
    
    .press-card-logo {
        width: 100px;
        height: 35px;
        flex-shrink: 0;
        box-sizing: border-box;
    }
    
    .press-card-meta {
        font-size: 0.8rem;
        flex: 1;
        min-width: 0;
        overflow-wrap: break-word;
    }
    
    .press-card-title {
        font-size: 1rem;
        width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
    }
    
    .press-card-desc {
        font-size: 0.9rem;
        width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
    }
    
    .feature-image-wrap {
        aspect-ratio: 16 / 9;
        transform: rotate(0deg);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .feature-tag {
        font-size: 1.2rem;
        padding: 12px 18px;
        max-width: 80%;
        box-sizing: border-box;
        overflow-wrap: break-word;
    }
    
    .video-thumb {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .press-title {
        font-size: 1.9rem;
    }
}

@media (max-width: 56.25rem) {
    .press-title { font-size: 1.9rem; }
}


