/* ==========================================================================
   REVIEW & GUIDE PAGE STYLES - SWISS DESIGN SYSTEM
   Clean, sharp, no roundness - International Typographic Style
   ========================================================================== */

:root {
    --swiss-red: #FF3B30;
    --swiss-black: #111111;
    --swiss-off-white: #F5F5F0;
    --swiss-grid-color-light: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   DARK HEADER VARIANTS - TEXT VISIBILITY FIX
   ========================================================================== */

/* Guide Header - Dark Background */
.swiss-page-header--guide {
    background-color: var(--swiss-black);
    color: var(--swiss-off-white);
}

.swiss-page-header--guide::before {
    background-image: 
        linear-gradient(var(--swiss-grid-color-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--swiss-grid-color-light) 1px, transparent 1px);
}

.swiss-page-header--guide .swiss-page-header__title {
    color: var(--swiss-off-white);
}

.swiss-page-header--guide .swiss-page-header__description {
    color: var(--swiss-off-white);
    opacity: 0.85;
}

.swiss-page-header--guide .swiss-page-header__divider {
    background-color: var(--swiss-red);
}

.swiss-page-header--guide .swiss-breadcrumb__item {
    color: rgba(255, 255, 255, 0.6);
}

.swiss-page-header--guide .swiss-breadcrumb__item::after {
    color: rgba(255, 255, 255, 0.3);
}

.swiss-page-header--guide .swiss-breadcrumb__item--current {
    color: var(--swiss-red);
}

.swiss-page-header--guide .swiss-breadcrumb a:hover {
    color: var(--swiss-red);
}

.swiss-page-header--guide .swiss-meta {
    color: var(--swiss-off-white);
}

.swiss-page-header--guide .swiss-meta__item {
    color: var(--swiss-off-white);
}

.swiss-page-header--guide .swiss-meta__separator {
    color: var(--swiss-red);
    opacity: 0.6;
}

.swiss-page-header--guide .swiss-page-header__meta {
    border-top-color: rgba(255, 255, 255, 0.15);
}

.swiss-page-header--guide .reading-progress-info {
    color: rgba(255, 255, 255, 0.7);
}

.swiss-page-header--guide .reading-progress-info__item {
    color: rgba(255, 255, 255, 0.7);
}

.swiss-page-header--guide .swiss-difficulty {
    background-color: transparent;
}

.swiss-page-header--guide .swiss-badge--guide {
    background-color: var(--swiss-red);
    border-color: var(--swiss-red);
    color: white;
}

/* Review Header - Dark Background */
.swiss-page-header--review {
    background-color: var(--swiss-black);
    color: var(--swiss-off-white);
}

.swiss-page-header--review::before {
    background-image: 
        linear-gradient(var(--swiss-grid-color-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--swiss-grid-color-light) 1px, transparent 1px);
}

.swiss-page-header--review .swiss-page-header__title {
    color: var(--swiss-off-white);
}

.swiss-page-header--review .swiss-page-header__description {
    color: var(--swiss-off-white);
    opacity: 0.85;
}

.swiss-page-header--review .swiss-page-header__divider {
    background-color: var(--swiss-red);
}

.swiss-page-header--review .swiss-breadcrumb__item {
    color: rgba(255, 255, 255, 0.6);
}

.swiss-page-header--review .swiss-breadcrumb__item::after {
    color: rgba(255, 255, 255, 0.3);
}

.swiss-page-header--review .swiss-breadcrumb__item--current {
    color: var(--swiss-red);
}

.swiss-page-header--review .swiss-breadcrumb a:hover {
    color: var(--swiss-red);
}

.swiss-page-header--review .swiss-meta {
    color: var(--swiss-off-white);
}

.swiss-page-header--review .swiss-meta__item {
    color: var(--swiss-off-white);
}

.swiss-page-header--review .swiss-meta__separator {
    color: var(--swiss-red);
    opacity: 0.6;
}

.swiss-page-header--review .swiss-page-header__meta {
    border-top-color: rgba(255, 255, 255, 0.15);
}

.swiss-page-header--review .reading-progress-info {
    color: rgba(255, 255, 255, 0.7);
}

.swiss-page-header--review .reading-progress-info__item {
    color: rgba(255, 255, 255, 0.7);
}

.swiss-page-header--review .swiss-rating__value {
    color: var(--swiss-red);
}

.swiss-page-header--review .swiss-rating__max {
    color: var(--swiss-off-white);
    opacity: 0.6;
}

.swiss-page-header--review .swiss-badge--review {
    background-color: transparent;
    border-color: var(--swiss-red);
    color: var(--swiss-red);
}

/* ==========================================================================
   POST WIDTH - WIDER CONTENT
   ========================================================================== */

.review-post .swiss-post-body .container,
.guide-post .swiss-post-body .container {
    max-width: 1400px;
}

.review-post .swiss-post-content,
.guide-post .swiss-post-content {
    max-width: 900px;
}

@media (min-width: 1024px) {
    .review-post .swiss-post-layout,
    .guide-post .swiss-post-layout {
        grid-template-columns: 280px 1fr;
        gap: 5rem;
    }
}

/* ==========================================================================
   SWISS TABLE STYLING - NO ROUNDNESS
   ========================================================================== */

.review-post .swiss-post-content table,
.guide-post .swiss-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    font-size: 0.9375rem;
    background: #ffffff;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    border: 2px solid var(--swiss-black);
}

