/**
 * Rendaforte — components.css
 * Platform Cards (horizontal), Filter Archive, Platform Profiles
 */

/* ==========================================================================
   HORIZONTAL CARD — image left 30% / content right 70%
   ========================================================================== */

.rf-card-h {
    display: flex;
    align-items: stretch;
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-lg);
    box-shadow: var(--rf-shadow);
    overflow: hidden;
    transition: var(--rf-trans);
}

.rf-card-h:hover {
    box-shadow: var(--rf-shadow-md);
    transform: translateY(-2px);
    border-color: var(--rf-primary);
}

.rf-card-h-img {
    flex: 0 0 30%;
    min-width: 0;
    position: relative;
    background: var(--rf-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    border-right: 1px solid var(--rf-border);
}

.rf-card-h-img img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.rf-card-h-body {
    flex: 1;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    min-width: 0;
}

.rf-card-h-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.rf-card-h-title {
    font-family: var(--rf-font-head);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rf-text);
    margin: 0;
    line-height: 1.3;
}

.rf-card-h-title a {
    color: inherit;
}

.rf-card-h-title a:hover {
    color: var(--rf-primary);
}

.rf-card-h-score {
    flex-shrink: 0;
}

.rf-card-h-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.rf-card-h-excerpt {
    font-size: .875rem;
    color: var(--rf-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rf-card-h-facts {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: .75rem;
    border-top: 1px solid var(--rf-border);
}

.rf-card-h-fact {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.rf-card-h-fact-label {
    font-size: .7rem;
    color: var(--rf-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
}

.rf-card-h-fact-value {
    font-size: .875rem;
    font-weight: 700;
    color: var(--rf-text);
}

.rf-card-h-fact-value.is-accent {
    color: var(--rf-accent);
}

.rf-card-h-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .25rem;
}

/* Rank badge */
.rf-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--rf-primary);
    color: #fff;
    font-weight: 700;
    font-size: .825rem;
    border-radius: 50%;
    flex-shrink: 0;
    position: absolute;
    top: .75rem;
    left: .75rem;
}

/* ==========================================================================
   PLATFORM CARD — vertical (used in featured sections)
   ========================================================================== */

.rf-platform-card {
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-lg);
    box-shadow: var(--rf-shadow);
    overflow: hidden;
    transition: var(--rf-trans);
    display: flex;
    flex-direction: column;
}

.rf-platform-card:hover {
    box-shadow: var(--rf-shadow-md);
    transform: translateY(-3px);
}

.rf-platform-card-img {
    background: var(--rf-bg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    border-bottom: 1px solid var(--rf-border);
}

.rf-platform-card-img img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.rf-platform-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.rf-platform-card-title {
    font-family: var(--rf-font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--rf-text);
    margin: 0;
}

.rf-platform-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.rf-platform-card-footer {
    padding: 1rem 1.25rem;
    background: var(--rf-bg);
    border-top: 1px solid var(--rf-border);
}

/* ==========================================================================
   QUICK FACTS TABLE
   ========================================================================== */

.rf-quick-facts {
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-lg);
    overflow: hidden;
    margin: 1.5rem 0;
}

.rf-quick-facts-title {
    background: var(--rf-primary);
    color: #fff;
    padding: .85rem 1.25rem;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin: 0;
}

.rf-quick-facts table {
    width: 100%;
    border-collapse: collapse;
}

.rf-quick-facts td {
    padding: .7rem 1.25rem;
    border-bottom: 1px solid var(--rf-border);
    font-size: .9rem;
    vertical-align: middle;
}

.rf-quick-facts tr:last-child td {
    border-bottom: none;
}

.rf-quick-facts td:first-child {
    color: var(--rf-muted);
    font-weight: 600;
    width: 45%;
}

.rf-quick-facts td:last-child {
    font-weight: 600;
    color: var(--rf-text);
}

