/**
 * Counselor — Public Profile & Request
 *
 * @package DivinationChaloce\Core
 */

/* ============================================================
 * Counselors List
 * ============================================================ */

.dc-counselors-wrapper {
    background: #f7f7f9;
    padding: 30px 20px;
    min-height: 70vh;
}

.dc-counselors-container {
    max-width: 1200px;
    margin: 0 auto;
}

.dc-counselors-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border-radius: 20px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.dc-counselors-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="20" fill="rgba(255,255,255,0.06)"/><circle cx="90" cy="80" r="25" fill="rgba(255,255,255,0.08)"/></svg>');
    background-size: 400px;
    opacity: 0.6;
    pointer-events: none;
}

.dc-counselors-hero h1 {
    font-size: 32px;
    margin: 0 0 8px;
    position: relative;
    z-index: 1;
}

.dc-counselors-hero p {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* ============================================================
 * Filters
 * ============================================================ */

.dc-counselors-filter {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px;
    background: #fff;
    border-radius: 14px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dc-counselors-filter select,
.dc-counselors-filter input[type="search"] {
    padding: 10px 14px;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    flex: 1;
    min-width: 140px;
    transition: border-color 0.2s;
}

.dc-counselors-filter select:focus,
.dc-counselors-filter input:focus {
    outline: none;
    border-color: #6366f1;
}

/* ============================================================
 * Counselors Grid
 * ============================================================ */

.dc-counselors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* ============================================================
 * Counselor Card
 * ============================================================ */

.dc-counselor-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dc-counselor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
}

.dc-counselor-card-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.dc-counselor-card-avatar {
    position: relative;
    flex-shrink: 0;
}

.dc-counselor-card-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: block;
}

.dc-counselor-card-avatar .dc-badge {
    position: absolute;
    bottom: 2px;
    inset-inline-end: 2px;
    width: 20px;
    height: 20px;
    font-size: 12px;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.dc-counselor-card-info {
    flex: 1;
    min-width: 0;
}

.dc-counselor-card-name {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.dc-counselor-card-name:hover {
    color: #6366f1;
}

.dc-counselor-type-badge {
    display: inline-block;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.dc-type-licensed {
    background: #dbeafe;
    color: #1e40af;
}

.dc-type-experiential {
    background: #dcfce7;
    color: #166534;
}

.dc-counselor-card-expertise {
    font-size: 13px;
    color: #666;
    margin: 4px 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
}

.dc-counselor-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: #999;
}

.dc-counselor-card-meta span {
    padding: 3px 8px;
    background: #f7f7f9;
    border-radius: 6px;
}

.dc-counselor-card-stats {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid #f0f0f5;
    border-bottom: 1px solid #f0f0f5;
    font-size: 13px;
}

.dc-counselor-stat {
    flex: 1;
    text-align: center;
}

.dc-counselor-stat strong {
    display: block;
    font-size: 16px;
    color: #6366f1;
    font-weight: 700;
}

.dc-counselor-stat span {
    font-size: 11px;
    color: #999;
}

.dc-counselor-card-actions {
    display: flex;
    gap: 8px;
}

.dc-counselor-card-actions .dc-btn {
    flex: 1;
}

/* ============================================================
 * Counselor Profile Page
 * ============================================================ */

.dc-counselor-profile-wrapper {
    background: #f7f7f9;
    padding: 0 0 40px;
}

.dc-counselor-profile-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.dc-counselor-profile-header {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.dc-counselor-profile-avatar {
    position: relative;
    flex-shrink: 0;
}

.dc-counselor-profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.dc-counselor-profile-avatar .dc-badge {
    position: absolute;
    bottom: 8px;
    inset-inline-end: 8px;
    width: 26px;
    height: 26px;
    font-size: 14px;
    border: 3px solid #fff;
}

.dc-counselor-profile-info {
    flex: 1;
}

.dc-counselor-profile-info h1 {
    font-size: 24px;
    margin: 0 0 4px;
    color: #1a1a1a;
}

.dc-counselor-profile-bio {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin: 12px 0;
}

.dc-counselor-profile-info .dc-counselor-type-badge {
    margin-bottom: 12px;
}

.dc-counselor-profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.dc-counselor-profile-actions .dc-btn {
    white-space: nowrap;
}

/* ============================================================
 * Weekly Schedule
 * ============================================================ */

.dc-counselor-schedule {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.dc-counselor-schedule h2 {
    font-size: 18px;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f5;
    color: #222;
}

.dc-week-schedule {
    display: grid;
    gap: 8px;
}

.dc-schedule-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.dc-schedule-row:last-child {
    border-bottom: none;
}

.dc-schedule-day {
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

.dc-schedule-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dc-schedule-slot {
    font-size: 12px;
    padding: 4px 10px;
    background: #dcfce7;
    color: #166534;
    border-radius: 6px;
    direction: ltr;
}

.dc-schedule-empty {
    font-size: 12px;
    color: #ccc;
    font-style: italic;
}

/* ============================================================
 * Request Form
 * ============================================================ */

.dc-counselor-request-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
}

.dc-counselor-request-form {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.dc-counselor-request-form h1 {
    font-size: 24px;
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f5;
    color: #1a1a1a;
}

.dc-counselor-request-form .dc-form-row {
    margin-bottom: 20px;
}

.dc-counselor-request-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

/* Type Selector */
.dc-consultation-type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.dc-consultation-type-option {
    padding: 16px 12px;
    border: 2px solid #eaeaea;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.dc-consultation-type-option:hover {
    border-color: #6366f1;
    background: #f0f0ff;
}

.dc-consultation-type-option input {
    display: none;
}

.dc-consultation-type-option input:checked + .dc-type-content {
    color: #6366f1;
}

.dc-consultation-type-option:has(input:checked) {
    border-color: #6366f1;
    background: linear-gradient(135deg, #f0f0ff, #faf5ff);
}

.dc-type-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #666;
}

.dc-type-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

/* Duration Selector */
.dc-duration-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.dc-duration-option {
    padding: 12px;
    border: 2px solid #eaeaea;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

.dc-duration-option:hover {
    border-color: #6366f1;
}

.dc-duration-option input {
    display: none;
}

.dc-duration-option:has(input:checked) {
    border-color: #6366f1;
    background: #f0f0ff;
    color: #6366f1;
}

/* Price Summary */
.dc-price-summary {
    background: linear-gradient(135deg, #f0f0ff, #faf5ff);
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dc-price-label {
    font-size: 14px;
    color: #666;
}

.dc-price-value {
    font-size: 24px;
    font-weight: 800;
    color: #6366f1;
    direction: ltr;
}

/* ============================================================
 * Responsive
 * ============================================================ */

@media (max-width: 768px) {
    .dc-counselors-hero {
        padding: 40px 20px;
        border-radius: 16px;
    }

    .dc-counselors-hero h1 {
        font-size: 24px;
    }

    .dc-counselor-card {
        padding: 18px;
    }

    .dc-counselor-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .dc-counselor-profile-actions {
        width: 100%;
        flex-direction: row;
    }

    .dc-counselor-profile-actions .dc-btn {
        flex: 1;
    }

    .dc-consultation-type-selector {
        grid-template-columns: 1fr;
    }

    .dc-duration-selector {
        grid-template-columns: repeat(2, 1fr);
    }

    .dc-counselor-request-form {
        padding: 20px;
    }
}