/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background: #1a1a1a;
    color: white;
    padding: 1.5rem 2rem;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-brand {
    text-align: left;
}

header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

header p {
    color: #aaa;
    font-size: 0.9rem;
}

/* Search Bar */
.search-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

#search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    background: #333;
    color: white;
    outline: none;
    transition: background 0.2s, box-shadow 0.2s;
}

#search-input::placeholder {
    color: #888;
}

#search-input:focus {
    background: #444;
    box-shadow: 0 0 0 2px #2a5934;
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #eee;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item.active {
    background: #f5f5f5;
}

.search-result-image {
    width: 50px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    border-radius: 4px;
    overflow: hidden;
}

.search-result-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.search-result-image span {
    font-size: 1.2rem;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

.search-result-meta span:last-child {
    color: #2a5934;
    font-weight: 600;
}

.search-no-results {
    padding: 1.5rem;
    text-align: center;
    color: #666;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

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

    .search-container {
        max-width: 100%;
    }
}

/* Main Layout */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

/* Homepage layout (flex for filters + bike list) */
main.home-layout {
    display: flex;
    gap: 1rem;
}

/* Filters Sidebar */
.filters {
    width: 260px;
    flex-shrink: 0;
    background: white;
    border-radius: 8px;
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.filters h2 {
    font-size: 1.1rem;
    padding: 1rem 1rem 0.75rem;
    margin: 0;
    border-bottom: 2px solid #eee;
    flex-shrink: 0;
}

.filters-content {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 1rem 1rem;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
    color: #555;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 0.4rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
}

.filter-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    font-size: 0.85rem;
}

/* Collapsible filter sections */
.filter-section {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.25rem 0;
    user-select: none;
}

.filter-section-header h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.filter-section-toggle {
    font-size: 0.75rem;
    color: #999;
    transition: transform 0.2s;
}

.filter-section.collapsed .filter-section-toggle {
    transform: rotate(-90deg);
}

.filter-section.collapsed .filter-section-content {
    display: none;
}

.filter-section-content {
    padding-top: 0.5rem;
}

/* Price range inputs inline */
.price-range {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.price-range input {
    flex: 1;
    min-width: 0;
}

.price-range span {
    color: #999;
    font-size: 0.8rem;
}

/* Bike List */
.bike-list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    align-content: start;
}

/* Bike Card */
.bike-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.bike-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bike-card .bike-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f8f8f8;
    padding: 1rem;
}

.bike-card .bike-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 2.5rem;
}

.bike-card .bike-image-placeholder::before {
    content: "🚴";
}

.bike-card .card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bike-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.bike-card .brand {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.bike-card .price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2a5934;
    margin-bottom: 1rem;
}

.bike-card .specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.bike-card .spec {
    display: flex;
    flex-direction: column;
}

.bike-card .spec-label {
    color: #888;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.bike-card .spec-value {
    font-weight: 500;
}

.bike-card .actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.bike-card .actions a {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9rem;
}

.bike-card .actions a:hover {
    text-decoration: underline;
}

/* Save/Favorite Button */
.bike-card {
    position: relative;
}

.save-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.save-btn:hover {
    transform: scale(1.1);
    background: white;
}

.save-btn.saved {
    background: white;
}

/* Card Top Actions Container */
.card-actions-top {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.card-actions-top .save-btn {
    position: static;
}

/* Compare Button on Card */
.compare-add-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-add-btn:hover {
    transform: scale(1.1);
    background: white;
}

.compare-add-btn.in-compare {
    background: #3498db;
    color: white;
}

/* Compare Bar (Bottom) */
#compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: white;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
}

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

.compare-bikes {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.compare-bike-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #333;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.compare-bike-preview img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: white;
    border-radius: 4px;
}

.compare-bike-preview span {
    font-size: 0.85rem;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compare-bike-preview button {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    margin-left: 0.5rem;
}

.compare-bike-preview button:hover {
    color: white;
}

.compare-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
}

.compare-btn:disabled {
    background: #666;
    cursor: not-allowed;
}

.compare-btn:not(:disabled):hover {
    background: #2980b9;
}

/* Compare Modal */
#compare-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.compare-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.compare-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.compare-modal-header h2 {
    margin: 0;
}

.compare-modal-header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.compare-modal-header button:hover {
    color: #333;
}

.compare-table-wrapper {
    overflow: auto;
    padding: 1rem;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table th {
    padding: 1rem;
    text-align: center;
    vertical-align: top;
    border-bottom: 2px solid #eee;
}

.compare-table th img {
    width: 120px;
    height: 80px;
    object-fit: contain;
    background: #f8f8f8;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.compare-bike-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.compare-table td {
    padding: 0.75rem 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.compare-table td.label {
    text-align: left;
    font-weight: 500;
    color: #666;
    background: #f8f8f8;
    width: 120px;
}

.compare-table td.price {
    font-weight: 700;
    color: #2a5934;
    font-size: 1.1rem;
}

.compare-table a {
    color: #0066cc;
    text-decoration: none;
}

.compare-table a:hover {
    text-decoration: underline;
}

/* Price Comparison Button */
.price-compare-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    transition: opacity 0.2s;
}

.price-compare-btn:hover {
    opacity: 0.9;
}

/* Price Comparison Modal */
#price-compare-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.price-compare-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    overflow: hidden;
}

