/* Mentor Module Styles */
.task-section {
    grid-area: task-section;
}

.project-container {
    grid-area: project-container;
}

.mentor-wrapper .project-container {
    max-width: none;
    margin: 0;
}

.review-section {
    grid-area: review-section;
}

.disclaimer {
    font-size: 13px;
}

.mentor-wrapper {
    display: grid;
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 1rem;
    grid-gap: 1.5rem;
    grid-template-areas:
     "task-section"
     "project-container"
     "review-section";
}

@media only screen and (min-width: 1700px) {
    .mentor-wrapper {
        grid-template-columns: 320px auto 320px;
        grid-template-areas:
         "task-section project-container review-section";
        align-items: start;
    }

    .task-section {
        position: sticky;
        top: 90px;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }

    .review-section {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }
}

@media only screen and (min-width: 1024px) and (max-width: 1699px) {
    .mentor-wrapper {
        grid-template-columns: 320px auto;
        grid-template-areas:
         "task-section project-container"
         "review-section review-section";
    }

    .task-section {
        position: sticky;
        top: 90px;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }

    .review-section {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }
}

/* Common Components */
.section-title {
    color: var(--aurora-violet);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.section-divider {
    margin: 2rem 0 1rem;
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
    padding-bottom: 0.5rem;
    color: var(--aurora-violet);
    font-size: 1.5rem;
}

.mentor-divider {
    border: none;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    margin: 2rem 0;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--aurora-violet);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--aurora-violet);
    background: rgba(255, 255, 255, 0.08);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.textarea-large {
    min-height: 200px;
}

.btn-submit {
    background: var(--aurora-violet);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.btn-submit:hover {
    opacity: 0.9;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    text-align: center;
}

/* Challenge Cards (List View) */
.challenge-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

.challenge-card:hover {
    transform: translateY(-5px);
    border-color: var(--aurora-violet);
    background: rgba(168, 85, 247, 0.05);
}

.challenge-title {
    font-size: 1.5rem;
    color: var(--aurora-violet);
    margin-bottom: 0.5rem;
}

.challenge-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.challenge-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.challenge-card-title-no-margin {
    margin-bottom: 0;
}

.challenge-meta-footer {
    margin-top: 1rem;
    font-size: 0.8rem;
}

.completed-card {
    border-color: rgba(16, 185, 129, 0.3);
}

.completed-card:hover {
    border-color: var(--aurora-green);
    background: rgba(16, 185, 129, 0.05);
}

/* Status Badges & Banners */
.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-progress {
    background: rgba(168, 85, 247, 0.1);
    color: var(--aurora-violet);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--aurora-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-banner {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: bold;
}

.status-banner-completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--aurora-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-banner-progress {
    background: rgba(168, 85, 247, 0.1);
    color: var(--aurora-violet);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.review-section {
}

/* Tasks (Detailed View) */
.task-section {
}

.task-group {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(168, 85, 247, 0.1);
}

.task-group-title {
    color: var(--aurora-violet);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.task-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.task-checkbox {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
    accent-color: var(--aurora-green);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 4px;
}

.task-label {
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.task-checkbox:checked + .task-label {
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.6;
}

/* Claim Management */
.claim-management {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
}

.my-challenges-section {
    margin-bottom: 3rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Utilities & Helper Classes */
.progress-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 99px;
    height: 10px;
    margin: 0.5rem 0 1rem;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.progress-bar {
    background: linear-gradient(90deg, var(--aurora-violet), var(--aurora-green));
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: right;
    margin-bottom: 0.25rem;
}

.mb-1 { margin-bottom: 1rem; }
.mr-1 { margin-right: 1rem; }
.mb-1-5 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.m-2-0 { margin: 2rem 0; }
.hidden { display: none; }

.back-link {
    color: var(--aurora-violet);
    text-decoration: none;
}

.btn-edit {
    text-decoration: none;
    display: inline-block;
}

.btn-complete {
    background: var(--aurora-green);
}

.claim-button-container {
    margin: 2rem 0;
}

.flex-gap-1 {
    display: flex;
    gap: 1rem;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.pb-2 {
    padding-bottom: 2rem;
}

.border-bottom {
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.text-danger {
    color: #ef4444;
}

/* Star Rating */
.rating-stars {
    color: #f59e0b; /* Yellow/Gold */
    margin-right: 0.5rem;
}

.rating-stars .fa-star.muted {
    color: rgba(255, 255, 255, 0.2);
}

.rating-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.review-count {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Difficulty Rating */
.difficulty-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.coffee-cup {
    width: 18px;
    height: 18px;
    color: #a855f7;
}

.coffee-cup.muted {
    color: rgba(255, 255, 255, 0.15);
}

.challenge-synopsis {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Review Form */
.review-form {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    margin: 2rem 0;
}

.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: color 0.2s ease;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
    color: #f59e0b;
}

/* Reviews List */
.review-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.review-author {
    font-weight: 600;
    color: var(--aurora-violet);
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.review-comment {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Sorting Controls */
.sorting-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0 2rem;
    flex-wrap: wrap;
}

.sort-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.sort-btn {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.sort-btn:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
}

.sort-btn.active {
    background: var(--aurora-violet);
    border-color: var(--aurora-violet);
    color: white;
}

.sort-icon {
    font-size: 0.8rem;
    display: inline-block;
    vertical-align: middle;
}