.rf-quick-facts .rf-fact-check {
    color: var(--rf-success);
}

.rf-quick-facts .rf-fact-cross {
    color: var(--rf-danger);
}

/* ==========================================================================
   RATING BARS
   ========================================================================== */

.rf-rating-bars {
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-lg);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.rf-rating-bars-title {
    font-family: var(--rf-font-head);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    color: var(--rf-text);
}

.rf-rating-bar {
    display: grid;
    grid-template-columns: 140px 1fr 50px;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
}

.rf-rating-bar:last-child {
    margin-bottom: 0;
}

.rf-rating-bar-label {
    font-size: .85rem;
    color: var(--rf-text);
    font-weight: 600;
    white-space: nowrap;
}

.rf-rating-bar-track {
    height: 8px;
    background: var(--rf-border);
    border-radius: 999px;
    overflow: hidden;
}

.rf-rating-bar-fill {
    height: 100%;
    background: linear-gradient(to right, var(--rf-accent), #FF7A5E);
    border-radius: 999px;
    transition: width .8s ease;
}

.rf-rating-bar-value {
    font-size: .85rem;
    font-weight: 700;
    color: var(--rf-accent);
    text-align: right;
}

/* Star distribution (hearts) */
.rf-distribution {
    margin: 1rem 0;
}

.rf-dist-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .4rem;
}

.rf-dist-label {
    font-size: .8rem;
    color: var(--rf-muted);
    width: 40px;
    flex-shrink: 0;
}

.rf-dist-bar {
    flex: 1;
    height: 6px;
    background: var(--rf-border);
    border-radius: 999px;
    overflow: hidden;
}

.rf-dist-fill {
    height: 100%;
    background: var(--rf-accent);
    border-radius: 999px;
}

.rf-dist-count {
    font-size: .8rem;
    color: var(--rf-muted);
    width: 30px;
    text-align: right;
    flex-shrink: 0;
}

/* ==========================================================================
   EXPERT NOTE BLOCK
   ========================================================================== */

.rf-expert-note {
    background: linear-gradient(135deg, var(--rf-bg) 0%, #E8F4FA 100%);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-xl);
    padding: 2.5rem 3rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin: 2rem 0;
}

.rf-expert-avatar {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--rf-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--rf-font-head);
    font-size: 1.5rem;
    font-weight: 700;
    overflow: hidden;
}

.rf-expert-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rf-expert-content {
    flex: 1;
}

.rf-expert-quote {
    font-family: var(--rf-font-head);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--rf-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.rf-expert-quote::before { content: '\201C'; }
.rf-expert-quote::after  { content: '\201D'; }

.rf-expert-name {
    font-weight: 700;
    font-size: .9rem;
    color: var(--rf-text);
}

.rf-expert-title {
    font-size: .8rem;
    color: var(--rf-muted);
}

/* ==========================================================================
   COMPARISON ROW
   ========================================================================== */

.rf-comparison-table {
    overflow-x: auto;
    border-radius: var(--rf-radius-lg);
    box-shadow: var(--rf-shadow);
}

.rf-comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--rf-surface);
    min-width: 500px;
}

