/* Compatibility-specific CSS styles */

/* Enhanced form styling */
.compatibility-form-section {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.6);
}

/* Zodiac sign display animations */
.zodiac-display-container {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.zodiac-display-container.active {
    transform: scale(1.05);
    background: rgba(251, 191, 36, 0.1);
}

/* Enhanced input styling for compatibility */
.compatibility-input {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(107, 114, 128, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.compatibility-input:focus {
    border-color: #FBBF24;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
    background: rgba(0, 0, 0, 0.7);
}

.compatibility-input.person1:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.compatibility-input.person2:focus {
    border-color: #EC4899;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
}

/* Progress animation styles */
.progress-step {
    opacity: 0.5;
    transition: all 0.3s ease;
}

.progress-step.active {
    opacity: 1;
    transform: scale(1.05);
}

.progress-step.completed {
    opacity: 1;
}

.progress-circle {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Compatibility meter styles */
.compatibility-meter {
    position: relative;
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.3));
}

.compatibility-meter::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: conic-gradient(from 0deg, #FBBF24, #EC4899, #8B5CF6, #FBBF24);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    animation: rotate 8s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Results section animations */
.result-card {
    backdrop-filter: blur(15px);
    background: rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Detail cards with glowing effect */
.detail-card {
    position: relative;
    overflow: hidden;
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.detail-card:hover::before {
    left: 100%;
}

/* Progress bars with animated fill */
.progress-bar {
    background: rgba(107, 114, 128, 0.3);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 50px 50px;
    animation: move 2s linear infinite;
}

@keyframes move {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* Floating hearts animation */
.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.heart {
    position: absolute;
    color: #EC4899;
    font-size: 20px;
    opacity: 0;
    animation: floatUp 4s ease-in-out infinite;
}

.heart:nth-child(2) { animation-delay: 0.5s; left: 20%; }
.heart:nth-child(3) { animation-delay: 1s; left: 40%; }
.heart:nth-child(4) { animation-delay: 1.5s; left: 60%; }
.heart:nth-child(5) { animation-delay: 2s; left: 80%; }

@keyframes floatUp {
    0% {
        transform: translateY(100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Zodiac symbol styling */
.zodiac-symbol {
    font-size: 4rem;
    background: linear-gradient(45deg, #FBBF24, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5));
    animation: symbolGlow 2s ease-in-out infinite alternate;
}

@keyframes symbolGlow {
    from {
        filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(236, 72, 153, 0.7));
    }
}

/* Loading spinner enhancements */
.cosmic-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(251, 191, 36, 0.1);
    border-top: 4px solid #FBBF24;
    border-radius: 50%;
    animation: cosmicSpin 1s linear infinite;
    position: relative;
}

.cosmic-spinner::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 4px solid rgba(236, 72, 153, 0.1);
    border-top: 4px solid #EC4899;
    border-radius: 50%;
    animation: cosmicSpin 1.5s linear infinite reverse;
}

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

/* Advice section styling */
.advice-item {
    backdrop-filter: blur(10px);
    background: rgba(139, 92, 246, 0.1);
    border-left: 4px solid #8B5CF6;
    transition: all 0.3s ease;
}

.advice-item:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateX(10px);
}

.advice-number {
    background: linear-gradient(45deg, #8B5CF6, #EC4899);
    color: white;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* Share modal enhancements */
.share-modal {
    backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.8);
}

.share-preview img {
    transition: transform 0.3s ease;
}

.share-preview img:hover {
    transform: scale(1.02);
}

/* Button hover effects */
.cta-button-compatibility {
    background: linear-gradient(90deg, #FBBF24, #EC4899);
    color: white;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-button-compatibility::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button-compatibility:hover::before {
    left: 100%;
}

.cta-button-compatibility:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(236, 72, 153, 0.6);
}

/* Form validation styling */
.form-error {
    border-color: #EF4444 !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3) !important;
}

.error-message {
    color: #FCA5A5;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.error-message::before {
    content: '⚠️';
    margin-right: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .zodiac-symbol {
        font-size: 3rem;
    }
    
    .compatibility-meter {
        width: 200px;
        height: 200px;
    }
    
    .result-card {
        margin: 1rem 0;
    }
    
    .detail-card {
        margin-bottom: 1rem;
    }
}

/* Dark theme overrides */
@media (prefers-color-scheme: dark) {
    .compatibility-input {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .result-card {
        background: rgba(0, 0, 0, 0.6);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .compatibility-input {
        border-width: 3px;
    }
    
    .cta-button-compatibility {
        border: 2px solid #FFFFFF;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cosmic-spinner,
    .progress-fill::after,
    .floating-hearts .heart,
    .compatibility-meter::before {
        animation: none;
    }
    
    .detail-card::before,
    .cta-button-compatibility::before {
        display: none;
    }
}

/* Print styles */
@media print {
    .share-modal,
    .floating-hearts,
    .cosmic-spinner {
        display: none;
    }
    
    .result-card {
        background: white;
        color: black;
        border: 1px solid #ccc;
    }
}