/* ============================================
   JoeYam Research Hub - Frontend Styles
   Matches joeyam.com jytheme design language
   ============================================ */

/* Variables matching jytheme */
:root {
    --jyrh-navy: #1B3A5C;
    --jyrh-navy-dark: #152e49;
    --jyrh-blue: #1A5CC8;
    --jyrh-blue-hover: #1550b0;
    --jyrh-text: #333333;
    --jyrh-text-light: #666666;
    --jyrh-text-muted: #999999;
    --jyrh-bg: #f9fafb;
    --jyrh-white: #ffffff;
    --jyrh-border: #e2e8f0;
    --jyrh-radius: 8px;
    --jyrh-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --jyrh-shadow-hover: 0 4px 12px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
}

/* Container */
.jyrh-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ARCHIVE PAGE ===== */

/* Hero */
.jyrh-hero {
    background-color: var(--jyrh-navy);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.jyrh-hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.jyrh-hero h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0 0 15px;
    color: #fff;
    line-height: 1.2;
}

.jyrh-hero p {
    font-size: 1.15rem;
    margin: 0;
    opacity: 0.9;
    line-height: 1.6;
    color: #fff;
}

/* Filter Bar */
.jyrh-filter-bar {
    background: var(--jyrh-white);
    border-bottom: 1px solid var(--jyrh-border);
    padding: 15px 20px;
}

.jyrh-filter-bar .jyrh-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.jyrh-filter-btn {
    background: var(--jyrh-bg);
    border: 1px solid var(--jyrh-border);
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 0.875rem;
    color: var(--jyrh-text);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.jyrh-filter-btn:hover {
    border-color: var(--jyrh-blue);
    color: var(--jyrh-blue);
}

.jyrh-filter-btn.active {
    background: var(--jyrh-navy);
    color: #fff;
    border-color: var(--jyrh-navy);
}

/* Reports Grid */
.jyrh-reports-grid-section {
    background: var(--jyrh-bg);
    padding: 50px 20px;
    min-height: 400px;
}

.jyrh-reports-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 900px) {
    .jyrh-reports-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .jyrh-reports-grid { grid-template-columns: 1fr; }
    .jyrh-hero h1 { font-size: 1.8rem; }
}

/* Report Card */
.jyrh-report-card {
    background: var(--jyrh-white);
    border: 1px solid var(--jyrh-border);
    border-radius: var(--jyrh-radius);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.jyrh-report-card:hover {
    box-shadow: var(--jyrh-shadow-hover);
    transform: translateY(-2px);
}

.jyrh-report-card.jyrh-hidden {
    display: none;
}

/* Card Cover */
.jyrh-card-cover {
    height: 180px;
    overflow: hidden;
    background: #f1f5f9;
}

.jyrh-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jyrh-card-cover-default {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8edf2 0%, #d1dae5 100%);
}

.jyrh-cover-placeholder {
    text-align: center;
    color: #94a3b8;
}

/* Card Body */
.jyrh-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.jyrh-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--jyrh-text);
    margin: 0 0 10px;
    line-height: 1.4;
}

.jyrh-card-summary {
    font-size: 0.9rem;
    color: var(--jyrh-text-light);
    line-height: 1.6;
    margin: 0 0 15px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tags */
.jyrh-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.jyrh-tag {
    background: #eef2ff;
    color: #4f46e5;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
}

/* Card Meta */
.jyrh-card-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.jyrh-meta-item {
    font-size: 0.8rem;
    color: var(--jyrh-text-muted);
}

/* Card Button */
.jyrh-card-btn {
    display: block;
    text-align: center;
    background: var(--jyrh-navy);
    color: #fff !important;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

.jyrh-card-btn:hover {
    background: var(--jyrh-navy-dark);
    color: #fff !important;
    text-decoration: none;
}

/* No Reports */
.jyrh-no-reports {
    text-align: center;
    padding: 60px 20px;
    color: var(--jyrh-text-light);
    font-size: 1.1rem;
}

/* ===== SINGLE REPORT PAGE ===== */

/* Single Hero */
.jyrh-single-hero {
    background: var(--jyrh-navy);
    color: #fff;
    padding: 50px 20px;
}

.jyrh-single-cats {
    margin-bottom: 15px;
}

.jyrh-single-cat-tag {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #fff !important;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    margin-right: 8px;
    transition: background 0.2s;
}

.jyrh-single-cat-tag:hover {
    background: rgba(255,255,255,0.25);
    text-decoration: none;
    color: #fff !important;
}

.jyrh-single-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: #fff;
    line-height: 1.25;
}

.jyrh-single-subtitle {
    font-size: 1.2rem;
    margin: 0 0 20px;
    opacity: 0.9;
    line-height: 1.5;
    color: #fff;
}

.jyrh-single-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.jyrh-single-meta span {
    position: relative;
}

.jyrh-single-meta span + span::before {
    content: '|';
    position: absolute;
    left: -12px;
    opacity: 0.5;
}

/* Single Content */
.jyrh-single-content {
    background: var(--jyrh-bg);
    padding: 50px 20px 60px;
}

/* Top Row: Cover + Sidebar */
.jyrh-single-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .jyrh-single-top-row {
        grid-template-columns: 1fr;
    }
    .jyrh-single-title { font-size: 1.6rem; }
}

