/* ----------------------------------------
   Critic Content Styles (Author Profile)
   ---------------------------------------- */

:root {
    --critico-border-color: #E4E4E7;
    --critico-text-main: #1A1A1A;
    --critico-text-muted: #52525B;
    --critico-accent-blue: #113B6B;
    --critico-badge-green: #34A853; /* Adjust based on exact mockup green */
    --critico-bg-light: #F8F9FA;
}

/* Author Header Box */
.author-critic-wrapper {
    background: #FFFFFF;
    border: 1px solid var(--critico-border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .author-critic-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.author-critic-avatar img {
    border-radius: 8px;
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.author-critic-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.author-critic-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--critico-text-main);
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.author-critic-bio {
    font-size: 15px;
    color: var(--critico-text-muted);
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.author-critic-publications {
    font-size: 14px;
    color: var(--critico-text-muted);
    margin: 0;
}

.author-critic-publications strong {
    color: var(--critico-accent-blue);
    font-weight: 600;
}

/* Tabs (Pills) */
.dashboard-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.dashboard-tab {
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--critico-border-color);
    color: var(--critico-text-muted);
    background: #FFFFFF;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dashboard-tab:hover {
    border-color: var(--critico-accent-blue);
    color: var(--critico-accent-blue);
}

.dashboard-tab--active {
    background: var(--critico-accent-blue);
    color: #FFFFFF;
    border-color: var(--critico-accent-blue);
}

.dashboard-tab--active:hover {
    background: #0d2f55;
    color: #FFFFFF;
}

.dashboard-tab--disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Review Cards */
.author-review-card {
    border: 1px solid var(--critico-border-color);
    border-radius: 12px;
    padding: 24px;
    background: #FFFFFF;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.author-review-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.review-movie-header {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.review-movie-poster {
    width: 64px;
    height: 96px;
    flex-shrink: 0;
}

.review-movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.review-movie-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.review-movie-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--critico-text-main);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.review-movie-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.review-movie-title a:hover {
    color: var(--critico-accent-blue);
}

.review-movie-meta {
    font-size: 14px;
    color: var(--critico-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Badges for Certification */
.cert-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    min-width: 24px;
}

.cert-badge-10 { background: #56B3EC; color: #fff; }
.cert-badge-12 { background: #F1C40F; color: #000; }
.cert-badge-14 { background: #E67E22; color: #fff; }
.cert-badge-16 { background: #E74C3C; color: #fff; }
.cert-badge-18 { background: #000000; color: #fff; }

/* The generic rating badge */
.review-rating-score {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    flex-shrink: 0;
}

.review-rating-score .rating-green { background: #34A853; }
.review-rating-score .rating-yellow { background: #FBBC05; color: #1A1A1A; }
.review-rating-score .rating-red { background: #EA4335; }
.review-rating-score .rating-gray { background: #9E9E9E; }

/* The description */
.review-text-content {
    font-size: 15px;
    color: var(--critico-text-muted);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 24px;
}

.review-text-content p:last-child {
    margin-bottom: 0;
}

/* Footer layout */
.review-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    border-top: none; 
    padding-top: 0;
}

.review-date {
    color: var(--critico-text-muted);
}

.review-source-link {
    color: var(--critico-accent-blue);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.review-source-link:hover {
    opacity: 0.8;
}

/* Two column layout for critic contents */
.critic-page-layout {
    display: flex;
    gap: 40px;
    margin-top: 32px;
}

.critic-main-content {
    flex: 1;
    min-width: 0;
}

.critic-sidebar {
    width: 320px;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .critic-page-layout {
        flex-direction: column;
    }
    .critic-sidebar {
        width: 100%;
    }
}
