/**
 * Expert — Dashboard Panel
 *
 * @package DivinationChaloce\Core
 */

.dc-expert-wrapper {
    background: #f7f7f9;
    min-height: 100vh;
    padding: 24px 20px;
}

.dc-expert-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* ============================================================
 * Header
 * ============================================================ */

.dc-expert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    flex-wrap: wrap;
}

.dc-expert-header h1 {
    font-size: 22px;
    margin: 0 0 4px;
    color: #1a1a1a;
}

.dc-expert-header p {
    margin: 0;
    color: #999;
    font-size: 14px;
}

.dc-expert-header nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dc-btn-logout {
    color: #d63638;
    border-color: #fecaca;
}

.dc-btn-logout:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

/* ============================================================
 * Stats
 * ============================================================ */

.dc-expert-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.dc-expert-stats .dc-stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ============================================================
 * Sections
 * ============================================================ */

.dc-expert-section {
    margin-bottom: 32px;
}

.dc-expert-section > h2 {
    font-size: 18px;
    color: #222;
    margin: 0 0 16px;
    padding-inline-start: 12px;
    border-inline-start: 4px solid #6366f1;
}

/* ============================================================
 * Reading Cards
 * ============================================================ */

.dc-expert-readings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.dc-expert-reading-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s;
}

.dc-expert-reading-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
}

.dc-expert-reading-card header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.dc-expert-reading-card h3 {
    font-size: 15px;
    margin: 0;
    color: #222;
}

.dc-expert-reading-date {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
}

.dc-expert-reading-question {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.dc-expert-reading-meta {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: #999;
}

.dc-expert-reading-lang {
    padding: 2px 8px;
    background: #f0f0f5;
    border-radius: 6px;
    font-family: monospace;
    direction: ltr;
}

.dc-expert-reading-card footer {
    padding-top: 12px;
    border-top: 1px solid #f0f0f5;
    margin-top: auto;
}

.dc-expert-reading-card footer .dc-btn {
    width: 100%;
}

/* ============================================================
 * Request Detail
 * ============================================================ */

.dc-expert-request {
    display: grid;
    gap: 20px;
}

.dc-expert-request-info,
.dc-expert-request-question,
.dc-expert-request-cards,
.dc-expert-request-answer {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dc-expert-request h2 {
    font-size: 16px;
    margin: 0 0 16px;
    color: #222;
    font-weight: 700;
}

.dc-expert-request dl {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px 16px;
    margin: 0;
}

.dc-expert-request dt {
    font-size: 13px;
    color: #999;
}

.dc-expert-request dd {
    font-size: 14px;
    color: #333;
    margin: 0;
}

.dc-expert-request-question > div {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    padding: 14px;
    background: #fafafa;
    border-radius: 10px;
}

/* ============================================================
 * Cards Grid
 * ============================================================ */

.dc-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 600px) {
    .dc-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.dc-card-slot {
    position: relative;
    background: #f7f7f9;
    border-radius: 10px;
    padding: 8px;
    text-align: center;
    aspect-ratio: 2 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dc-card-slot-number {
    position: absolute;
    top: 4px;
    inset-inline-start: 4px;
    width: 20px;
    height: 20px;
    background: #6366f1;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    z-index: 2;
}

.dc-card-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.dc-card-slot-label {
    position: absolute;
    bottom: 4px;
    inset-inline-start: 4px;
    inset-inline-end: 4px;
    font-size: 10px;
    color: #666;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 4px;
    text-align: center;
}

/* ============================================================
 * Answer Form
 * ============================================================ */

.dc-expert-request-answer label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.dc-expert-request-answer textarea {
    width: 100%;
    min-height: 220px;
    padding: 14px;
    border: 1px solid #d5d5dc;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    line-height: 1.7;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dc-expert-request-answer textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.dc-expert-request-answer .dc-form-actions {
    margin-top: 16px;
}

.dc-answer-preview {
    background: #f0fdf4;
    border-inline-start: 4px solid #22c55e;
    border-radius: 10px;
    padding: 16px;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

/* ============================================================
 * Back Link
 * ============================================================ */

.dc-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6366f1;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 16px;
    transition: opacity 0.15s;
}

.dc-back-link:hover {
    opacity: 0.7;
}

/* ============================================================
 * Notice
 * ============================================================ */

.dc-notice {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    border-inline-start: 4px solid;
}

.dc-notice-success {
    background: #f0fdf4;
    color: #166534;
    border-color: #22c55e;
}

.dc-notice-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #ef4444;
}

.dc-notice-warning {
    background: #fffbeb;
    color: #92400e;
    border-color: #f59e0b;
}

.dc-notice-info {
    background: #eff6ff;
    color: #1e40af;
    border-color: #3b82f6;
}

/* ============================================================
 * Buttons
 * ============================================================ */

.dc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid #d5d5dc;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.dc-btn:hover {
    border-color: #999;
    background: #f7f7f9;
}

.dc-btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-color: transparent;
}

.dc-btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.dc-btn-large {
    padding: 14px 28px;
    font-size: 16px;
}

/* ============================================================
 * Empty
 * ============================================================ */

.dc-empty {
    text-align: center;
    color: #999;
    font-size: 15px;
    padding: 40px 20px;
    background: #fff;
    border-radius: 14px;
}

/* ============================================================
 * Responsive
 * ============================================================ */

@media (max-width: 600px) {
    .dc-expert-wrapper {
        padding: 16px 12px;
    }

    .dc-expert-header {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .dc-expert-header nav {
        width: 100%;
    }

    .dc-expert-header nav .dc-btn {
        flex: 1;
    }

    .dc-expert-request dl {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .dc-expert-request dt {
        margin-top: 8px;
    }
}