/* ===========================
   MATCH PAGE SPECIFIC STYLES
   =========================== */

.match-page {
    background: #f8f9fa;
}

/* ===========================
   MATCH HERO SECTION
   =========================== */
.match-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    overflow: hidden;
    padding-top: 80px;
}

.match-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-hearts span {
    position: absolute;
    font-size: 40px;
    opacity: 0.15;
    animation: floatHearts 20s infinite;
}

.floating-hearts span:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.floating-hearts span:nth-child(2) {
    left: 25%;
    animation-delay: 3s;
    animation-duration: 18s;
}

.floating-hearts span:nth-child(3) {
    left: 50%;
    animation-delay: 6s;
    animation-duration: 20s;
}

.floating-hearts span:nth-child(4) {
    left: 70%;
    animation-delay: 2s;
    animation-duration: 16s;
}

.floating-hearts span:nth-child(5) {
    left: 85%;
    animation-delay: 5s;
    animation-duration: 22s;
}

.floating-hearts span:nth-child(6) {
    left: 40%;
    animation-delay: 8s;
    animation-duration: 19s;
}

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

.match-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.match-hero-title {
    font-size: 4.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.gradient-text {
    background: linear-gradient(90deg, #FFE66D, #FF6B6B, #4ECDC4);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 3s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.match-hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.match-hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-stat {
    text-align: center;
}

.hero-stat strong {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-stat span {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
}

/* ===========================
   FEATURED SINGLES SECTION
   =========================== */
.featured-singles {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.featured-singles .section-header {
    margin-bottom: 4rem;
}

.featured-singles .section-header h2 {
    font-size: 3rem;
    color: #2C3E50;
    margin-bottom: 1rem;
}

.singles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.single-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    animation: fadeIn 0.6s ease;
}

.single-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

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

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4ECDC4;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.single-image {
    position: relative;
    padding: 2.5rem 2rem 1rem;
    text-align: center;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 5px solid white;
    position: relative;
}

.avatar-icon {
    font-size: 80px;
    filter: brightness(1.5);
}

.online-status {
    position: absolute;
    bottom: 10px;
    right: calc(50% - 75px + 10px);
    width: 20px;
    height: 20px;
    background: #ccc;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.online-status.online {
    background: #4CAF50;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.single-info {
    padding: 0 2rem 2rem;
}

.single-info h3 {
    font-size: 1.5rem;
    color: #2C3E50;
    margin-bottom: 0.5rem;
}

.single-age {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.single-bio {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.single-tags span {
    background: linear-gradient(135deg, #f5f7fa, #e9ecef);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
}

.single-tags span:hover {
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    color: white;
    transform: translateY(-2px);
}

.single-interests {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
}

.interest-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.interest-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    font-weight: 600;
}

.interest-value {
    font-size: 0.9rem;
    color: #333;
    font-weight: 600;
}

/* ===========================
   CTA SECTION
   =========================== */
.match-cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.match-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    background-size: 50px 50px;
}

.cta-box {
    background: white;
    border-radius: 30px;
    padding: 4rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: heartBeat 1.5s infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20%, 40% { transform: scale(0.95); }
}

.cta-content h2 {
    font-size: 3rem;
    color: #2C3E50;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.cta-content > p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.premium-email-form {
    margin-bottom: 3rem;
}

.form-wrapper {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.form-wrapper input {
    flex: 1;
    padding: 1.2rem 2rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    color: #333;
}

.form-wrapper input::placeholder {
    color: #999;
}

.btn-submit {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.3);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #ff5252, #ff7043);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.badge-icon {
    font-size: 1.2rem;
}

.match-form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 15px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.match-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.match-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.cta-testimonials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #f0f0f0;
}

.testimonial {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 20px;
    text-align: left;
}

.stars {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-author {
    font-size: 0.9rem;
    color: #999;
    font-weight: 600;
}

/* ===========================
   FOOTER ENHANCEMENTS
   =========================== */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-links a {
    color: white;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    opacity: 1;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 1024px) {
    .singles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .match-hero-title {
        font-size: 2.5rem;
        padding: 0 1rem;
    }

    .match-hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .match-hero-stats {
        gap: 2rem;
        padding: 0 1rem;
    }

    .hero-stat strong {
        font-size: 2rem;
    }

    .singles-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .single-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .featured-singles .section-header h2 {
        font-size: 2rem;
    }

    .cta-box {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content > p {
        font-size: 1rem;
    }

    .form-wrapper {
        flex-direction: column;
        border-radius: 20px;
        padding: 1rem;
        gap: 0.8rem;
    }

    .form-wrapper input {
        padding: 1rem 1.5rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
    }

    .trust-badges {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .badge {
        font-size: 0.85rem;
        flex: 1 1 45%;
        min-width: 120px;
        justify-content: center;
    }

    .cta-testimonials {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial {
        padding: 1.5rem;
    }

    .single-interests {
        grid-template-columns: 1fr;
    }

    .single-tags {
        justify-content: center;
    }

    .profile-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .match-hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .match-hero-subtitle {
        font-size: 1rem;
    }

    .hero-stat strong {
        font-size: 1.5rem;
    }

    .hero-stat span {
        font-size: 0.85rem;
    }

    .match-hero-stats {
        gap: 1.5rem;
    }

    .avatar {
        width: 120px;
        height: 120px;
    }

    .avatar-icon {
        font-size: 60px;
    }

    .single-info {
        padding: 0 1.5rem 1.5rem;
    }

    .single-info h3 {
        font-size: 1.3rem;
    }

    .single-tags span {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .cta-icon {
        font-size: 3rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-box {
        padding: 2rem 1rem;
    }

    .trust-badges {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }

    .badge {
        flex: 1 1 100%;
    }

    .testimonial {
        padding: 1.2rem;
    }

    .testimonial p {
        font-size: 0.95rem;
    }

    .form-wrapper input {
        padding: 0.9rem 1.2rem;
    }

    .btn-submit {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .match-hero-title {
        font-size: 1.8rem;
    }

    .cta-content h2 {
        font-size: 1.6rem;
    }

    .featured-singles .section-header h2 {
        font-size: 1.8rem;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    .avatar-icon {
        font-size: 50px;
    }

    .single-card {
        border-radius: 20px;
    }

    .cta-box {
        padding: 1.5rem 0.8rem;
        border-radius: 15px;
    }
}

/* ===========================
   NAVBAR ACTIVE STATE
   =========================== */
.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

