/* Quiz Results Page Styles */
:root {
    --romance-primary: #2c1810;
    --romance-gold: #d4a574;
    --romance-rose: #e8b4a7;
    --romance-cream: #faf6f0;
    --romance-sage: #7a8b7f;
    --romance-copper: #b87333;
    --romance-gradient: linear-gradient(135deg, #2c1810 0%, #4a2c1a 50%, #6b3e2a 100%);
    --gold-shimmer: linear-gradient(45deg, #d4a574 0%, #f4e5d3 50%, #d4a574 100%);
}

.matchmaker-results {
    background: var(--romance-cream);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Hero Reveal Section */
.hero-reveal {
    position: relative;
    z-index: 10;
    padding: 40px 0 60px 0;
    background: var(--romance-gradient);
    color: white;
    text-align: center;
}

.reveal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.match-announcement {
    font-size: 1.2rem;
    color: var(--romance-gold);
    margin-bottom: 1rem;
    font-style: italic;
    animation: fadeInDown 1s ease;
}

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

.personality-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gold-shimmer);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite, scaleIn 1s ease;
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.personality-description {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease 0.5s both;
}

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

/* Coffee Matches Section */
.coffee-matches {
    background: white;
    padding: 60px 0;
    position: relative;
    z-index: 10;
}

.matches-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--romance-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--romance-copper);
    font-style: italic;
}

/* Carousel Design */
.matches-carousel {
    position: relative;
    margin-bottom: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Navigation Buttons - NEW OVERLAY STYLE */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid var(--romance-gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.3rem;
    color: var(--romance-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 20;
}

.carousel-nav-btn.prev-btn {
    left: -25px; /* Half outside the carousel */
    animation: slideInLeft 0.5s ease-out;

}

.carousel-nav-btn.next-btn {
    right: -25px; /* Half outside the carousel */
    animation: slideInRight 0.5s ease-out;

}

.carousel-nav-btn:hover:not(:disabled) {
    background: var(--romance-gold);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
}

.carousel-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #f5f5f5;
}

.carousel-wrapper {
    position: relative;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: visible; /* Changed from hidden to show nav buttons */
}


.carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    background: white;
    box-shadow: 
        inset -1px 0 0 rgba(212, 165, 116, 0.2),
        inset 1px 0 0 rgba(212, 165, 116, 0.2);
}




.slide-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    padding: 2rem;
    align-items: start;
    min-height: auto;
    position: relative;
}

.slide-content::before,
.slide-content::after {
    content: '';
    position: absolute;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(212, 165, 116, 0.15) 30%,
        rgba(212, 165, 116, 0.15) 70%,
        transparent 100%
    );
}

.slide-content::before {
    left: 0;
}

.slide-content::after {
    right: 0;
}

.match-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--romance-gold);
    color: var(--romance-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(212, 165, 116, 0.3);
}

.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--romance-cream);
    border-radius: 15px;
    height: 250px;
}

.product-image img {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.product-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--romance-primary);
    line-height: 1.2;
    margin: 0;
}

.roaster-name {
    font-size: 1rem;
    color: var(--romance-copper);
    font-style: italic;
    margin: 0;
}

.flavor-notes {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin: 0.5rem 0;
}

