/* JA Student Portal Frontend Styles */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:wght@600;700&display=swap');

.jasp-dashboard {
    font-family: 'DM Sans', -apple-system, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.jasp-welcome {
    font-family: 'Fraunces', serif;
    font-size: 28px;
    font-weight: 700;
    color: #0D0D0D;
    margin-bottom: 40px;
}

.jasp-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #6B6B6B;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

/* Course Grid */
.jasp-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.jasp-course-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.jasp-course-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.jasp-course-image {
    width: 100%;
    height: 120px;
    background: #FAF8F5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
}

.jasp-course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jasp-course-title {
    font-family: 'Fraunces', serif;
    font-size: 18px;
    font-weight: 700;
    color: #0D0D0D;
    margin-bottom: 8px;
}

.jasp-course-meta {
    font-size: 13px;
    color: #6B6B6B;
    margin-bottom: 4px;
}

.jasp-course-meta.completed {
    color: #2E7D32;
}

.jasp-progress-bar {
    height: 6px;
    background: #EBE7E0;
    border-radius: 3px;
    margin: 12px 0;
    overflow: hidden;
}

.jasp-progress-fill {
    height: 100%;
    background: #0D0D0D;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.jasp-progress-fill.complete {
    background: #2E7D32;
}

.jasp-progress-text {
    font-size: 12px;
    color: #6B6B6B;
    margin-bottom: 12px;
}

.jasp-course-btn {
    width: 100%;
    padding: 12px 16px;
    background: #0D0D0D;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #F5F1EB;
    cursor: pointer;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: all 0.2s ease;
}

.jasp-course-btn:hover {
    background: #2a2a2a;
    color: #F5F1EB;
}

.jasp-course-btn.secondary {
    background: #FAF8F5;
    color: #0D0D0D;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Office Hours */
.jasp-office-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
}

.jasp-office-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 20px;
}

.jasp-office-card.expired {
    background: #FFFBF5;
    border-color: rgba(180, 83, 9, 0.15);
}

.jasp-office-header {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.jasp-office-icon {
    width: 44px;
    height: 44px;
    background: #FAF8F5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.jasp-office-title {
    font-family: 'Fraunces', serif;
    font-size: 16px;
    font-weight: 600;
    color: #0D0D0D;
    margin-bottom: 4px;
}

.jasp-office-datetime {
    font-size: 13px;
    color: #6B6B6B;
}

.jasp-office-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}

.jasp-office-status.eligible {
    background: #E8F5E9;
    color: #2E7D32;
}

.jasp-office-status.expired {
    background: #FEF3C7;
    color: #B45309;
}

.jasp-office-expires {
    font-size: 12px;
    color: #6B6B6B;
    margin-left: 8px;
}

.jasp-office-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.jasp-office-btn {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.2s ease;
}

.jasp-office-btn.primary {
    background: #0D0D0D;
    color: #F5F1EB;
}

.jasp-office-btn.secondary {
    background: #FAF8F5;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #0D0D0D;
}

/* Help Section */
.jasp-help-section {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 20px;
}

.jasp-help-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #6B6B6B;
    font-size: 14px;
    margin-bottom: 10px;
}

.jasp-help-row:last-child {
    margin-bottom: 0;
}

.jasp-help-link {
    color: #0D0D0D;
    font-weight: 600;
    text-decoration: none;
}

.jasp-help-link:hover {
    text-decoration: underline;
}

/* Replay Accordion */
.jasp-replay-accordion {
    margin-bottom: 48px;
}

.jasp-replay-month {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.jasp-replay-month-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.jasp-replay-month-header:hover {
    background: #FAF8F5;
}

.jasp-replay-month-arrow {
    font-size: 10px;
    color: #6B6B6B;
    margin-right: 12px;
    transition: transform 0.2s ease;
}

.jasp-replay-month-header.open .jasp-replay-month-arrow {
    transform: rotate(0deg);
}

.jasp-replay-month-label {
    font-weight: 600;
    color: #0D0D0D;
    flex: 1;
}

.jasp-replay-month-count {
    font-size: 13px;
    color: #6B6B6B;
}

.jasp-replay-month-content {
    display: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.jasp-replay-month-content.open {
    display: block;
}

.jasp-replay-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    flex-wrap: wrap;
}

.jasp-replay-item:last-child {
    border-bottom: none;
}

.jasp-replay-item.locked {
    background: #FFFBF5;
}

.jasp-replay-icon {
    width: 36px;
    height: 36px;
    background: #FAF8F5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.jasp-replay-item.locked .jasp-replay-icon {
    background: #FEF3C7;
}

.jasp-replay-info {
    flex: 1;
    min-width: 150px;
}

.jasp-replay-title {
    font-weight: 600;
    color: #0D0D0D;
    font-size: 14px;
    margin-bottom: 4px;
}

.jasp-replay-meta {
    font-size: 12px;
    color: #6B6B6B;
}

.jasp-replay-expires {
    color: #059669;
}

.jasp-replay-expired {
    color: #DC2626;
}

.jasp-replay-action {
    flex-shrink: 0;
}

.jasp-replay-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jasp-replay-btn.active {
    background: #0D0D0D;
    color: #F5F1EB;
}

.jasp-replay-btn.active:hover {
    background: #2a2a2a;
}

.jasp-replay-btn.disabled {
    background: #E5E7EB;
    color: #9CA3AF;
    cursor: not-allowed;
}

.jasp-replay-locked-msg {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    background: #FEF3C7;
    border-radius: 8px;
}

.jasp-replay-locked-msg p {
    font-size: 12px;
    color: #92400E;
    margin: 0 0 8px;
}

.jasp-replay-upsell {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #0D0D0D;
    text-decoration: none;
    padding: 6px 12px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.jasp-replay-upsell:hover {
    background: #0D0D0D;
    color: #F5F1EB;
    border-color: #0D0D0D;
}

/* Mobile adjustments for replays */
@media (max-width: 480px) {
    .jasp-replay-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .jasp-replay-action {
        margin-top: 8px;
    }
}
