/* === Ride Tested Category Browser CSS === */

/* 1. Reset and variables */
:root {
    --text-primary: #121826;     /* Deep navy/black for ruggedness */
    --text-secondary: #4b5563;   /* Slate gray for excerpts and support text */
    --text-tertiary: #94a3b8;    /* Lighter slate for standard block */
    --accent: #f94d1c;           /* Restrained orange */
    --accent-hover: #d83d12;
    --bg-main: #f8fafc;          /* Clean light background */
    --bg-panel: #ffffff;         /* White base for content */
    --bg-tab-inactive: #f1f5f9;  /* Quiet understated background */
    --bg-tab-active: #27272a;    /* Strong, elegant active state */
    --border-color: #e2e8f0;     /* Subtle dividers */
    
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 12px;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* 2. Container and Section Formatting */
.rt-category-browser {
    padding: 60px 20px;
    background-color: #f6f7f9; /* Match outer background to mockup */
}

.rt-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 3. Header Styling */
.rt-section-header {
    display: flex;
    flex-direction: row;
    margin-bottom: 40px;
}

.rt-heading-accent {
    width: 4px;
    background-color: var(--accent);
    margin-right: 20px;
    flex-shrink: 0;
}

.rt-heading-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rt-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.rt-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
}

/* 4. Desktop Layout Grid */
.rt-browser-layout {
    display: grid;
    /* User specifically requested horizontal gap of 10px */
    grid-template-columns: 240px 1fr;
    gap: 10px;
    align-items: flex-start;
}

/* 5. Navigation Sidebar */
.rt-category-nav {
    position: sticky;
    top: 20px;
}

.rt-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Slightly space items so they don't blend entirely */
}

.rt-cat-btn {
    width: 100%;
    text-align: left;
    background-color: #edebea;
    border: none;
    padding: 16px 20px;
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--radius-sm);
}

.rt-cat-btn:hover {
    background-color: #e2e0df;
}

.rt-cat-btn.active {
    background-color: #2e2c2b; /* Strong elegant state from mockup */
    color: #ffffff;
}

.rt-cat-arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid transparent;
    border-bottom: 2px solid transparent;
    transform: rotate(-45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.rt-cat-btn.active .rt-cat-arrow {
    border-color: var(--accent);
    opacity: 1;
}

/* 6. Reviews Panel Content */
.rt-reviews-panel {
    background-color: var(--bg-panel);
    border-radius: var(--radius-md);
    overflow: hidden;
    /* Soft shadow to elevate */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* 7. Review Row Component */
.rt-review-row {
    display: flex;
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
    align-items: center; /* keep image and text vertically centered to each other */
}

.rt-review-row:last-child {
    border-bottom: none;
}

.rt-review-row:hover {
    background-color: #fafafa;
}

.rt-review-thumb-wrapper {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    margin-right: 24px;
    background-color: #f1f5f9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rt-review-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Simulate product blending */
    mix-blend-mode: multiply;
}

.rt-review-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Precise baseline alignment within row */
}

.rt-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.rt-review-title {
    font-size: 1.125rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.rt-review-rating {
    background-color: #333;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    line-height: 1.5;
}

.rt-review-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
    font-style: italic; /* The design shows quotes/italic styling */
}

.rt-read-link {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s ease;
    align-self: flex-start;
}

.rt-read-link:hover {
    color: var(--accent-hover);
}

/* 8. Panel Footer (Browse All Link) */
.rt-panel-footer {
    display: block;
    text-align: center;
    padding: 24px;
    background-color: #fafafa;
    border-top: 1px solid var(--border-color);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    text-transform: uppercase;
    transition: background-color 0.2s ease;
}

.rt-panel-footer:hover {
    background-color: #f1f5f9;
}

/* 9. Editorial Standards Footer */
.rt-editorial-standards {
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.rt-standards-text {
    max-width: 600px;
}

.rt-standards-text strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.rt-standards-text p {
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-tertiary);
    margin: 0;
}

.rt-standards-icons {
    display: flex;
    gap: 16px;
}

/* 10. Responsive Breakpoints */
@media (max-width: 900px) {
    .rt-browser-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .rt-category-nav {
        position: static;
    }

    .rt-category-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px; /* Space for scrollbar */
        /* hide scrollbar */
        scrollbar-width: none; 
    }
    
    .rt-category-list::-webkit-scrollbar {
        display: none;
    }

    .rt-cat-btn {
        text-align: center;
        width: auto;
        white-space: nowrap;
        padding: 12px 24px;
    }
    
    .rt-cat-arrow {
        display: none; /* Hide arrows on mobile tabs */
    }

    .rt-editorial-standards {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .rt-section-header {
        margin-bottom: 24px;
    }
    
    .rt-title {
        font-size: 28px;
    }
    
    .rt-review-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    
    .rt-review-thumb-wrapper {
        margin-right: 0;
        margin-bottom: 16px;
        width: 80px;
        height: 80px;
    }
}
