/* Bazi Pairing Styles with Romantic Theme */

/* Heart animation keyframes */
@keyframes heartbeat {
    0% { transform: scale(1); }
    5% { transform: scale(1.1); }
    10% { transform: scale(1); }
    15% { transform: scale(1.15); }
    50% { transform: scale(1); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Romantic background elements */
.romantic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.heart {
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    transform: rotate(-45deg);
    animation: float 4s ease-in-out infinite;
}

.heart:before,
.heart:after {
    content: '';
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    border-radius: 50%;
    position: absolute;
}

.heart:before {
    top: -10px;
    left: 0;
}

.heart:after {
    top: 0;
    left: 10px;
}

.heart:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.heart:nth-child(2) { top: 20%; left: 70%; animation-delay: 1s; }
.heart:nth-child(3) { top: 60%; left: 10%; animation-delay: 2s; }
.heart:nth-child(4) { top: 70%; left: 80%; animation-delay: 3s; }
.heart:nth-child(5) { top: 40%; left: 50%; animation-delay: 4s; }

/* Pairing section styling */
#pairingSection {
    margin-top: 30px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    position: relative;
    background: linear-gradient(135deg, #fff5f5 0%, #ffebee 50%, #f3e5f5 100%);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.1);
}

#pairingSection h2 {
    text-align: center;
    color: #d81b60;
    font-size: 1.8rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

#pairingSection h2::after {
    content: '💖';
    position: absolute;
    top: -30px;
    right: -40px;
    font-size: 1.5rem;
}

/* Pairing inputs with romantic styling */
.pairing-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.pairing-inputs > div {
    position: relative;
}

.pairing-inputs label {
    display: block;
    margin-bottom: 8px;
    color: #880e4f;
    font-weight: 600;
    font-size: 0.9rem;
}

.pairing-inputs input,
.pairing-inputs select,
.pairing-inputs textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #f8bbd0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.pairing-inputs input:focus,
.pairing-inputs select:focus,
.pairing-inputs textarea:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.2);
    background: white;
}

.pairing-inputs textarea {
    resize: vertical;
    min-height: 80px;
}

/* Romantic button styling */
#pairingSection button {
    background: linear-gradient(45deg, #e91e63, #d81b60);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

#pairingSection button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
    background: linear-gradient(45deg, #d81b60, #e91e63);
}

#pairingSection button:active {
    transform: translateY(0);
}

#pairingSection button::before {
    content: '💘';
    margin-right: 8px;
}

/* Pairing result styling */
.pairing-result {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
    border-radius: 15px;
    display: none;
    border: 2px solid #f8bbd0;
    position: relative;
    overflow: hidden;
}

.pairing-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #ff8e8e, #ff6b6b);
}

@keyframes slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.pairing-result h3 {
    text-align: center;
    color: #880e4f;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

/* Match score with romantic styling */
.match-score {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: #e91e63;
    margin: 20px 0;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.match-score::before,
.match-score::after {
    content: '💝';
    margin: 0 10px;
}

/* Match details styling */
.match-details {
    margin-top: 20px;
}

.match-detail-item {
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #fff0f5 0%, #ffe4e1 100%);
    border-radius: 12px;
    border-left: 4px solid #e91e63;
}

.match-detail-item h4 {
    color: #880e4f;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.match-detail-item h4::before {
    content: '💖';
    margin-right: 8px;
}

.match-detail-item ul {
    padding-left: 20px;
    margin: 10px 0;
}

.match-detail-item li {
    margin: 5px 0;
    color: #4a148c;
}

/* Matches list styling */
.matches-list {
    margin-top: 15px;
}

.match-card {
    margin-bottom: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #fdf0f0 100%);
    border-radius: 10px;
    border: 1px solid #f8bbd0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(233, 30, 99, 0.1), transparent);
    transition: left 0.5s;
}

.match-card:hover::before {
    left: 100%;
}

.match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.2);
    border-color: #e91e63;
}

.match-card h5 {
    margin: 0 0 8px 0;
    color: #880e4f;
    font-size: 1rem;
}

.match-card p {
    margin: 5px 0;
    color: #6a1b9a;
    font-size: 0.9rem;
}

