/* Unified Horoscope Calculator Styles */

.unified-horoscope-calculator {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Форма */
.horoscope-form-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    color: white;
    margin-bottom: 30px;
}

.horoscope-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-align: center;
}

.horoscope-subtitle {
    font-size: 16px;
    opacity: 0.95;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

.horoscope-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 16px;
}

.horoscope-input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
    background: white;
    color: #333;
}

.horoscope-button {
    width: 100%;
    padding: 18px;
    background: #fff;
    color: #667eea;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.horoscope-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Загрузка */
.horoscope-loading {
    text-align: center;
    padding: 30px;
}

.spinner {
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Результаты */
.horoscope-results {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 40px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-main-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    text-align: center;
}

.result-date {
    text-align: center;
    color: #666;
    font-size: 18px;
    margin-bottom: 30px;
}

/* Секции результатов */
.result-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.result-section:last-child {
    border-bottom: none;
}

.result-section h3 {
    font-size: 24px;
    color: #333;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
}

/* Карточки знаков */
.signs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.sign-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.sign-card:hover {
    transform: translateY(-5px);
}

.sign-system {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 10px;
}

.sign-name {
    display: block;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.sign-name-en {
    display: block;
    font-size: 14px;
    opacity: 0.9;
}

/* Ядро личности */
.core-description {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
}

.core-description p {
    margin: 0 0 10px 0;
    line-height: 1.6;
    color: #333;
}

.source-badge {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Согласованность */
.consistency-meter {
    background: #f8f9ff;
    padding: 25px;
    border-radius: 12px;
}

.consistency-bar {
    width: 100%;
    height: 40px;
    background: #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 15px;
}

.consistency-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    transition: width 1s ease;
}

.consistency-interpretation {
    text-align: center;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* Списки черт */
.traits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trait-item {
    background: #f8f9ff;
    padding: 18px 20px;
    margin-bottom: 12px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.trait-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.confidence-very_high {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.confidence-high {
    border-left-color: #667eea;
}

.confidence-medium {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.trait-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.trait-meta {
    font-size: 13px;
    color: #666;
    text-align: right;
}

.high-confidence {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    margin-left: 8px;
}

/* Детали систем */
.toggle-details-btn {
    width: 100%;
    padding: 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-details-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

.system-details {
    margin-top: 20px;
    display: grid;
    gap: 20px;
}

.system-detail-card {
    background: #f8f9ff;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.system-detail-card h4 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #333;
}

.system-detail-card p {
    margin: 0;
    line-height: 1.6;
    color: #555;
}

/* Адаптивность */
@media (max-width: 768px) {
    .unified-horoscope-calculator {
        padding: 15px;
    }

    .horoscope-form-container {
        padding: 30px 20px;
    }

    .horoscope-title {
        font-size: 24px;
    }

    .horoscope-results {
        padding: 25px 20px;
    }

    .signs-grid {
        grid-template-columns: 1fr;
    }

    .result-main-title {
        font-size: 28px;
    }
}