/* Responsive Components CSS
   Defines styles for nested scrolling layouts and responsive behavior */

/* Desktop Horizontal Scroll Layout */
.horizontal-scroll-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--color-tertiary) transparent;
}

.horizontal-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background-color: var(--color-tertiary);
    border-radius: 4px;
}

.horizontal-scroll-content {
    display: inline-flex;
    gap: 1.5rem;
    padding: 0 1rem;
    min-width: max-content;
}

.vertical-task-column {
    min-width: 300px;
    max-width: 350px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-tertiary-light);
    display: flex;
    flex-direction: column;
    height: fit-content;
    max-height: 80vh;
}

.project-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-tertiary-light);
    margin-bottom: 1rem;
    overflow: hidden;
}

/* Mobile Accordion Layout */
.mobile-accordion {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid var(--color-tertiary-light);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: white;
    overflow: hidden;
}

.accordion-header {
    padding: 1rem;
    background: var(--color-primary-light);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.accordion-header:hover {
    background: var(--color-primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    background: white;
}

.accordion-content.expanded {
    max-height: 1000px;
}

.accordion-chevron {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    color: white;
}

.accordion-chevron.expanded {
    transform: rotate(180deg);
}

.badge-count {
    background: var(--color-secondary);
    color: white;
    border-radius: 12px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

/* Task Card Styles */
.task-card {
    padding: 0.75rem;
    border-bottom: 1px solid var(--color-tertiary-light);
    background: white;
    transition: background-color 0.2s ease;
}

.task-card:hover {
    background: var(--color-tertiary-light);
}

.task-card:last-child {
    border-bottom: none;
}

.task-title {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.task-status {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 500;
}

.task-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.task-status.in_progress {
    background: #dbeafe;
    color: #1e40af;
}

.task-status.completed {
    background: #d1fae5;
    color: #065f46;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .horizontal-scroll-container {
        display: none;
    }
    
    .mobile-accordion {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-accordion {
        display: none;
    }
    
    .horizontal-scroll-container {
        display: block;
    }
}

/* Smooth Animations */
.smooth-transition {
    transition: all 0.3s ease-in-out;
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Project Header Styles */
.project-header {
    padding: 1rem;
    background: var(--color-primary);
    color: white;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
}

.project-description {
    padding: 0.5rem 1rem;
    color: var(--color-tertiary-dark);
    font-size: 0.875rem;
    border-bottom: 1px solid var(--color-tertiary-light);
}

/* Empty State */
.empty-state {
    padding: 2rem;
    text-align: center;
    color: var(--color-tertiary-dark);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
} 