.review-post .swiss-post-content th,
.guide-post .swiss-post-content th {
    font-family: var(--font-mono, 'JetBrains Mono', 'Fira Code', monospace);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: var(--swiss-black);
    color: #ffffff;
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 2px solid var(--swiss-black);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
}

.review-post .swiss-post-content th:last-child,
.guide-post .swiss-post-content th:last-child {
    border-right: none;
}

.review-post .swiss-post-content td,
.guide-post .swiss-post-content td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--swiss-off-white);
    border-right: 1px solid var(--swiss-off-white);
    color: var(--swiss-black);
    vertical-align: top;
}

.review-post .swiss-post-content td:last-child,
.guide-post .swiss-post-content td:last-child {
    border-right: none;
}

.review-post .swiss-post-content tr:last-child td,
.guide-post .swiss-post-content tr:last-child td {
    border-bottom: none;
}

.review-post .swiss-post-content tbody tr:hover td,
.guide-post .swiss-post-content tbody tr:hover td {
    background-color: var(--swiss-off-white);
}

.review-post .swiss-post-content tbody tr:nth-child(even) td,
.guide-post .swiss-post-content tbody tr:nth-child(even) td {
    background-color: rgba(245, 245, 240, 0.5);
}

.review-post .swiss-post-content tbody tr:nth-child(even):hover td,
.guide-post .swiss-post-content tbody tr:nth-child(even):hover td {
    background-color: var(--swiss-off-white);
}

/* Table wrapper for overflow */
.review-post .swiss-post-content .table-wrapper,
.guide-post .swiss-post-content .table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 2.5rem 0;
    -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   REMOVE ALL ROUNDNESS - SWISS DESIGN
   ========================================================================== */

.review-post .swiss-verdict-box,
.guide-post .swiss-learnings-box {
    border-radius: 0;
}

.review-post .swiss-post-content pre,
.guide-post .swiss-post-content pre {
    border-radius: 0;
}

.review-post .swiss-post-content code,
.guide-post .swiss-post-content code {
    border-radius: 0;
}

.review-post .swiss-post-content blockquote,
.guide-post .swiss-post-content blockquote {
    border-radius: 0;
}

.review-post .swiss-post-content img,
.guide-post .swiss-post-content img {
    border-radius: 0;
}

.review-post .swiss-post-content figcaption,
.guide-post .swiss-post-content figcaption {
    border-radius: 0;
}

.review-post .swiss-post-footer,
.guide-post .swiss-post-footer {
    border-radius: 0;
}

.review-post .swiss-post-tag,
.guide-post .swiss-post-tag {
    border-radius: 0;
}

.review-post .swiss-author-card,
.guide-post .swiss-author-card {
    border-radius: 0;
}

.review-post .swiss-related-card,
.guide-post .swiss-related-card {
    border-radius: 0;
}

.review-post .swiss-post-hero__wrapper,
.guide-post .swiss-post-hero__wrapper {
    border-radius: 0;
}

.review-post .swiss-post-hero__image,
.guide-post .swiss-post-hero__image {
    border-radius: 0;
}

/* ==========================================================================
   VERDICT BOX - SWISS STYLE
   ========================================================================== */

.swiss-verdict-box {
    position: relative;
    background-color: var(--swiss-off-white);
    border: 2px solid var(--swiss-black);
    border-radius: 0;
    padding: 2rem;
    margin: 3rem 0;
}

.swiss-verdict-box__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--swiss-black);
    margin-bottom: 1.5rem;
}

.swiss-verdict-box__title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.swiss-verdict-box__title {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--swiss-red);
}

.swiss-verdict-box__title::before {
    content: '/// ';
}

.swiss-verdict-box__rating {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    background-color: var(--swiss-black);
    padding: 0.75rem 1.25rem;
}