.jyrh-single-cover-col {
    display: flex;
    align-items: flex-start;
}

.jyrh-single-cover-img {
    width: 100%;
    border-radius: var(--jyrh-radius);
    box-shadow: var(--jyrh-shadow);
}

.jyrh-single-cover-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #e8edf2 0%, #d1dae5 100%);
    border-radius: var(--jyrh-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    gap: 10px;
    font-size: 1rem;
}

/* Key Findings */
.jyrh-single-findings {
    background: var(--jyrh-white);
    border: 1px solid var(--jyrh-border);
    border-radius: var(--jyrh-radius);
    padding: 25px 30px;
    margin-bottom: 25px;
}

.jyrh-single-findings h2 {
    font-size: 1.2rem;
    margin: 0 0 15px;
    color: var(--jyrh-text);
}

.jyrh-single-findings ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jyrh-single-findings li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--jyrh-text-light);
}

.jyrh-single-findings li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    background: var(--jyrh-blue);
    border-radius: 50%;
}

/* Download Box */
.jyrh-download-box {
    text-align: center;
}

.jyrh-download-btn {
    display: inline-block;
    background: var(--jyrh-blue);
    color: #fff !important;
    padding: 16px 36px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    line-height: 1.4;
}

.jyrh-download-btn:hover {
    background: var(--jyrh-blue-hover);
    color: #fff !important;
    text-decoration: none;
}

.jyrh-download-sub {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.85;
    margin-top: 2px;
}

.jyrh-download-btn-large {
    padding: 18px 48px;
    font-size: 1.15rem;
}

/* Email Gating Form */
.jyrh-email-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jyrh-email-form input {
    padding: 12px 16px;
    border: 1px solid var(--jyrh-border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
}

.jyrh-email-form-inline {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
}

.jyrh-email-form-inline input {
    min-width: 250px;
}

/* Content Sections */
.jyrh-single-section {
    background: var(--jyrh-white);
    border: 1px solid var(--jyrh-border);
    border-radius: var(--jyrh-radius);
    padding: 30px 35px;
    margin-bottom: 30px;
}

.jyrh-single-section h2 {
    font-size: 1.35rem;
    margin: 0 0 20px;
    color: var(--jyrh-text);
    font-weight: 600;
}

.jyrh-single-overview p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--jyrh-text-light);
    margin-bottom: 15px;
}

.jyrh-single-overview p:last-child {
    margin-bottom: 0;
}

/* Sections Grid */
.jyrh-sections-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.jyrh-section-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.jyrh-section-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--jyrh-navy);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.jyrh-section-content h3 {
    font-size: 1.05rem;
    margin: 0 0 6px;
    color: var(--jyrh-text);
    font-weight: 600;
}

.jyrh-section-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--jyrh-text-light);
    margin: 0;
}

/* Target Audience */
.jyrh-target-audience {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--jyrh-text-light);
    margin: 0;
}

/* Bottom CTA */
.jyrh-bottom-cta {
    background: var(--jyrh-navy);
    color: #fff;
    border-radius: var(--jyrh-radius);
    padding: 40px;
    text-align: center;
    margin-bottom: 40px;
}

.jyrh-bottom-cta p {
    font-size: 1.3rem;
    margin: 0 0 20px;
    color: #fff;
    font-weight: 500;
}

.jyrh-bottom-cta .jyrh-download-btn {
    background: #fff;
    color: var(--jyrh-navy) !important;
}

.jyrh-bottom-cta .jyrh-download-btn:hover {
    background: #f0f0f0;
}

.jyrh-bottom-cta .jyrh-download-sub {
    color: var(--jyrh-text-light);
}

/* More Research */
.jyrh-more-research {
    background: transparent;
    border: none;
    padding: 0;
}

.jyrh-more-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .jyrh-more-grid { grid-template-columns: 1fr; }
}

.jyrh-more-card {
    background: var(--jyrh-white);
    border: 1px solid var(--jyrh-border);
    border-radius: var(--jyrh-radius);
    padding: 25px;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: block;
}

.jyrh-more-card:hover {
    box-shadow: var(--jyrh-shadow-hover);
    transform: translateY(-2px);
    text-decoration: none;
}

.jyrh-more-card h3 {
    font-size: 1rem;
    margin: 0 0 10px;
    color: var(--jyrh-text);
    font-weight: 600;
    line-height: 1.4;
}

.jyrh-more-card p {
    font-size: 0.875rem;
    color: var(--jyrh-text-light);
    line-height: 1.5;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jyrh-more-link {
    font-size: 0.875rem;
    color: var(--jyrh-blue);
    font-weight: 500;
}
