/**
 * ComparaBike Custom Styles
 */

/* Base Styles */
body {
    margin: 0;
    padding: 0;
    padding-top: 70px; /* Compensate for fixed header */
    background: #f5f5f5;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header.header {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: 70px;
    max-height: 70px;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 0.5rem;
    padding-left: 0rem;
    color: #434a4c;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.sidebar-toggle:hover {
    color: #2a2d30;
}

.sidebar-toggle i {
    display: block;
}

.logo-icon {
    width: 120px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo-icon:hover {
    opacity: 0.8;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.desktop-nav {
    display: flex;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #434a4c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: #2a2d30;
}

/* Mobile Sidebar Styles */

#mobile-sidebar,
#mobile-sidebar.ui.sidebar {
    z-index: 1001 !important; /* Above dimmer (1000) */
}

#mobile-sidebar .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

#mobile-sidebar .header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #434a4c;
}

.sidebar-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #434a4c;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.sidebar-close:hover {
    color: #2a2d30;
}

#mobile-sidebar .body {
    padding: 1rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #434a4c;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.sidebar-item:hover {
    background: #f0f0f0;
    color: #2a2d30;
}

.sidebar-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-item span {
    font-weight: 500;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Content Section Base Styles */
.content-section {
    width: 100%;
    padding: 3rem 2rem;
}

.content-wrapper {
    max-width: 875px;
    width: 100%;
    margin: 0 auto;
}

/* Quiz Section */
.quiz-section {
    background: linear-gradient(135deg, #89BD89 0%, #434B5A 100%);
}

.hero-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.hero-content {
    display: flex;
    min-height: 528px;
    max-height: 600px;
}

.quiz-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-height: 100%;
    overflow-y: auto;
}

/* Carousel Section */
.carousel-section {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #000;
    max-height: 100%;
}

.carousel-section .ui.carousel {
    height: 100%;
    max-height: 100%;
}

.carousel-section .container {
    height: 100%;
    max-height: 100%;
}

.carousel-section .slide {
    height: 100%;
    max-height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-section .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 100%;
}


/* Quiz Intro Styles */
.quiz-intro {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100%;
}

.quiz-intro h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #434a4c;
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
}

.quiz-intro p {
    font-size: 1rem;
    color: #666;
    margin: 0 0 1.5rem 0;
}

/* Quiz Container Styles */
.quiz-container {
    display: none;
    flex: 1;
    flex-direction: column;
}

.quiz-container.active {
    display: flex;
}

.quiz-loader,
.quiz-error {
    text-align: center;
    padding: 2rem;
}

.quiz-progress {
    margin-bottom: 1rem;
}

.quiz-question-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.quiz-questions-container {
    flex: 1;
    display: flex;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.quiz-question {
    flex: 1;
    min-width: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    padding-bottom: 2px;
}

.quiz-question.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.quiz-question-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.quiz-question-header i {
    font-size: 1.2rem;
    color: #7fb069;
}

.quiz-question-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #434a4c;
    margin: 0;
    line-height: 1.3;
}

.quiz-question p {
    color: #666;
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
}