.flavor-tag {
    background: rgba(212, 165, 116, 0.15);
    color: var(--romance-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.product-price {
    font-size: 1.8rem;
    color: var(--romance-gold);
    font-weight: 700;
    margin: 0.3rem 0;
}

.price-note {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.coffee-story {
    background: rgba(212, 165, 116, 0.08);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 0.8rem;
}

.story-title {
    font-size: 1rem;
    color: var(--romance-primary);
    margin: 0 0 0.4rem 0;
    font-weight: 600;
}

.story-content {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
    margin: 0;
}

.story-highlight {
    color: var(--romance-copper);
    font-weight: 600;
}

.match-reasons {
    background: rgba(212, 165, 116, 0.05);
    padding: 0.8rem;
    border-radius: 10px;
    margin-top: 0.8rem;
    border-left: 3px solid var(--romance-gold);
}

.match-title {
    font-size: 0.95rem;
    color: var(--romance-primary);
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.reason-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reason-item {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.3rem;
    padding-left: 0.3rem;
}

/* CTA Section */
.product-cta {
    background: var(--romance-cream);
    padding: 1.5rem 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(212, 165, 116, 0.2);
}

.btn-primary, .btn-secondary {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--romance-gold);
    color: var(--romance-primary);
    flex: 0 0 auto;
}

.btn-primary small {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 0.2rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 165, 116, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--romance-copper);
    border: 2px solid var(--romance-copper);
}

.btn-secondary:hover {
    background: var(--romance-copper);
    color: white;
}

.cta-divider {
    color: #999;
    font-style: italic;
}

/* Remove old carousel-controls */
.carousel-controls {
    display: none; /* Remove the old controls */
}

.carousel-btn {
    background: white;
    border: 2px solid var(--romance-gold);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: var(--romance-gold);
}

.carousel-btn:hover:not(:disabled) {
    background: var(--romance-gold);
    color: white;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Carousel Indicators - REPOSITIONED */
.carousel-indicators {
    position: absolute;
    bottom: -40px; /* Below the carousel */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    z-index: 15;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
}

.indicator:hover {
    background: var(--romance-gold);
    transform: scale(1.2);
}

.indicator.active {
    width: 28px;
    border-radius: 5px;
    background: var(--romance-gold);
}

/* Trust Section - ENHANCED GRID STYLING */
.trust-section {
    background: linear-gradient(135deg, #faf6f0 0%, #fff 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.indicator .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.trust-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.trust-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.trust-section .section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--romance-primary);
    position: relative;
}

.trust-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--romance-gold);
    border-radius: 2px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.trust-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 165, 116, 0.1);
    position: relative;
    overflow: hidden;
}

.trust-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--romance-gold) 0%, var(--romance-rose) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.trust-item:hover::before {
    transform: scaleX(1);
}

.trust-item:hover .trust-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--romance-gold) 0%, var(--romance-rose) 100%);
    color: white;
}


.trust-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1) 0%, rgba(232, 180, 167, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--romance-gold);
    transition: all 0.3s ease;
}

.trust-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--romance-primary);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.trust-item:hover .trust-title {
    color: var(--romance-gold);
}

.trust-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Urgency Banner */
.urgency-banner {
    background: var(--romance-gold);
    color: var(--romance-primary);
    padding: 1rem;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.urgency-text {
    margin: 0;
    font-weight: 600;
}

.countdown-timer {
    display: inline-flex;
    gap: 1rem;
    margin-left: 1rem;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-number {
    font-size: 1.2rem;
    font-weight: 700;
}

.time-label {
    font-size: 0.7rem;
    text-transform: uppercase;
}

/* No matches state */
.no-matches {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--romance-cream);
    border-radius: 20px;
    margin: 2rem 0;
}

.no-matches h3 {
    color: var(--romance-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.no-matches p {
    color: var(--romance-copper);
    font-size: 1.1rem;
}

.no-matches a {
    color: var(--romance-gold);
    text-decoration: underline;
}



/* Responsive */
@media (max-width: 768px) {
    .personality-title {
        font-size: 2rem;
    }
    
    .slide-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .product-image {
        height: 200px;
        margin-bottom: 1rem;
    }
    
    .product-cta {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .urgency-banner {
        position: relative;
    }
    
    .countdown-timer {
        display: flex;
        justify-content: center;
        margin: 0.5rem 0 0 0;
    }

    .carousel-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-nav-btn.prev-btn {
        left: -20px;
    }
    
    .carousel-nav-btn.next-btn {
        right: -20px;
    }

    .carousel-indicators {
        bottom: -35px;
        padding: 0.4rem 0.8rem;
        gap: 0.4rem;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
    
    .indicator.active {
        width: 24px;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .trust-item {
        padding: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .slide-content {
        grid-template-columns: 250px 1fr;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Add entrance animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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





.trust-item:nth-child(1) { animation: fadeInUp 0.6s ease-out 0.1s both; }
.trust-item:nth-child(2) { animation: fadeInUp 0.6s ease-out 0.2s both; }
.trust-item:nth-child(3) { animation: fadeInUp 0.6s ease-out 0.3s both; }
.trust-item:nth-child(4) { animation: fadeInUp 0.6s ease-out 0.4s both; }


/* Brew Method Compatibility */
.brew-compatibility {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.brew-compatibility.compatible {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(102, 187, 106, 0.1) 100%);
    border: 1px solid #4caf50;
    color: #2e7d32;
}

.brew-compatibility.compatible i {
    color: #4caf50;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.brew-compatibility.alternative {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1) 0%, rgba(255, 183, 77, 0.1) 100%);
    border: 1px solid #ff9800;
    color: #e65100;
}

.brew-compatibility.alternative i {
    color: #ff9800;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.brew-compatibility small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    opacity: 0.8;
    font-style: italic;
}

/* Hover effect */
.brew-compatibility:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

