/* Zodiac & MBTI Compatibility Page Styles */

/* CSS Variables */
:root {
    --zodiac-primary: #6B5B95;
    --zodiac-secondary: #FF6F91;
    --zodiac-accent: #FFD700;
    --zodiac-dark: #2D2D44;
    --zodiac-light: #F8F6FF;
    --zodiac-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-shadow: 0 10px 40px rgba(107, 91, 149, 0.2);
}

/* Container */
.zodiac-container {
    padding-top: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Header */
.zodiac-header {
    text-align: center;
    padding: 50px 30px;
    background: var(--zodiac-gradient);
    border-radius: 30px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.zodiac-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: shimmer 15s linear infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.header-decoration {
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.zodiac-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 20px 0;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.title-icon {
    display: inline-block;
    animation: twinkle 1.5s ease-in-out infinite;
}

.title-icon:last-child {
    animation-delay: 0.5s;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

.zodiac-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.header-stars {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 1.5rem;
}

.header-stars span {
    animation: starPulse 2s ease-in-out infinite;
}

.header-stars span:nth-child(2) { animation-delay: 0.2s; }
.header-stars span:nth-child(3) { animation-delay: 0.4s; }
.header-stars span:nth-child(4) { animation-delay: 0.6s; }
.header-stars span:nth-child(5) { animation-delay: 0.8s; }

@keyframes starPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
}

/* Input Section */
.input-section {
    background: var(--zodiac-light);
    border-radius: 25px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    margin-bottom: 40px;
}

/* Person Cards */
.person-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.person-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.person-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.person-me {
    border-top: 4px solid var(--zodiac-primary);
}

.person-me::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, rgba(107, 91, 149, 0.1) 0%, transparent 100%);
}

.person-partner {
    border-top: 4px solid var(--zodiac-secondary);
}

.person-partner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, rgba(255, 111, 145, 0.1) 0%, transparent 100%);
}

.person-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.person-icon {
    font-size: 2rem;
}

.person-header h2 {
    color: var(--zodiac-dark);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.input-group label {
    display: block;
    color: var(--zodiac-dark);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.zodiac-select,
.mbti-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B5B95' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

.zodiac-select:focus,
.mbti-select:focus {
    outline: none;
    border-color: var(--zodiac-primary);
    box-shadow: 0 0 0 4px rgba(107, 91, 149, 0.1);
}

.zodiac-select:hover,
.mbti-select:hover {
    border-color: var(--zodiac-primary);
}

/* Zodiac Display */
.zodiac-display {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(145deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 15px;
    position: relative;
    z-index: 1;
}

.zodiac-symbol {
    font-size: 3rem;
    display: block;
    animation: zodiacFloat 4s ease-in-out infinite;
}

@keyframes zodiacFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.05); }
}

/* Heart Connection */
.heart-connection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.heart-icon {
    font-size: 3rem;
    animation: heartbeat 1.5s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s;
}

.heart-icon:hover {
    transform: scale(1.2);
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.2); }
    60% { transform: scale(1); }
}

.connection-line {
    width: 3px;
    height: 50px;
    background: linear-gradient(180deg, var(--zodiac-primary) 0%, var(--zodiac-secondary) 100%);
    border-radius: 3px;
    margin: 10px 0;
}

/* Relationship Type */
.relationship-type {
    text-align: center;
    margin: 30px 0;
}

.relationship-type label {
    display: block;
    color: var(--zodiac-dark);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.type-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.type-btn {
    padding: 12px 25px;
    border: 2px solid var(--zodiac-primary);
    background: white;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--zodiac-primary);
}

.type-btn:hover {
    background: rgba(107, 91, 149, 0.1);
    transform: translateY(-2px);
}

.type-btn.active {
    background: var(--zodiac-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 20px rgba(107, 91, 149, 0.3);
}

/* Check Button */
.check-compatibility-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    max-width: 400px;
    margin: 30px auto 0;
    padding: 18px 40px;
    background: linear-gradient(135deg, #8B6914 0%, #6B5210 100%);
    border: none;
    border-radius: 50px;
    color: #FFF5D6;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(107, 82, 16, 0.4);
}

.check-compatibility-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #9B7916 0%, #7B6212 100%);
    box-shadow: 0 15px 40px rgba(107, 82, 16, 0.5);
}

.check-compatibility-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.3rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Result Section */
.result-section {
    background: white;
    border-radius: 25px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    margin-bottom: 40px;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    text-align: center;
    margin-bottom: 30px;
}

.result-header h2 {
    color: var(--zodiac-primary);
    font-size: 2rem;
    font-weight: 700;
}

