/* GiftPicker Styles */
:root {
    --primary: #FF6B6B;
    --primary-dark: #EE5A5A;
    --secondary: #4ECDC4;
    --accent: #FFE66D;
    --dark: #2D3436;
    --light: #F7F7F7;
    --white: #FFFFFF;
    --gray: #636E72;
    --light-gray: #DFE6E9;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.15);
    --radius: 20px;
    --radius-sm: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--dark);
    line-height: 1.6;
}

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

/* Header */
header {
    text-align: center;
    padding: 40px 0;
    color: var(--white);
}

.logo {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.card h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--dark);
    text-align: center;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--dark);
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Questions */
.question-container {
    position: relative;
    min-height: 300px;
}

.question {
    display: none;
    animation: fadeIn 0.4s ease;
}

.question.active {
    display: block;
}

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

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.option-btn {
    padding: 18px 20px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.option-btn:hover {
    border-color: var(--primary);
    background: #FFF5F5;
    transform: translateY(-2px);
}

.option-btn.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

/* Multi-select for interests */
.multi-select .option-btn {
    position: relative;
}

.multi-select .option-btn.selected::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 0.8rem;
}

/* Next Button */
.next-btn {
    display: block;
    width: 100%;
    padding: 16px 30px;
    margin-top: 20px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.next-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.next-btn:disabled {
    background: var(--light-gray);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--light-gray);
    border-radius: 10px;
    margin-top: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    transition: width 0.4s ease;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--gray);
}

/* Results */
.results-summary {
    background: linear-gradient(135deg, #FFF5F5 0%, #F0FDFC 100%);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.results-summary p {
    color: var(--gray);
    font-size: 0.95rem;
}

.results-summary strong {
    color: var(--primary);
}

/* Gift Cards */
.gifts-container {
    display: grid;
    gap: 20px;
}

.gift-card {
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.gift-card:hover {
    border-color: var(--secondary);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.gift-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.gift-content {
    flex: 1;
}

.gift-content h4 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.gift-content p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.gift-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.gift-tag {
    background: var(--light);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 500;
}

.gift-tag.price {
    background: #E8F5E9;
    color: #2E7D32;
}

.gift-tag.match {
    background: #FFF3E0;
    color: #E65100;
}

/* Restart Button */
.restart-btn {
    display: block;
    width: 100%;
    padding: 16px 30px;
    margin-top: 30px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.restart-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    color: var(--white);
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }

    .logo {
        font-size: 2.2rem;
    }

    .card {
        padding: 25px;
    }

    .card h2 {
        font-size: 1.5rem;
    }

    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .option-btn {
        padding: 14px 12px;
        font-size: 0.9rem;
    }

    .gift-card {
        flex-direction: column;
        text-align: center;
    }

    .gift-icon {
        align-self: center;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

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

/* Confetti Effect */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--primary);
    animation: confetti-fall 3s ease-out forwards;
    z-index: 1000;
    pointer-events: none;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}