.quiz-choices {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

/* Framework Radio Button Customization */
.quiz-choices .ui.radio {
    padding: 0.75rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.quiz-choices .ui.radio:hover {
    background: #f9f9f9;
    border-color: #7fb069;
}

.quiz-choices .ui.radio input[type="radio"]:checked ~ .radio-circle::before {
    background: #7fb069;
}

.quiz-choices .ui.radio input[type="radio"]:checked ~ .radio-label {
    color: #434a4c;
    font-weight: 600;
}

.quiz-choices .ui.radio:has(input[type="radio"]:checked) {
    background: #e8f5e9;
    border-color: #7fb069;
}

.quiz-navigation {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
    gap: 0.75rem;
}

.quiz-nav-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.quiz-nav-button.next {
    background: #7fb069;
    color: white;
}

.quiz-nav-button.next:hover {
    background: #6a9a5e;
    transform: scale(1.05);
}

.quiz-nav-button.prev {
    background: #e0e0e0;
    color: #434a4c;
}

.quiz-nav-button.prev:hover {
    background: #d0d0d0;
}

.quiz-nav-button:disabled {
    opacity: 0.5;
}

/* Quiz Loader Styles */
.quiz-loader {
    text-align: center;
    padding: 2rem;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.quiz-loader.active {
    display: flex;
}

.quiz-loader .ui.loader {
    margin: 0 auto 1rem;
}

/* Quiz Error Styles */
.quiz-error {
    padding: 1.5rem;
    text-align: center;
    display: none;
}

.quiz-error.active {
    display: block;
}

/* Quiz Results Styles */
.quiz-results {
    display: none;
    flex: 1;
    flex-direction: column;
}

.quiz-results.active {
    display: flex;
}

.quiz-results h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #434a4c;
    margin: 0 0 0.75rem 0;
    text-align: center;
}

.result-item {
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-item .result-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #434a4c;
}

.result-item .result-score {
    font-size: 0.85rem;
    color: #666;
    padding: 0.3rem 0.6rem;
    background: #f0f0f0;
    border-radius: 4px;
}

.result-item:first-child {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #7fb069;
}

.result-item:first-child .result-score {
    background: #7fb069;
    color: white;
    font-weight: 600;
}

/* Bikes Section */
.bikes-section {
    background: #FDF4F4;
}

/* Unified Page Header Styles */
.page-header,
.bikes-header,
.brands-header,
.blog-header,
.compare-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h2,
.bikes-header h2,
.brands-header h2,
.blog-header h2,
.compare-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #434a4c;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.page-header p,
.bikes-header p,
.brands-header p,
.blog-header p,
.compare-header p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Blog section has white text on colored background */
.blog-section .blog-header h2,
.blog-section .page-header h2 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-section .blog-header p,
.blog-section .page-header p {
    color: rgba(255, 255, 255, 0.9);
}

.bikes-loader {
    text-align: center;
    padding: 3rem;
}

.bikes-container {
    margin-top: 2rem;
}

/* Bikes marketplace uses row system - no grid needed */
.bikes-marketplace-page {
    display: flex;
    gap: 2rem;
    position: relative;
}

/* Filter Categories */
.filter-category {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    gap: 5px;
    display: flex;
    flex-direction: column;
}

.filter-category:last-of-type {
    border-bottom: none;
}

.filter-category-title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-value {
    font-weight: 600;
    color: #89BD89;
    margin-left: 0.5rem;
}

/* Fixed Sidebar */
.bikes-sidebar-fixed {
    position: fixed;
    left: 0;
    top: 70px; /* Below header */
    width: 330px;
    height: calc(100vh - 70px);
    background: white;
    border-right: 1px solid #e0e0e0;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 50; /* Lower than header (z-index: 100) */
    padding: 1.5rem;
    padding-right: 1rem;
    will-change: transform; /* Optimize for fixed positioning */
}

.bikes-sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.bikes-sidebar-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #434B5A;
}

.bikes-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bikes-content-wrapper {
    margin-left: 350px; /* Space for sidebar */
    width: calc(100% - 350px);
}

.bikes-search-bar {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ui.button.mobile-filters-toggle {
    display: none;
}

.ui.button.mobile-filters-close {
    display: none;
}

.mobile-filters-dimmer {
    display: none;
}

.bikes-search-controls {
    display: block;
}

.bikes-search-bar .ui.input {
    position: relative;
}

.bikes-search-bar .ui.input i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

/* Home Page Search Bar Styles */
.home-search-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #89BD89 0%, #6FA86F 100%);
    margin-bottom: 0;
}

.home-bikes-search-bar {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.home-search-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.home-search-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    margin: 0 0 2rem 0;
    font-weight: 400;
}

.home-search-wrapper {
    position: relative;
}

.home-search-input {
    position: relative;
}

.home-search-input input {
    background: white;
    border: 3px solid white;
    border-radius: 50px;
    padding: 1.25rem 3.5rem 1.25rem 2rem;
    font-size: 1.1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    height: auto;
    color: #333;
}

.home-search-input input:hover {
    border-color: #f0f0f0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.home-search-input input:focus {
    border-color: #e0e0e0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    outline: none;
    cursor: text;
    background: #fafafa;
}

.home-search-input input::placeholder {
    color: #999;
    font-weight: 400;
}

.home-search-input i {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #89BD89;
    font-size: 1.3rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.home-search-input:hover i {
    color: #6FA86F;
}

@media (max-width: 768px) {
    .home-search-section {
        padding: 2.5rem 0;
    }
    
    .home-search-title {
        font-size: 2rem;
    }
    
    .home-search-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .home-search-input input {
        padding: 1rem 3rem 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .home-search-input i {
        right: 1.25rem;
        font-size: 1.1rem;
    }
}

.bikes-sidebar-content .filter-group,
.bikes-marketplace-page .filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bikes-sidebar-content .filter-group label,
.bikes-marketplace-page .filter-group label {
    display: block;
    margin-bottom: 0;
    font-weight: 600;
    color: #434B5A;
    font-size: 0.9rem;
}

.bikes-sidebar-content .filter-actions,
.bikes-marketplace-page .filter-actions {
    margin-top: 0.5rem;
}

.bikes-marketplace-page .bikes-container {
    margin-top: 2rem;
}

/* Force cards to match height */
.bikes-container.ui.row,
#blog-container.ui.row {
    align-items: stretch;
}

.bike-card-wrapper {
    display: flex;
    flex-direction: column;
    min-width: 250px !important;
    max-width: 400px !important;
}

.bike-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    flex: 1;
}

.bike-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.bike-card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f0f0f0;
}