.rf-comparison-table th {
    background: var(--rf-primary);
    color: #fff;
    padding: .85rem 1.25rem;
    text-align: left;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.rf-comparison-table td {
    padding: .85rem 1.25rem;
    border-bottom: 1px solid var(--rf-border);
    font-size: .9rem;
    vertical-align: middle;
}

.rf-comparison-table tr:last-child td {
    border-bottom: none;
}

.rf-comparison-table tr:nth-child(even) td {
    background: var(--rf-bg);
}

.rf-comparison-table .rf-yes { color: var(--rf-success); font-weight: 700; }
.rf-comparison-table .rf-no  { color: var(--rf-danger);  }

/* ==========================================================================
   AFFILIATE CTA BOX
   ========================================================================== */

.rf-affiliate-box {
    background: linear-gradient(135deg, var(--rf-primary) 0%, var(--rf-secondary) 100%);
    border-radius: var(--rf-radius-xl);
    padding: 2rem 2.5rem;
    text-align: center;
    color: #fff;
    margin: 2rem 0;
}

.rf-affiliate-box h3 {
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: .5rem;
}

.rf-affiliate-box p {
    color: rgba(255,255,255,.8);
    max-width: 48ch;
    margin: 0 auto 1.5rem;
    font-size: .95rem;
}

.rf-affiliate-disclaimer {
    font-size: .75rem;
    color: rgba(255,255,255,.5);
    margin-top: 1rem;
}

/* ==========================================================================
   ARTICLE CARD (blog posts)
   ========================================================================== */

.rf-article-card {
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-lg);
    box-shadow: var(--rf-shadow);
    overflow: hidden;
    transition: var(--rf-trans);
    display: flex;
    flex-direction: column;
}

.rf-article-card:hover {
    box-shadow: var(--rf-shadow-md);
    transform: translateY(-2px);
}

.rf-article-card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.rf-article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.rf-article-card:hover .rf-article-card-img img {
    transform: scale(1.04);
}

.rf-article-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.rf-article-card-cat {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--rf-accent);
}

.rf-article-card-title {
    font-family: var(--rf-font-head);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.rf-article-card-title a {
    color: var(--rf-text);
}

.rf-article-card-title a:hover {
    color: var(--rf-primary);
}

.rf-article-card-excerpt {
    font-size: .85rem;
    color: var(--rf-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: auto;
}

.rf-article-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: .8rem;
    color: var(--rf-muted);
    padding-top: .75rem;
    border-top: 1px solid var(--rf-border);
    margin-top: auto;
}

/* ==========================================================================
   WIDGETS (sidebar)
   ========================================================================== */

.rf-widget {
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--rf-shadow);
}

.rf-widget-title {
    font-family: var(--rf-font-head);
    font-size: 1rem;
    color: var(--rf-text);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--rf-accent);
}

/* Ranking widget */
.rf-widget-ranking li {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem 0;
    border-bottom: 1px solid var(--rf-border);
    font-size: .875rem;
}

.rf-widget-ranking li:last-child {
    border-bottom: none;
}

.rf-widget-rank-num {
    width: 24px;
    height: 24px;
    background: var(--rf-primary);
    color: #fff;
    border-radius: 50%;
    font-size: .7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rf-widget-rank-name {
    flex: 1;
    font-weight: 600;
    color: var(--rf-text);
}

.rf-widget-rank-score {
    font-size: .8rem;
    color: var(--rf-accent);
    font-weight: 700;
}

/* ==========================================================================
   POST META
   ========================================================================== */

.rf-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: .825rem;
    color: var(--rf-muted);
    margin-bottom: 1.5rem;
}

.rf-post-meta a {
    color: var(--rf-muted);
}

.rf-post-meta a:hover {
    color: var(--rf-primary);
}

.rf-post-meta-sep::before {
    content: '·';
}

/* ==========================================================================
   NOTICE BOXES
   ========================================================================== */

.rf-notice {
    padding: 1rem 1.25rem;
    border-radius: var(--rf-radius);
    margin: 1rem 0;
    font-size: .9rem;
    display: flex;
    gap: .75rem;
    align-items: flex-start;
}

.rf-notice-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.rf-notice-success {
    background: #EAF7EF;
    border-left: 3px solid var(--rf-success);
    color: #155436;
}

.rf-notice-warning {
    background: #FFF8EC;
    border-left: 3px solid #E6A817;
    color: #7A5200;
}

.rf-notice-danger {
    background: #FDEFED;
    border-left: 3px solid var(--rf-danger);
    color: #7A1F0F;
}

.rf-notice-info {
    background: #EFF7FD;
    border-left: 3px solid var(--rf-secondary);
    color: #0D3A4F;
}
