/* Index Page Specific Styles */

/* Feed Sections */
.feed-section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 8px;
}

.section-title-container {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #141414;
    margin: 0;
    white-space: nowrap;
}

.category-toggle {
    width: 16px;
    height: 16px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.category-toggle:hover {
    opacity: 0.7;
}

.chevron-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

/* Chevron rotation states - Default is collapsed (horizontal scroll) */
.feed-section .chevron-icon {
    transform: none; /* Default: points right like in Figma */
}

.feed-section.expanded .chevron-icon {
    transform: rotate(180deg); /* Expanded: points left */
}

/* Default: Horizontal scroll with overflow hidden */
.feed-section .cards-grid {
    overflow-x: auto;
    flex-wrap: nowrap;
}

/* Expanded: Show all cards in wrapped grid */
.feed-section.expanded .cards-grid {
    overflow-x: visible;
    flex-wrap: wrap;
}

.section-title-with-ai {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(236, 72, 153, 0.1);
    border-radius: 50%;
}

.section-nav {
    display: flex;
    gap: 8px;
}

.nav-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(136, 110, 117, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6B7280;
}

.nav-btn:hover {
    background: rgba(136, 110, 117, 0.2);
    transform: scale(1.05);
}

.nav-btn:disabled,
.nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(136, 110, 117, 0.05);
}

.nav-btn:disabled:hover,
.nav-btn.disabled:hover {
    background: rgba(136, 110, 117, 0.05);
    transform: none;
}

.nav-btn img {
    width: 24px;
    height: 24px;
}

.nav-btn svg {
    width: 12px;
    height: 12px;
}

/* Cards Grid - Horizontal Scrolling - From Figma Frame 18 */
.cards-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    padding: 0;
    width: 100%; /* Fill parent width (1200px) - shows exactly 6 cards */
}

.cards-grid::-webkit-scrollbar {
    display: none; /* WebKit browsers */
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .section-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .section-nav {
        align-self: flex-end;
    }
}