/* =========================================================================
   REM'S CONTENT AI — Expert Profiles & Author Box CSS
   v2.9.0
   ========================================================================= */

/* =========================================================================
   EXPERT PAGE — Full Profile
   ========================================================================= */

.rems-expert-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px 40px;
    font-family: var(--rems-font, 'Barlow', sans-serif);
}

/* Hero Section */
.rems-expert-hero {
    background: linear-gradient(135deg, #0a0e17 0%, #141b2d 100%);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    color: #fff;
}

.rems-expert-hero-inner {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.rems-expert-photo-wrapper {
    flex-shrink: 0;
}

.rems-expert-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--rems-accent, #f0c040);
    box-shadow: 0 4px 20px rgba(240, 192, 64, 0.3);
}

.rems-expert-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    border: 3px solid rgba(255,255,255,0.2);
}

.rems-expert-name {
    font-family: var(--rems-font-condensed, 'Barlow Condensed', sans-serif);
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 4px;
    line-height: 1.1;
}

.rems-expert-specialty {
    font-size: 1.1rem;
    color: var(--rems-accent, #f0c040);
    font-weight: 600;
    margin-bottom: 4px;
}

.rems-expert-country {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}

.rems-expert-short-bio {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    margin: 0 0 14px;
}

/* Social Links */
.rems-expert-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rems-expert-social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rems-expert-social-link:hover {
    background: rgba(255,255,255,0.2);
    border-color: var(--rems-accent, #f0c040);
    color: var(--rems-accent, #f0c040);
    transform: translateY(-1px);
}

.rems-expert-social-emoji {
    font-size: 1.1rem;
}

/* Sections */
.rems-expert-section {
    background: var(--rems-card-bg, #141b2d);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.06);
}

.rems-expert-section-title {
    font-family: var(--rems-font-condensed, 'Barlow Condensed', sans-serif);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--rems-text, #e8eaed);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--rems-accent, #f0c040);
}

.rems-expert-bio-content {
    color: var(--rems-text-secondary, #b0b8c4);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Personality Football Section */
.rems-expert-personality-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.rems-expert-personality-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 16px 18px;
}
.rems-expert-personality-icon {
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}
.rems-expert-personality-card strong {
    display: block;
    color: #f0c040;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.rems-expert-personality-card p {
    color: #e8eaed;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}
.rems-expert-personality-quote {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(240,192,64,0.06) 0%, rgba(96,165,250,0.04) 100%);
    border: 1px solid rgba(240,192,64,0.15);
    border-left: 3px solid #f0c040;
    border-radius: 12px;
    padding: 18px 22px;
}
.rems-expert-personality-quote blockquote {
    margin: 0;
    padding: 0;
    font-style: italic;
    color: #d0d4dc;
    font-size: 0.95rem;
    line-height: 1.6;
}
.rems-expert-personality-quote blockquote::before {
    content: "\00AB\00A0";
    color: #f0c040;
    font-size: 1.4rem;
    font-weight: 700;
}
.rems-expert-personality-quote blockquote::after {
    content: "\00A0\00BB";
    color: #f0c040;
    font-size: 1.4rem;
    font-weight: 700;
}

/* Leagues Grid */
.rems-expert-leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.rems-expert-league-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 12px;
    transition: border-color 0.2s;
}

.rems-expert-league-card:hover {
    border-color: var(--rems-accent, #f0c040);
}

.rems-expert-league-logo {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.rems-expert-league-name {
    font-weight: 600;
    color: var(--rems-text, #e8eaed);
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
}

a.rems-expert-league-name:hover {
    color: var(--rems-accent, #f0c040);
}

.rems-expert-league-country {
    font-size: 0.8rem;
    color: var(--rems-text-secondary, #b0b8c4);
    display: block;
}

/* Predictions List */
.rems-expert-predictions-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rems-expert-prediction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--rems-text, #e8eaed);
    transition: all 0.2s;
}

.rems-expert-prediction-item:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--rems-accent, #f0c040);
    transform: translateX(4px);
}

.rems-expert-prediction-league-logo {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.rems-expert-prediction-info {
    flex: 1;
    min-width: 0;
}

.rems-expert-prediction-title {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rems-expert-prediction-date {
    font-size: 0.8rem;
    color: var(--rems-text-secondary, #b0b8c4);
}

.rems-expert-prediction-arrow {
    color: var(--rems-accent, #f0c040);
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.rems-expert-no-predictions {
    color: var(--rems-text-secondary, #b0b8c4);
    font-style: italic;
}

/* =========================================================================
   AUTHOR BOX — Compact (match/league pages)
   ========================================================================= */

.rems-author-box {
    background: linear-gradient(135deg, #0f1520 0%, #171f30 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 20px 24px;
    margin: 24px 0;
}

.rems-author-box-inner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.rems-author-box-photo {
    flex-shrink: 0;
}

.rems-author-box-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--rems-accent, #f0c040);
}

.rems-author-box-img-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 2px solid rgba(255,255,255,0.15);
}

.rems-author-box-content {
    flex: 1;
    min-width: 0;
}

.rems-author-box-header {
    margin-bottom: 2px;
}

.rems-author-box-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rems-text-secondary, #8a92a0);
    display: block;
    margin-bottom: 2px;
}

.rems-author-box-name {
    font-family: var(--rems-font-condensed, 'Barlow Condensed', sans-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.rems-author-box-name:hover {
    color: var(--rems-accent, #f0c040);
}

.rems-author-box-specialty {
    font-size: 0.85rem;
    color: var(--rems-accent, #f0c040);
    font-weight: 600;
    margin-bottom: 4px;
}

.rems-author-box-bio {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
    margin: 4px 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rems-author-box-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rems-author-box-profile-link {
    font-size: 0.85rem;
    color: var(--rems-accent, #f0c040);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.rems-author-box-profile-link:hover {
    opacity: 0.8;
}

.rems-author-box-social {
    display: flex;
    gap: 6px;
}

.rems-author-box-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.rems-author-box-social-icon:hover {
    background: var(--rems-accent, #f0c040);
    color: #000;
    transform: translateY(-1px);
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

@media (max-width: 640px) {
    .rems-expert-hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .rems-expert-photo {
        width: 100px;
        height: 100px;
    }

    .rems-expert-social {
        justify-content: center;
    }

    .rems-expert-name {
        font-size: 1.6rem;
    }

    .rems-expert-leagues-grid {
        grid-template-columns: 1fr;
    }

    .rems-expert-personality-grid {
        grid-template-columns: 1fr;
    }

    .rems-author-box-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .rems-author-box-footer {
        flex-direction: column;
    }

    .rems-author-box-social {
        justify-content: center;
    }
}
