/**
 * Result Screen - Экран результата
 * Daily Card, Spreads, Session, Numerology, Dreams
 */

/* === Result Content === */
.result-content {
    padding-bottom: 100px;
}

.result-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.result-card {
    width: 80px;
    text-align: center;
}

.result-card img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    margin-bottom: 8px;
}

.result-card.reversed img {
    transform: rotate(180deg);
}

.result-card-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
}

.result-card-position {
    font-size: 10px;
    color: var(--text-muted);
}

/* === Interpretation === */
.interpretation {
    background: var(--bg-surface);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
    white-space: pre-wrap;
}

.interpretation h3 {
    color: var(--accent);
    margin-bottom: 12px;
}

.interpretation p {
    margin-bottom: 12px;
}

/* === Daily Card Result === */
.daily-card-result {
    text-align: center;
    padding: 20px 0;
}

.daily-card-image {
    width: 150px;
    margin: 0 auto 20px;
}

.daily-card-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(212, 165, 116, 0.4);
}

.daily-card-image.reversed img {
    transform: rotate(180deg);
}

.daily-card-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.daily-card-reversed-label {
    font-size: 13px;
    color: var(--warning);
    margin-bottom: 16px;
}

/* === Session Styles === */
.session-progress {
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.session-progress span {
    color: var(--text-secondary);
    font-size: 14px;
}

.session-progress span span {
    color: var(--accent);
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-primary);
    border-radius: 3px;
    margin-top: 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.session-history {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.session-item {
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    padding: 16px;
}

.session-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.session-number {
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.session-question {
    color: var(--text-primary);
    font-weight: 500;
}

.session-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
}

.session-card img {
    width: 40px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
}

.session-card span {
    color: var(--accent);
    font-weight: 500;
    font-size: 14px;
}

.session-answer {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.session-complete {
    text-align: center;
    padding: 30px;
}

.session-complete h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.session-complete p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* === Numerology Result === */
.numerology-result {
    text-align: center;
    padding: 20px 0;
}

.destiny-number {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    color: var(--bg-primary);
    box-shadow: 0 8px 32px rgba(212, 165, 116, 0.4);
}

.destiny-title {
    font-size: 18px;
    color: var(--accent);
    margin-bottom: 16px;
}

/* === Dream Input === */
.dream-input-container {
    margin-bottom: 20px;
}

.dream-input {
    width: 100%;
    min-height: 150px;
    padding: 16px;
    background: var(--bg-surface);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    resize: none;
    transition: border-color 0.2s;
}

.dream-input:focus {
    outline: none;
    border-color: var(--accent);
}

.dream-input::placeholder {
    color: var(--text-muted);
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* === Choice (А/Б) === */
.choice-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.choice-input {
    display: flex;
    align-items: center;
    gap: 12px;
}

.choice-label {
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.choice-input .input-field {
    flex: 1;
    margin-bottom: 0;
}

/* === History List === */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    padding: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.history-item:hover {
    background: var(--primary-light);
}

.history-item-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.history-item-type {
    font-weight: 600;
    margin-bottom: 4px;
}

.history-item-cards {
    font-size: 13px;
    color: var(--text-secondary);
}
