﻿/* ============================================================
    COHORTS MODULE CSS - MentorInn
    Matches site.css purple theme (#6c3a9e)
============================================================ */

/* ============================================================
    COHORT HERO SECTION
============================================================ */
.cohorts-hero {
    background: linear-gradient(135deg, #6c3a9e 0%, #4e2a75 100%);
    padding: 3rem 0 2.5rem;
    color: white;
    border-radius: 0 0 30px 30px;
    position: relative;
    overflow: hidden;
}

.cohorts-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cohorts-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.cohorts-hero p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.cohorts-hero .btn-light {
    color: #6c3a9e;
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
}

.cohorts-hero .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ============================================================
    FILTER SECTION
============================================================ */
.filter-section {
    margin-top: -1.5rem;
    z-index: 2;
    position: relative;
}

.filter-section .card {
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(108, 58, 158, 0.08);
    border: 1px solid rgba(108, 58, 158, 0.06);
}

.filter-section .form-label {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-section .input-group-text {
    color: #6c3a9e;
}

.filter-section .form-control:focus,
.filter-section .form-select:focus {
    border-color: #6c3a9e;
    box-shadow: 0 0 0 0.2rem rgba(108, 58, 158, 0.15);
}

.filter-section .btn-filter {
    background: linear-gradient(135deg, #6c3a9e 0%, #4e2a75 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-section .btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 58, 158, 0.3);
}

/* ============================================================
    COHORT CARDS
============================================================ */
.cohort-card {
    border: 1px solid #eef2f6;
    border-radius: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
    height: 100%;
    position: relative;
}

.cohort-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(108, 58, 158, 0.1);
    border-color: #6c3a9e;
}

.cohort-card .card-header {
    padding: 1rem 1.25rem 0.5rem;
    border-bottom: none;
    position: relative;
    min-height: 60px;
}

.cohort-card .card-body {
    padding: 0.5rem 1.25rem 1rem;
}

.cohort-card .card-footer {
    padding: 0.75rem 1.25rem;
    background: #f8fafc;
    border-top: 1px solid #eef2f6;
}

/* Featured Badge */
.cohort-card .featured-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #fbbf24;
    color: #1a1a2e;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

/* Status Badge */
.cohort-card .status-badge-lg {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.status-badge-lg.bg-warning {
    background: #fef3c7 !important;
    color: #d97706 !important;
}

.status-badge-lg.bg-success {
    background: #dcfce7 !important;
    color: #16a34a !important;
}

.status-badge-lg.bg-info {
    background: #dbeafe !important;
    color: #2563eb !important;
}

.status-badge-lg.bg-danger {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}

.status-badge-lg.bg-secondary {
    background: #f1f5f9 !important;
    color: #475569 !important;
}

/* Mentor Avatar */
.cohort-card .mentor-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cohort-card .avatar-fallback {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #6c3a9e;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Cohort Title */
.cohort-card .cohort-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.cohort-card .cohort-title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cohort-card .cohort-title a:hover {
    color: #6c3a9e;
}

/* Description */
.cohort-card .description-text {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

/* Price */
.cohort-card .price-tag {
    font-weight: 700;
    color: #6c3a9e;
    font-size: 1.1rem;
}

/* Student Count */
.cohort-card .student-count {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Spots Available */
.cohort-card .spots-available {
    font-size: 0.8rem;
    color: #6c757d;
}

.cohort-card .spots-available .spots-fill {
    height: 4px;
    border-radius: 2px;
    background: #e9ecef;
    margin-top: 0.3rem;
    overflow: hidden;
}

.cohort-card .spots-available .spots-fill .fill-bar {
    height: 100%;
    background: linear-gradient(90deg, #6c3a9e, #4e2a75);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* Quick Actions */
.cohort-card .quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cohort-card .btn-primary {
    background: linear-gradient(135deg, #6c3a9e 0%, #4e2a75 100%);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cohort-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 58, 158, 0.3);
}

.cohort-card .btn-outline-primary {
    border: 2px solid #6c3a9e;
    color: #6c3a9e;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cohort-card .btn-outline-primary:hover {
    background: #6c3a9e;
    color: white;
    transform: translateY(-2px);
}

.cohort-card .btn-outline-secondary {
    border: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cohort-card .btn-outline-secondary:hover {
    background: #f8fafc;
    border-color: #6c3a9e;
    color: #6c3a9e;
}

/* Dropdown */
.cohort-card .dropdown-menu {
    border: 1px solid #eef2f6;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.cohort-card .dropdown-item:hover {
    background: #f6f0fa;
    color: #6c3a9e;
}

.cohort-card .dropdown-item.text-success:hover {
    background: #dcfce7;
    color: #16a34a;
}

.cohort-card .dropdown-item.text-warning:hover {
    background: #fef3c7;
    color: #d97706;
}

/* ============================================================
    PAGINATION
============================================================ */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: none;
    color: #1a1a2e;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: #6c3a9e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 58, 158, 0.2);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #6c3a9e 0%, #4e2a75 100%);
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #94a3b8;
    cursor: not-allowed;
}

/* ============================================================
    EMPTY STATE
============================================================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 2px dashed #e2e8f0;
}

.empty-state i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: #1a1a2e;
    font-weight: 700;
}

.empty-state p {
    color: #6c757d;
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

.empty-state .btn-primary {
    background: linear-gradient(135deg, #6c3a9e 0%, #4e2a75 100%);
    border: none;
    font-weight: 600;
}

.empty-state .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 58, 158, 0.3);
}

.empty-state .btn-outline-primary {
    border: 2px solid #6c3a9e;
    color: #6c3a9e;
    font-weight: 600;
}

.empty-state .btn-outline-primary:hover {
    background: #6c3a9e;
    color: white;
}

/* ============================================================
    WHY COHORTS SECTION
============================================================ */
.why-cohorts-section {
    background: #f8fafc;
    border-radius: 30px 30px 0 0;
    padding: 3rem 0;
}

.why-cohorts-section .feature-icon {
    font-size: 2.5rem;
    color: #6c3a9e;
}

.why-cohorts-section h5 {
    font-weight: 700;
    color: #1a1a2e;
}

.why-cohorts-section p {
    color: #6c757d;
    font-size: 0.9rem;
}

/* ============================================================
    RESPONSIVE
============================================================ */
@media (max-width: 992px) {
    .cohorts-hero h1 {
        font-size: 2rem;
    }
    
    .cohorts-hero p {
        font-size: 1rem;
    }
    
    .filter-section .row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-section .col-md-4,
    .filter-section .col-md-3,
    .filter-section .col-md-2 {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .cohorts-hero {
        padding: 2rem 0 1.5rem;
        border-radius: 0 0 20px 20px;
    }
    
    .cohorts-hero h1 {
        font-size: 1.6rem;
    }
    
    .cohorts-hero .text-lg-end {
        text-align: center !important;
        margin-top: 0.5rem !important;
    }
    
    .cohort-card .card-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cohort-card .quick-actions {
        justify-content: center;
    }
    
    .why-cohorts-section {
        border-radius: 20px 20px 0 0;
        padding: 2rem 0;
    }
    
    .why-cohorts-section .row {
        gap: 1rem;
    }
    
    .pagination .page-link {
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .cohorts-hero h1 {
        font-size: 1.3rem;
    }
    
    .cohorts-hero p {
        font-size: 0.9rem;
    }
    
    .cohort-card {
        border-radius: 12px;
    }
    
    .cohort-card .card-header {
        padding: 0.75rem 1rem 0.25rem;
    }
    
    .cohort-card .card-body {
        padding: 0.25rem 1rem 0.75rem;
    }
    
    .cohort-card .card-footer {
        padding: 0.5rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cohort-card .quick-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem;
    }
    
    .cohort-card .quick-actions .btn {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    .cohort-card .cohort-title {
        font-size: 0.95rem;
    }
    
    .cohort-card .description-text {
        font-size: 0.8rem;
    }
    
    .cohort-card .price-tag {
        font-size: 0.95rem;
    }
    
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-state i {
        font-size: 3rem;
    }
    
    .empty-state h4 {
        font-size: 1.1rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination .page-link {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

/* ============================================================
    SCROLL ANIMATIONS
============================================================ */
.cohort-card {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.cohort-card:nth-child(1) { animation-delay: 0.05s; }
.cohort-card:nth-child(2) { animation-delay: 0.1s; }
.cohort-card:nth-child(3) { animation-delay: 0.15s; }
.cohort-card:nth-child(4) { animation-delay: 0.2s; }
.cohort-card:nth-child(5) { animation-delay: 0.25s; }
.cohort-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
    PRINT STYLES
============================================================ */
@media print {
    .cohorts-hero {
        background: #6c3a9e !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .cohort-card {
        break-inside: avoid;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    .cohort-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    .filter-section,
    .why-cohorts-section {
        display: none !important;
    }
}