.bike-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bike-card:hover .bike-card-image img {
    transform: scale(1.05);
}

.bike-card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    border-top: 2px solid #e0e0e0;
    flex: 1;
    min-height: 0;
}

.bike-brand-tag {
    margin-bottom: 0.75rem;
}

.bike-brand-tag .ui.tag {
    margin: 0;
    text-decoration: none !important;
}

.bike-brand-tag .ui.tag a {
    color: inherit;
    display: inline-block;
    width: 100%;
    height: 100%;
    transition: all 0.2s ease;
}

.bike-brand-tag .ui.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background-color: #16ab39 !important;
    color: white !important;
}

.bike-brand-tag .ui.tag a:hover {
    opacity: 1;
    text-decoration: none;
}

.bike-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2a2d30;
    margin: 0 0 1rem 0;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

/* Bike title on index page - same size as blog title on index */
#bikes-section .bike-title {
    font-size: 1.1rem;
    margin: 0 0 0.75rem 0;
}

.bike-category {
    margin-bottom: 0.75rem;
}

.bike-category .category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f0f0f0;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #666;
}

.bike-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #89BD89;
    margin-bottom: 1rem;
}

/* Bikes Marketplace Page */
.bikes-marketplace-page .bikes-filters {
    margin-bottom: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bikes-marketplace-page .search-bar {
    margin-bottom: 1.5rem;
}

.bikes-marketplace-page .search-bar .ui.input {
    position: relative;
}

.bikes-marketplace-page .search-bar .ui.input i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.bikes-marketplace-page .filters-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.bikes-marketplace-page .filter-group {
    flex: 1;
    min-width: 150px;
}

.bikes-marketplace-page .filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #434B5A;
    font-size: 0.9rem;
}

.bikes-marketplace-page .filter-actions {
    display: flex;
    align-items: flex-end;
}

.bikes-marketplace-page .bikes-no-results {
    text-align: center;
    padding: 3rem;
}

.bikes-marketplace-page .bikes-no-results .ui.message {
    display: inline-block;
    padding: 2rem;
}

.bikes-marketplace-page .bikes-no-results .ui.message i {
    font-size: 2rem;
    color: #999;
    margin-bottom: 1rem;
}

/* Blog Section */
.blog-section {
    background: #b9d6b6;
}

/* Brands Page Styles */
.brands-page {
    min-height: calc(100vh - 140px);
}

.brands-section {
    padding: 3rem 0;
}

/* Brands header now uses unified styles above */

.brand-item {
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    border-radius: 8px;
}