.swiss-verdict-box__rating-value {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.swiss-verdict-box__rating-max {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.swiss-verdict-box__summary {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--swiss-black);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.swiss-verdict-box__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .swiss-verdict-box__grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.swiss-verdict-box__pros,
.swiss-verdict-box__cons {
    position: relative;
}

.swiss-verdict-box__heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid currentColor;
}

.swiss-verdict-box__heading--pros {
    color: #059669;
}

.swiss-verdict-box__heading--cons {
    color: var(--swiss-red);
}

.swiss-verdict-box__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.swiss-verdict-box__list li {
    position: relative;
    padding-left: 1.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--swiss-black);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.swiss-verdict-box__list li:last-child {
    border-bottom: none;
}

.swiss-verdict-box__pros .swiss-verdict-box__list li::before {
    content: '+';
    position: absolute;
    left: 0;
    top: 0.5rem;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 1rem;
    font-weight: 700;
    color: #059669;
}

.swiss-verdict-box__cons .swiss-verdict-box__list li::before {
    content: '–';
    position: absolute;
    left: 0;
    top: 0.5rem;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 1rem;
    font-weight: 700;
    color: var(--swiss-red);
}

/* ==========================================================================
   LEARNINGS BOX - GUIDE SPECIFIC
   ========================================================================== */

.swiss-learnings-box {
    position: relative;
    background-color: var(--swiss-off-white);
    border: 2px solid var(--swiss-black);
    border-radius: 0;
    padding: 2rem;
    margin-bottom: 3rem;
}

.swiss-learnings-box__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--swiss-black);
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--swiss-black);
}

.swiss-learnings-box__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.swiss-learnings-box__list li {
    position: relative;
    padding-left: 2rem;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--swiss-black);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.swiss-learnings-box__list li:last-child {
    border-bottom: none;
}

.swiss-learnings-box__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 10px;
    height: 10px;
    background-color: var(--swiss-red);
}

/* ==========================================================================
   READING PROGRESS BAR
   ========================================================================== */

.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: var(--swiss-red);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ==========================================================================
   GUIDE/REVIEW SPECIFIC BADGES
   ========================================================================== */

.swiss-difficulty {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid currentColor;
    border-radius: 0;
}

.swiss-difficulty--beginner {
    color: #059669;
    background-color: rgba(5, 150, 105, 0.1);
    border-color: #059669;
}

.swiss-difficulty--intermediate {
    color: #d97706;
    background-color: rgba(217, 119, 6, 0.1);
    border-color: #d97706;
}

.swiss-difficulty--advanced {
    color: var(--swiss-red);
    background-color: rgba(255, 59, 48, 0.1);
    border-color: var(--swiss-red);
}

/* ==========================================================================
   RESPONSIVE TABLES
   ========================================================================== */

@media (max-width: 768px) {
    .review-post .swiss-post-content table,
    .guide-post .swiss-post-content table {
        font-size: 0.8125rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .review-post .swiss-post-content th,
    .guide-post .swiss-post-content th,
    .review-post .swiss-post-content td,
    .guide-post .swiss-post-content td {
        padding: 0.75rem 1rem;
        min-width: 100px;
    }
    
    .swiss-verdict-box {
        padding: 1.5rem;
    }
    
    .swiss-verdict-box__header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .swiss-verdict-box__rating {
        align-self: flex-start;
    }
}

/* ==========================================================================
   HERO IMAGE
   ========================================================================== */

.review-post .swiss-post-hero,
.guide-post .swiss-post-hero {
    margin-top: 0;
    margin-bottom: 3rem;
}

.review-post .swiss-post-hero__wrapper,
.guide-post .swiss-post-hero__wrapper {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    border: 2px solid var(--swiss-black);
}

.review-post .swiss-post-hero__image,
.guide-post .swiss-post-hero__image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 0;
}

/* ==========================================================================
   CONTENT TYPOGRAPHY ENHANCEMENTS
   ========================================================================== */

.review-post .swiss-post-content h2,
.guide-post .swiss-post-content h2 {
    scroll-margin-top: 100px;
}

.review-post .swiss-post-content h2::after,
.guide-post .swiss-post-content h2::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    width: 60px;
    height: 6px;
    background-color: var(--swiss-red);
}

/* Horizontal rules - Swiss style */
.review-post .swiss-post-content hr,
.guide-post .swiss-post-content hr {
    border: none;
    height: 4px;
    background-color: var(--swiss-black);
    margin: 3rem 0;
    position: relative;
}

.review-post .swiss-post-content hr::before,
.guide-post .swiss-post-content hr::before {
    display: none;
}

.review-post .swiss-post-content hr::after,
.guide-post .swiss-post-content hr::after {
    display: none;
}