.price-compare-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.price-compare-header h2 {
    margin: 0;
    font-size: 1.1rem;
}

.price-compare-header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    opacity: 0.8;
}

.price-compare-header button:hover {
    opacity: 1;
}

.price-compare-body {
    padding: 1.5rem;
}

.price-compare-subtitle {
    color: #666;
    margin-bottom: 1rem;
}

.price-compare-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.price-compare-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f8f8f8;
    border-radius: 8px;
    gap: 1rem;
}

.price-compare-item.cheapest {
    background: #e8f5e9;
    border: 2px solid #4caf50;
}

.shop-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.shop-name {
    font-weight: 600;
}

.cheapest-badge {
    font-size: 0.75rem;
    color: #4caf50;
    font-weight: 600;
}

.shop-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2a5934;
}

.shop-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9rem;
}

.shop-link:hover {
    text-decoration: underline;
}

.price-savings {
    margin-top: 1rem;
    padding: 1rem;
    background: #fff3e0;
    border-radius: 8px;
    color: #e65100;
    font-weight: 500;
    text-align: center;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: #e8f4e8;
    color: #2a5934;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tag.category {
    background: #e8eef4;
    color: #2a4359;
}

/* Responsive */
@media (max-width: 768px) {
    main {
        flex-direction: column;
    }

    .filters {
        width: 100%;
        position: static;
    }

    .bike-list {
        grid-template-columns: 1fr;
    }
}

/* Size highlighting */
.spec-value.sizes {
    font-size: 0.85em;
}

.size-match {
    background: #4CAF50;
    color: white;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-weight: bold;
}

.spec-value.sizes span[title] {
    cursor: help;
    border-bottom: 1px dotted #999;
}

/* ============================
   CHATBOT STYLES
   ============================ */

/* Floating toggle button */
.chatbot-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #2a5934;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 1000;
}

.chatbot-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.chatbot-toggle.hidden {
    display: none;
}

/* Chat panel */
.chatbot-panel {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 48px);
    height: 520px;
    max-height: calc(100vh - 48px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
}

.chatbot-panel.open {
    display: flex;
}

/* Chat header */
.chatbot-header {
    background: #2a5934;
    color: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.chatbot-header-actions {
    display: flex;
    gap: 8px;
}

.chatbot-settings-btn,
.chatbot-close-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s, background 0.2s;
}

.chatbot-settings-btn:hover,
.chatbot-close-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* Messages area */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Message bubbles */
.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-message.assistant {
    background: #f0f0f0;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-message.user {
    background: #2a5934;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-message.error {
    background: #fee;
    color: #c00;
    align-self: flex-start;
    border: 1px solid #fcc;
}

/* Typing indicator */
.chat-message.typing {
    background: #f0f0f0;
    display: flex;
    gap: 4px;
    padding: 16px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

/* Input area */
.chatbot-input-area {
    padding: 12px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.chatbot-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.chatbot-quick-replies:empty {
    display: none;
    margin-bottom: 0;
}

.quick-reply-btn {
    background: #e8f4e8;
    color: #2a5934;
    border: 1px solid #c8e4c8;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.quick-reply-btn:hover {
    background: #d4ebd4;
}

.chatbot-input-row {
    display: flex;
    gap: 8px;
}

#chatbot-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 24px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

#chatbot-input:focus {
    border-color: #2a5934;
}

#chatbot-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2a5934;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

#chatbot-send-btn:hover {
    background: #1e4025;
}

#chatbot-send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ============================
   MODAL STYLES
   ============================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.open {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 400px;
    max-width: calc(100vw - 48px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.modal-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 4px;
    display: flex;
}

.modal-close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-info {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2a5934;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
    border-radius: 0 0 12px 12px;
}

.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary {
    background: #2a5934;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #1e4025;
}

.btn-secondary {
    background: white;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #f5f5f5;
}

/* Responsive chatbot */
@media (max-width: 480px) {
    .chatbot-panel {
        bottom: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .chatbot-toggle {
        bottom: 16px;
        right: 16px;
    }
}

/* ============================
   LANDING PAGE STYLES
   ============================ */

/* Main Navigation */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

/* Nav Search */
.nav-search {
    flex: 1;
    max-width: 350px;
    margin: 0 2rem;
}

.nav-search #search-input {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: white;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1a1a;
    min-width: 180px;
    padding: 0.5rem 0;
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    list-style: none;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.5rem 1rem;
}

.dropdown-menu li a:hover {
    background: #333;
}

/* Breadcrumbs */
.breadcrumbs {
    background: #f8f8f8;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    max-width: 1400px;
    margin: 0 auto;
    font-size: 0.85rem;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin: 0 0.5rem;
    color: #999;
}

.breadcrumbs a {
    color: #0066cc;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs li[aria-current="page"] {
    color: #666;
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-intro {
    max-width: 700px;
    margin: 0 auto 1.5rem;
    color: #ccc;
    line-height: 1.6;
}

/* Page Stats Bar */
.page-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.page-stats .stat {
    font-size: 0.9rem;
    color: #aaa;
}

.page-stats .stat strong {
    color: white;
    font-size: 1.1rem;
}

/* Landing Layout (replaces main flex) */
.landing-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
    gap: 1rem;
}

/* Content Section */
.content-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
}