.brand-item:hover {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Brand Info Section (for brand_bikes page) */
.brand-info-section {
    margin-bottom: 1.5rem;
}

.brand-info-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.bikes-search-bar .brand-info-section {
    margin-bottom: 1.5rem;
}

.brand-info-logo {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    overflow: hidden;
    border-radius: 12px;
}

.brand-info-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-info-text {
    flex: 1;
}

.brand-info-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.brand-info-description {
    margin: 0;
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    line-clamp: 3;
}

@media (max-width: 768px) {
    .brand-info-content {
        flex-direction: column;
        text-align: center;
    }
    
    .brand-info-logo {
        width: 100px;
        height: 100px;
    }
    
    .brand-info-name {
        font-size: 1.25rem;
    }
    
    .brand-info-description {
        font-size: 0.9rem;
    }
}

.brand-description {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    max-height: 4.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.brand-logo {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
}

.brand-logo img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.brand-info {
    text-align: center;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #434a4c;
}

.brand-description {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

.brands-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.brands-pagination .pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brands-pagination .pagination-pages {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brands-pagination .pagination-ellipsis {
    padding: 0 0.5rem;
    color: #6c757d;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Blog header styles now use unified styles above */

.blog-loader {
    text-align: center;
    padding: 3rem;
    color: white;
}

.blog-loader p {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1rem;
}

.blog-posts-container {
    margin-top: 2rem;
}

/* Blog posts on index page - smaller cards, 3 per row */
/* Using row system - no grid needed */

#blog-section .blog-card-image {
    height: 180px;
}

#blog-section .blog-card-content {
    padding: 1.25rem;
    min-height: auto;
}

#blog-section .blog-title {
    font-size: 1.1rem;
    margin: 0 0 0.75rem 0;
}

#blog-section .blog-excerpt {
    font-size: 0.85rem;
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
}

#blog-section .blog-date {
    font-size: 0.75rem;
}

.blog-card-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Blog card - if it's directly in the row, it needs to be a flex container */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* If blog card is inside a wrapper, the wrapper should handle height */
.blog-card-wrapper .blog-card {
    flex: 1;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f0f0f0;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-share-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #89BD89;
    border: none;
    color: white;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10;
}

.blog-share-btn:hover {
    background: white;
    color: #2a2d30;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.blog-share-btn i {
    font-size: 1rem;
}

/* Bike Link Button (similar to blog share button) */
.bike-link-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #89BD89;
    border: none;
    color: white;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10;
}

.bike-link-btn:hover {
    background: white;
    color: #2a2d30;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bike-link-btn i {
    font-size: 1rem;
}

.blog-card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    border-top: 2px solid #e0e0e0;
    flex: 1;
    min-height: 0;
}

.blog-author-tag {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    min-width: 0;
}

.blog-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2a2d30;
    margin: 0 0 1rem 0;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #555;
    margin: 0 0 1.25rem 0;
    line-height: 1.6;
    font-weight: 400;
    flex: 1;
    min-height: 0;
}

.blog-date {
    font-size: 0.85rem;
    color: #777;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.blog-date i {
    font-size: 0.8rem;
    opacity: 0.7;
}

.blog-load-more-wrapper {
    text-align: center;
    margin-top: 3rem;
}

.bikes-load-more-wrapper {
    text-align: center;
    margin-top: 3rem;
}

.bikes-load-more-wrapper a {
    text-decoration: none;
}

/* Comparison Page Styles */
.compare-page {
    padding: 2rem 0;
}

/* Compare header now uses unified styles above */

.compare-empty-state {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.06);
    max-width: 640px;
    margin: 2rem auto 0 auto;
}

.compare-empty-icon {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: rgba(137, 189, 137, 0.18);
    color: #1e8449;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.compare-empty-icon i {
    font-size: 2rem;
}

.compare-empty-content {
    min-width: 0;
}

.compare-empty-title {
    font-weight: 800;
    color: #2a2d30;
    font-size: 1.1rem;
    line-height: 1.3;
}

.compare-empty-text {
    margin-top: .35rem;
    color: #5d6b6e;
    line-height: 1.45;
}