/* Comparison Cards */
.comparison-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.comparison-card {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.comparison-card:hover {
    transform: scale(1.05);
}

.my-card {
    background: linear-gradient(145deg, rgba(107, 91, 149, 0.1) 0%, rgba(107, 91, 149, 0.2) 100%);
    border: 2px solid var(--zodiac-primary);
}

.partner-card {
    background: linear-gradient(145deg, rgba(255, 111, 145, 0.1) 0%, rgba(255, 111, 145, 0.2) 100%);
    border: 2px solid var(--zodiac-secondary);
}

.card-zodiac {
    font-size: 4rem;
    margin-bottom: 15px;
}

.card-zodiac-name {
    display: block;
    font-weight: 700;
    color: var(--zodiac-dark);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.card-mbti {
    display: inline-block;
    background: var(--zodiac-gradient);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.vs-badge {
    background: var(--zodiac-accent);
    color: var(--zodiac-dark);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Score Display */
.score-display {
    text-align: center;
    margin: 40px 0;
}

.score-label {
    color: var(--zodiac-dark);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.score-circle {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
}

.score-circle svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.score-bg {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 8;
}

.score-progress {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 2s ease;
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--zodiac-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-percent {
    font-size: 1.5rem;
    color: var(--zodiac-primary);
    font-weight: 700;
}

.score-grade {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 10px 30px;
    border-radius: 30px;
    display: inline-block;
}

/* Detailed Scores */
.detailed-scores {
    background: var(--zodiac-light);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.score-item:last-child {
    margin-bottom: 0;
}

.score-item-label {
    min-width: 120px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--zodiac-dark);
}

.score-icon {
    font-size: 1.2rem;
}

.progress-bar {
    flex: 1;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1.5s ease;
}

.love-score { background: linear-gradient(90deg, #FF6B6B 0%, #FF8E8E 100%); }
.friend-score { background: linear-gradient(90deg, #4ECDC4 0%, #6EE7E0 100%); }
.comm-score { background: linear-gradient(90deg, #45B7D1 0%, #6BC5D9 100%); }
.value-score { background: linear-gradient(90deg, #96CEB4 0%, #B8E0CC 100%); }

.score-value {
    min-width: 50px;
    text-align: right;
    font-weight: 700;
    color: var(--zodiac-dark);
}

/* Result Description */
.result-description {
    background: linear-gradient(145deg, rgba(107, 91, 149, 0.05) 0%, rgba(255, 111, 145, 0.05) 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    border-left: 5px solid var(--zodiac-primary);
}

.result-description h3 {
    color: var(--zodiac-primary);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.description-content {
    color: var(--zodiac-dark);
    line-height: 1.8;
    font-size: 1.05rem;
}

.description-content p {
    margin-bottom: 15px;
}

.description-content p:last-child {
    margin-bottom: 0;
}

/* Compatibility Tips */
.compatibility-tips {
    background: white;
    border: 2px dashed var(--zodiac-secondary);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
}

.compatibility-tips h3 {
    color: var(--zodiac-secondary);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--zodiac-dark);
    line-height: 1.6;
    border-bottom: 1px solid #f0f0f0;
}

.tips-list li:last-child {
    border-bottom: none;
}

.tips-list li::before {
    content: '💡';
    position: absolute;
    left: 0;
    top: 12px;
}

/* Result Actions */
.result-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.retry-btn {
    background: white;
    border: 2px solid var(--zodiac-primary);
    color: var(--zodiac-primary);
}

.retry-btn:hover {
    background: var(--zodiac-primary);
    color: white;
}

.share-btn {
    background: var(--zodiac-gradient);
    color: white;
    box-shadow: 0 5px 20px rgba(107, 91, 149, 0.3);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(107, 91, 149, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .zodiac-container {
        padding: 20px 15px;
    }
    
    .zodiac-header {
        padding: 35px 20px;
        border-radius: 20px;
    }
    
    .zodiac-title {
        font-size: 1.8rem;
    }
    
    .zodiac-subtitle {
        font-size: 1rem;
    }
    
    .input-section {
        padding: 25px 20px;
        border-radius: 20px;
    }
    
    .person-cards {
        flex-direction: column;
    }
    
    .person-card {
        max-width: 100%;
    }
    
    .heart-connection {
        flex-direction: row;
        padding: 10px;
    }
    
    .connection-line {
        width: 50px;
        height: 3px;
        margin: 0 10px;
    }
    
    .comparison-cards {
        gap: 15px;
    }
    
    .comparison-card {
        min-width: 120px;
        padding: 20px 15px;
    }
    
    .card-zodiac {
        font-size: 3rem;
    }
    
    .vs-badge {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .score-circle {
        width: 160px;
        height: 160px;
    }
    
    .score-number {
        font-size: 2.5rem;
    }
    
    .score-item {
        flex-wrap: wrap;
    }
    
    .score-item-label {
        min-width: 100%;
        margin-bottom: 8px;
    }
    
    .progress-bar {
        flex: 1;
        min-width: calc(100% - 70px);
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .zodiac-title {
        font-size: 1.5rem;
    }
    
    .header-stars {
        gap: 10px;
        font-size: 1.2rem;
    }
    
    .type-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .type-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .detailed-scores {
        padding: 20px;
    }
    
    .result-description,
    .compatibility-tips {
        padding: 20px;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
}

.loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 5px solid var(--zodiac-light);
    border-top-color: var(--zodiac-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