.main-article {
    background: white;
    border-radius: 8px;
    padding: 2rem;
}

.content-block {
    margin-bottom: 2rem;
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-block h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.content-block h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #333;
}

.content-block p {
    color: #555;
    line-height: 1.7;
}

/* Quick Links Sidebar */
.quick-links {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 1rem;
}

.quick-links h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #333;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.quick-links h3:not(:first-child) {
    margin-top: 1.5rem;
}

.quick-links ul {
    list-style: none;
}

.quick-links li {
    margin-bottom: 0.5rem;
}

.quick-links a {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9rem;
}

.quick-links a:hover {
    text-decoration: underline;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: #555;
}

.feature-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #2a5934;
    font-weight: bold;
}

/* Model Highlights */
.model-highlights {
    display: grid;
    gap: 1rem;
}

.model-highlight {
    background: #f8f8f8;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid #2a5934;
}

.model-highlight h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.model-highlight p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Groupset Hierarchy */
.groupset-hierarchy {
    display: grid;
    gap: 0.75rem;
}

.groupset-tier {
    background: #f8f8f8;
    padding: 1rem;
    border-radius: 6px;
}

.groupset-tier h4 {
    margin: 0 0 0.25rem 0;
    color: #2a5934;
}

.groupset-tier p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

/* FAQ Section */
.faq-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-item h3 {
    padding: 1.25rem 1.5rem;
    margin: 0;
    font-size: 1.1rem;
    cursor: pointer;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
}

.faq-answer {
    padding: 1.25rem 1.5rem;
}

.faq-answer p {
    margin: 0;
    color: #555;
    line-height: 1.7;
}

/* Related Section */
.related-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: #f8f8f8;
}

.related-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.related-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}

.related-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.related-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #999;
    font-weight: 600;
}

.related-card h3 {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    color: #1a1a1a;
}

.related-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.related-count {
    font-size: 0.85rem;
    color: #2a5934;
    font-weight: 600;
}

/* Overview Page */
.overview-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.overview-intro p {
    font-size: 1.1rem;
    color: #555;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.overview-grid.brands-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.overview-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
    border: 1px solid #eee;
}

.overview-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    border-color: #ddd;
}

.overview-card h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.2rem;
    color: #1a1a1a;
}

.card-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #2a5934;
    font-weight: 600;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #ccc;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: white;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

/* Responsive Landing Pages */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .quick-links {
        position: static;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-stats {
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }

    .page-hero {
        padding: 2rem 1rem;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ============================
   CONTENT/ARTICLE PAGES
   ============================ */

.content-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.article-hero {
    text-align: center;
    padding: 2rem 0 3rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
}

.article-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.article-intro {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.article-content {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.article-content section {
    margin-bottom: 3rem;
}

.article-content section:last-child {
    margin-bottom: 0;
}

.article-content h2 {
    font-size: 1.6rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2a5934;
}

.article-content h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.75rem;
}

.article-content p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.article-content ul {
    margin-bottom: 1rem;
}

.article-content ul li {
    margin-bottom: 0.5rem;
    color: #444;
    line-height: 1.6;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.comparison-card {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 1.5rem;
}

.comparison-card.highlight {
    background: #e8f5e9;
    border: 2px solid #2a5934;
}

.comparison-card h3 {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
}

.comparison-list {
    list-style: none;
    padding: 0;
}

.comparison-list li {
    padding: 0.5rem 0 0.5rem 1.75rem;
    position: relative;
}

.comparison-list.negative li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #c00;
    font-weight: bold;
}

.comparison-list.positive li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2a5934;
    font-weight: bold;
}

/* Source Grid */
.source-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.source-card {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 1.25rem;
}

.source-card h4 {
    color: #2a5934;
    margin-bottom: 0.5rem;
}

.source-card p {
    font-size: 0.9rem;
    margin: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: linear-gradient(135deg, #2a5934 0%, #1e4025 100%);
    color: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.cta-section h2 {
    border: none;
    padding: 0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.cta-button {
    display: inline-block;
    background: #2a5934;
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.cta-button:hover {
    background: #1e4025;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: white;
    color: #2a5934;
    border: 2px solid #2a5934;
}

.cta-button.secondary:hover {
    background: #f0f8f0;
}

@media (max-width: 768px) {
    .article-hero h1 {
        font-size: 2rem;
    }

    .article-content {
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }
}