.compare-empty-actions {
    margin-top: 1.25rem;
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Compare table header actions */
.compare-table-header-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.compare-table-header-actions .ui.button {
    margin: 0 !important;
}

.compare-loader,
.compare-error {
    margin: 2rem 0;
}

.compare-container {
    margin-top: 2rem;
}

.compare-table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.compare-table-wrapper.dragging {
    cursor: grabbing;
}

.compare-table-wrapper.dragging * {
    pointer-events: none;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.compare-table thead {
    background-color: #89BD89;
    color: white;
}

.compare-table th {
    padding: 1.5rem 1rem;
    text-align: left;
    font-weight: 600;
    vertical-align: top;
}

.compare-table th.compare-attribute {
    min-width: 200px;
    position: sticky;
    left: 0;
    background-color: #89BD89;
    z-index: 10;
    height: 100%;
    display: table-cell;
    vertical-align: bottom;
}

.compare-table th.compare-bike-column {
    min-width: 250px;
    text-align: center;
    vertical-align: top;
}

.compare-bike-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.compare-bike-image {
    width: 100%;
    max-width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.compare-bike-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compare-bike-name {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

.compare-bike-brand {
    margin-top: 0.25rem;
}

.compare-bike-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-top: 0.5rem;
}

.compare-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s;
}

.compare-table tbody tr:hover {
    background: #f9f9f9;
}

.compare-table tbody tr:last-child {
    border-bottom: none;
}

.compare-table td {
    padding: 1rem;
    vertical-align: top;
}

.compare-table td.compare-attribute-label {
    font-weight: 600;
    color: #434B5A;
    background: #daf7e3;
    position: sticky;
    left: 0;
    z-index: 5;
    min-width: 200px;
}

.compare-attribute-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.35rem;
    color: #5d6b6e;
    cursor: help;
}

.compare-attribute-help i {
    font-size: 0.85rem;
}

.cb-tooltip-trigger {
    position: relative;
}

.cb-tooltip-trigger::after {
    content: attr(data-cb-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(4px);
    background: #2a2d30;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.35;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    width: max-content;
    max-width: 240px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    z-index: 40;
}

.cb-tooltip-trigger::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 5px);
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #2a2d30;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 41;
}

.cb-tooltip-trigger:hover::after,
.cb-tooltip-trigger:hover::before,
.cb-tooltip-trigger:focus::after,
.cb-tooltip-trigger:focus::before,
.cb-tooltip-trigger:focus-visible::after,
.cb-tooltip-trigger:focus-visible::before,
.cb-tooltip-trigger:active::after,
.cb-tooltip-trigger:active::before {
    opacity: 1;
    visibility: visible;
}

.cb-tooltip-trigger:hover::after,
.cb-tooltip-trigger:focus::after,
.cb-tooltip-trigger:focus-visible::after {
    transform: translateX(-50%) translateY(0);
}

.compare-table td.compare-attribute-value {
    text-align: center;
    color: #555;
    min-width: 250px;
}

/* Compare visit button now uses ui button library - styles removed */

.compare-table td.compare-attribute-value i {
    margin-left: 0.25rem;
    font-size: 0.85em;
}

/* Responsive */
@media (max-width: 768px) {
    .compare-header h2 {
        font-size: 2rem;
    }
    
    .compare-table th.compare-bike-column,
    .compare-table td.compare-attribute-value {
        min-width: 200px;
    }
    
    .compare-bike-image {
        max-width: 150px;
        height: 120px;
    }
}


/* Responsive Styles */
@media (max-width: 768px) {
    body {
        padding-top: 0; /* Remove padding since header is not fixed on mobile */
    }
    
    .header {
        padding: 0.5rem 1rem;
        min-height: 70px;
        max-height: 70px;
    }

    .logo-container {
        flex: 0 0 auto;
    }

    .logo-icon {
        width: 100px;
        height: 50px;
    }

    .sidebar-toggle {
        display: block;
        flex: 0 0 auto;
    }

    .desktop-nav {
        display: none;
    }

    #mobile-sidebar {
        display: block;
    }

    .hero-content {
        flex-direction: column;
        min-height: auto;
    }

    .carousel-section {
        min-height: 300px;
    }

    .content-section {
        padding: 2rem 1rem;
    }

    .content-wrapper {
        max-width: 100%;
    }

    .quiz-section {
        padding: 2rem 1rem;
    }

    .quiz-intro h1 {
        font-size: 2rem;
    }

    .page-header h2,
    .bikes-header h2,
    .brands-header h2,
    .blog-header h2,
    .compare-header h2 {
        font-size: 2rem;
    }
    
    /* Ensure sidebar doesn't cover header on mobile */
    .bikes-sidebar-fixed {
        top: 70px;
        z-index: 50;
        display: none;
    }
    
    .bikes-content-wrapper {
        margin-left: 0;
        width: 100%;
    }
    
    .bikes-search-bar {
        margin-bottom: 1.5rem;
        padding: 1rem;
    }
    
    header.header {
        position: relative;
        z-index: 100;
        display: flex;
    }

    .bikes-header p,
    .blog-header p {
        font-size: 1rem;
    }

    /* Bikes container uses row system - responsive handled by framework */
    
    .bikes-marketplace-page .filters-row {
        flex-direction: column;
    }
    
    .bikes-marketplace-page .filter-group {
        min-width: 100%;
    }
    
    .bikes-marketplace-page .filter-actions {
        width: 100%;
    }
    
    .bikes-marketplace-page .filter-actions .pagination-btn {
        width: 100%;
    }

    /* Blog header responsive styles now use unified styles above */

    /* Blog posts container - Using row system - responsive handled by framework classes */

    .blog-card-image {
        height: 200px;
    }
}