/* Selected match card styling */
.match-card[style*="2px solid #7b1fa2"] {
    background: linear-gradient(135deg, #f8bbd0 0%, #f3e5f5 100%);
    border: 2px solid #e91e63 !important;
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.3);
}

/* Match detail modal styling */
.match-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.8), rgba(221, 196, 206, 0.8));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.match-detail-modal {
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
    border-radius: 15px;
    padding: 25px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(233, 30, 99, 0.4);
    position: relative;
    border: 2px solid #f8bbd0;
}

.match-detail-modal h4 {
    text-align: center;
    color: #880e4f;
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8bbd0;
    position: relative;
}

.match-detail-modal h4::after {
    content: '💕';
    position: absolute;
    top: -15px;
    right: 20px;
    font-size: 1.2rem;
}

.match-detail-content h5 {
    margin: 15px 0 8px 0;
    color: #880e4f;
    display: flex;
    align-items: center;
}

.match-detail-content h5::before {
    content: '💖';
    margin-right: 8px;
}

.match-detail-actions {
    margin-top: 20px;
    text-align: center;
}

.match-detail-actions button {
    padding: 10px 25px;
    background: linear-gradient(45deg, #e91e63, #d81b60);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.match-detail-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

/* Loading animation */
.loading-heart {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #e91e63;
    transform: rotate(-45deg);
}

.loading-heart:before,
.loading-heart:after {
    content: '';
    width: 20px;
    height: 20px;
    background: #e91e63;
    border-radius: 50%;
    position: absolute;
}

.loading-heart:before {
    top: -10px;
    left: 0;
}

.loading-heart:after {
    top: 0;
    left: 10px;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #f8bbd0;
    background: linear-gradient(135deg, #fff5f5 0%, #ffebee 100%);
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.tab-button {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f8bbd0 0%, #f3e5f5 100%);
    border: none;
    border-right: 1px solid #f8bbd0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #880e4f;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-button:last-child {
    border-right: none;
}

.tab-button:hover {
    background: linear-gradient(135deg, #f3e5f5 0%, #f8bbd0 100%);
}

.tab-button.active {
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
    color: #e91e63;
    font-weight: bold;
    box-shadow: 0 -3px 10px rgba(233, 30, 99, 0.2);
}

.tab-button.active::after {
    content: '✨';
    position: absolute;
    right: 10px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Profile Section */
.profile-section {
    background: linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #f8bbd0;
    margin-bottom: 20px;
}

.profile-section h3 {
    color: #880e4f;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.profile-form {
    background: linear-gradient(135deg, #fff0f5 0%, #fdf0f0 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #f8bbd0;
}

/* Filters Section */
.filters-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    border: 2px solid #bbdefb;
}

.filters-section h3 {
    color: #1565c0;
    text-align: center;
    margin-bottom: 15px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.filters-grid input,
.filters-grid select {
    width: 100%;
    padding: 10px;
    border: 2px solid #bbdefb;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.filters-grid input:focus,
.filters-grid select:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
    background: white;
}

/* Match card enhancements */
.match-card {
    animation: fadeInUp 0.6s ease-out;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #f8bbd0;
    background: linear-gradient(135deg, #ffffff 0%, #fdf0f0 100%);
}

.match-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.3);
    border-color: #e91e63;
}

/* Animation for match cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.match-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Decorative elements */
.decorative-heart {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.3;
}

.decorative-heart.top-left {
    top: 10px;
    left: 10px;
    animation-delay: 0s;
}

.decorative-heart.top-right {
    top: 10px;
    right: 10px;
    animation-delay: 1s;
}

.decorative-heart.bottom-left {
    bottom: 10px;
    left: 10px;
    animation-delay: 2s;
}

.decorative-heart.bottom-right {
    bottom: 10px;
    right: 10px;
    animation-delay: 3s;
}

/* Loading animation for search */
.searching-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.searching-text {
    font-size: 1.2rem;
    color: #880e4f;
    margin-left: 10px;
    font-weight: 500;
}

.heart-loader {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #e91e63;
    transform: rotate(-45deg);
}

.heart-loader:before,
.heart-loader:after {
    content: '';
    width: 24px;
    height: 24px;
    background: #e91e63;
    border-radius: 50%;
    position: absolute;
}

.heart-loader:before {
    top: -12px;
    left: 0;
}

.heart-loader:after {
    top: 0;
    left: 12px;
}