/* Responsive: Hide sidebar on mobile/tablet */
@media (max-width: 1024px) {
    .bikes-search-controls {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .bikes-search-input {
        flex: 1;
    }

    .ui.button.mobile-filters-toggle {
        display: inline-flex;
        margin-bottom: 0;
        width: 44px;
        min-width: 44px;
        height: 44px;
        padding: 0 !important;
        align-items: center;
        justify-content: center;
    }

    .ui.button.mobile-filters-toggle i {
        margin: 0 !important;
        line-height: 1;
    }

    .mobile-filters-dimmer {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1099;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    body.mobile-filters-open .mobile-filters-dimmer {
        opacity: 1;
        pointer-events: auto;
    }

    body.mobile-filters-open {
        overflow: hidden;
    }

    .bikes-sidebar-fixed {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: min(88vw, 360px);
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        border: none;
        border-radius: 0;
        box-shadow: 8px 0 30px rgba(0, 0, 0, 0.22);
        overflow-y: auto;
        padding: 1rem;
        z-index: 1100;
        transform: translateX(-105%);
        transition: transform 0.25s ease;
    }

    .bikes-sidebar-fixed.mobile-open {
        transform: translateX(0);
    }

    .ui.button.mobile-filters-close {
        display: none;
        margin-left: auto;
    }

    .bikes-sidebar-fixed.mobile-open .ui.button.mobile-filters-close {
        display: inline-flex;
    }
    
    .bikes-content-wrapper {
        margin-left: 0;
        width: 100%;
    }
    
    .bikes-search-bar {
        margin-bottom: 1.5rem;
        padding: 1rem;
    }
}

/* Footer Styles */
.site-footer {
    background: #2a2d30;
    color: #ffffff;
    padding: 2rem 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 875px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-founders {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.footer-founders-text {
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
}

.footer-founders-logo {
    height: 38px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    filter: invert(1);
    opacity: 0.95;
}

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-docs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
}

.footer-docs-label {
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.footer-docs-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.footer-docs-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.82rem;
    padding: 0.2rem 0.45rem;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    transition: background 120ms ease, border-color 120ms ease;
}

.footer-docs-link:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
}

.footer-social-label {
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.footer-social-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 36px;
    width: 36px;
    padding: 0;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
    line-height: 1;
}

.footer-social-link i {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1;
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.footer-social-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: 2px;
}

.footer-text p,
.footer-date p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-date p {
    font-weight: 500;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 1.5rem 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .footer-founders-logo {
        height: 24px;
        max-width: 240px;
    }

    .footer-text p,
    .footer-date p {
        font-size: 0.85rem;
    }
}

/* Documents page */
.documents-section {
    background: #f7f8fa;
}

.documents-wrapper {
    max-width: 980px;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.documents-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    padding: 1rem;
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.documents-card:hover {
    transform: translateY(-2px);
    border-color: #89BD89;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.documents-card-title {
    color: #2a2d30;
    font-weight: 700;
    font-size: 1rem;
}

.documents-card-link {
    margin-top: 0.4rem;
    color: #5d6b6e;
    font-size: 0.88rem;
}

.documents-header {
    margin-bottom: 1rem;
}

.documents-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    color: #5d6b6e;
    text-decoration: none;
}

.documents-back:hover {
    color: #2a2d30;
}

.documents-header h2 {
    margin: 0;
    color: #2a2d30;
    font-size: 2rem;
}

.documents-article {
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    padding: 1.25rem;
}

.documents-article h3 {
    margin-top: 0;
    color: #2a2d30;
    font-weight: 800;
    margin-bottom: 1rem;
}

.documents-article .documents-subtitle {
    color: #2a2d30;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1rem 0 0.55rem 0;
}

.documents-article p {
    color: #434a4c;
    line-height: 1.7;
    margin-bottom: 0.95rem;
}

/* Blog Post Page Styles */
.blog-post-page {
    min-height: 100vh;
}

.blog-post-section {
    background: white;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.blog-post-loader,
.blog-post-error {
    text-align: center;
    padding: 3rem;
}

.blog-post-content {
    position: relative;
    max-width: 100%;
    margin: 0;
}

/* Thumbnail before header - limited height */
.blog-post-thumbnail {
    width: 100%;
    height: 150px;
    max-height: 150px;
    overflow: hidden;
    position: relative;
}

.blog-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-post-thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

/* Header after thumbnail */
.blog-post-header {
    padding: 2rem 2rem 3rem 2rem;
    background: white;
}

.blog-post-header-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.blog-post-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #434B5A;
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-weight: 500;
    transition: color 0.2s;
}

.blog-post-back:hover {
    color: #89BD89;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-post-author-tag {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.blog-post-author-tag #blog-post-subcategories {
    /* Flatten wrapper so all tags participate in the same flex line wrapping */
    display: contents;
}

.blog-post-date {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2a2d30;
    margin: 0 0 1rem 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.blog-post-description {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Body wrapper - starts after header */
.blog-post-body-wrapper {
    position: relative;
    z-index: 5;
    background: white;
    padding: 3rem 2rem;
}

.blog-post-body-wrapper .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.blog-post-body h1,
.blog-post-body h2,
.blog-post-body h3,
.blog-post-body h4,
.blog-post-body h5,
.blog-post-body h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2a2d30;
    font-weight: 700;
}

.blog-post-body h1 { font-size: 2rem; }
.blog-post-body h2 { font-size: 1.75rem; }
.blog-post-body h3 { font-size: 1.5rem; }
.blog-post-body h4 { font-size: 1.25rem; }

.blog-post-body p {
    margin-bottom: 1.5rem;
}

.blog-post-body ul,
.blog-post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-post-body li {
    margin-bottom: 0.5rem;
}

.blog-post-body blockquote {
    border-left: 4px solid #89BD89;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: #666;
    font-style: italic;
}

.blog-post-body code {
    background: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.blog-post-body pre {
    background: #2a2d30;
    color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-post-body pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.blog-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.blog-post-body a {
    color: #89BD89;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.blog-post-body a:hover {
    border-bottom-color: #89BD89;
}

/* Blog Page Styles - 4 columns, larger max-width */
.blog-page .content-wrapper {
    max-width: 1200px;
}

/* Blog category filter buttons (under title) */
.blog-category-filters {
    margin-top: 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: center;
}

.blog-category-filter-buttons {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.blog-category-filter-btn.ui.button {
    border-radius: 999px !important;
}

/* Bikes Marketplace Page - larger max-width */
.bikes-marketplace-page .content-wrapper {
    max-width: 1200px;
}

/* Compare Page - larger max-width */
.compare-page .content-wrapper {
    max-width: 1200px;
}

/* Home page keeps the default thinner view (875px) */

/* Compare Tray - Floating Menu Styles */
.compare-box {
    background: white;
    border-bottom: 2px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 70px;
    z-index: 99;
    padding: 1rem 0;
}

.compare-box-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.compare-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.compare-box-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #434B5A;
    font-size: 1rem;
}

.compare-box-title i {
    color: #89BD89;
    font-size: 1.2rem;
}

.compare-count {
    background: #89BD89;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.compare-box-clear {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 1rem;
}

.compare-box-clear:hover {
    background: #f5f5f5;
    color: #e74c3c;
}

.compare-box-bikes {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
}

.compare-box-bikes::-webkit-scrollbar {
    height: 6px;
}

.compare-box-bikes::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.compare-box-bikes::-webkit-scrollbar-thumb {
    background: #89BD89;
    border-radius: 3px;
}

.compare-box-bikes::-webkit-scrollbar-thumb:hover {
    background: #7aab7a;
}

.compare-box-bike {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 200px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.compare-box-bike:hover {
    border-color: #89BD89;
    box-shadow: 0 2px 8px rgba(137, 189, 137, 0.2);
}

.compare-box-bike-image {
    width: 60px;
    height: 45px;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

.compare-box-bike-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compare-box-bike-info {
    flex: 1;
    min-width: 0;
}

.compare-box-bike-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #2a2d30;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.compare-box-bike-brand {
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compare-box-bike-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.compare-box-bike-remove:hover {
    background: #fee;
    color: #e74c3c;
}

.compare-box-actions {
    display: flex;
    justify-content: flex-end;
}

/* Compare box buttons now use ui button library - styles removed */

/* Add to Compare Button Styles */
.bike-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    flex-shrink: 0;
}

.blog-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    flex-shrink: 0;
}

.add-to-compare-btn:not(.large) {
    padding: 0.6rem !important;
}

.add-to-compare-btn i.center {
    margin: 0 auto;
}

/* Blog Page Pagination Styles */
.blog-pagination {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

/* Bikes Marketplace Pagination Styles */
.bikes-pagination {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.bikes-pagination .pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Pagination page buttons now use ui button library - styles removed */

/* Pagination buttons now use ui button library - styles removed */

.pagination-ellipsis {
    padding: 0 0.5rem;
    color: #999;
    user-select: none;
}

/* Bike Detail Page Styles */
.bike-detail-page {
    padding: 2rem 0;
}

.bike-images-section {
    margin-bottom: 3rem;
}

.bike-images-section .ui.carousel {
    max-width: 100%;
    margin: 0 auto;
    border-radius: 12px;
}

.bike-images-section .ui.carousel img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.bike-info-section {
    max-width: 875px;
    margin: 0 auto;
}

.bike-header {
    margin-bottom: 2rem;
}

.bike-header .bike-brand-tag {
    margin-bottom: 0.5rem;
}

.bike-header .bike-brand-tag .ui.tag {
    transition: all 0.2s ease;
}

.bike-header .bike-brand-tag .ui.tag a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
}

.bike-header .bike-brand-tag .ui.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background-color: #16ab39 !important;
}

.bike-header .bike-brand-tag .ui.tag a:hover {
    opacity: 1;
    text-decoration: none;
}

.bike-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: #333;
}

.bike-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #89BD89;
    margin-top: 0.5rem;
}

.bike-description {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

.bike-description p {
    margin: 0;
}

.bike-specs {
    margin-top: 3rem;
}

.bike-specs h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
}

.bike-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.bike-spec-item {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.bike-spec-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bike-spec-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

.bike-actions {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.bike-link-section {
    margin-top: 2rem;
    text-align: center;
}

.result-item a {
    color: #89BD89;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.result-item a:hover {
    color: #6fa86f;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .bike-images-section .ui.carousel img {
        height: 300px;
    }
    
    .bike-name {
        font-size: 2rem;
    }
    
    .bike-price {
        font-size: 1.25rem;
    }
    
    .bike-specs-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-post-thumbnail {
        height: 100px;
        max-height: 100px;
    }
    
    .blog-post-header {
        padding: 1.5rem 1rem 2rem 1rem;
    }
    
    .blog-post-title {
        font-size: 2rem;
    }
    
    .blog-post-description {
        font-size: 1.1rem;
    }
    
    .blog-post-body-wrapper {
        padding: 2rem 1rem;
    }
    
    .blog-post-body {
        font-size: 1rem;
    }
    
    /* Blog page - Using row system - responsive handled by framework classes */
    
    .pagination-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination-pages {
        order: -1;
        width: 100%;
    }
}

/* Bike Link Button Disabled State */
#bike-link-btn.disabled {
    cursor: not-allowed;
    opacity: 0.6;
    background-color: #ccc !important;
    color: #666 !important;
    border-color: #bbb !important;
}

#bike-link-btn.disabled:hover {
    background-color: #ccc !important;
    color: #666 !important;
    border-color: #bbb !important;
    transform: none;
    box-shadow: none;
}

/* Image Lightbox Styles */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    z-index: 2;
}

.lightbox-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    flex: 1;
}

.lightbox-close {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.lightbox-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.lightbox-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

#lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.2s ease-out;
}

.lightbox-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2;
}

.lightbox-control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.lightbox-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.lightbox-control-btn:active {
    transform: scale(0.95);
}

.lightbox-zoom-level {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
    padding: 0 1rem;
}

.bike-carousel-image {
    transition: transform 0.2s ease;
}

.bike-carousel-image:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .lightbox-header {
        padding: 1rem;
    }
    
    .lightbox-title {
        font-size: 1.2rem;
    }
    
    .lightbox-close {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .lightbox-controls {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .lightbox-control-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .lightbox-zoom-level {
        font-size: 0.9rem;
        min-width: 50px;
        padding: 0 0.5rem;
    }
}
