/* Racket Finder Quiz Styles */

.racket-finder-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Screen Management */
.racket-finder-screen {
    display: none;
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
}

.racket-finder-screen.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

/* Progress Bar */
.racket-finder-progress {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    margin-bottom: 24px;
    overflow: hidden;
}

.racket-finder-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #90cb15 0%, #7fb512 100%);
    border-radius: 10px;
    transition: width 0.4s ease;
}

/* Step Indicator */
.racket-finder-step {
    font-size: 13px;
    font-weight: 600;
    color: #90cb15;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Icon */
.racket-finder-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #90cb15 0%, #7fb512 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.racket-finder-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
    stroke-width: 2.5;
}

/* Typography */
.racket-finder-title {
    font-size: 28px !important;
    font-weight: 700;
    color: #02153d;
    margin: 0 0 16px 0;
    text-align: center;
    line-height: 32px !important;
}

.racket-finder-subtitle {
    font-size: 16px;
    color: #5a6c8c;
    margin: 0 0 32px 0;
    text-align: center;
    line-height: 1.5;
}

.racket-finder-question {
    font-size: 22px;
    font-weight: 700;
    color: #02153d;
    margin: 0 0 24px 0;
    text-align: center;
    line-height: 1.4;
}

/* Options */
.racket-finder-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.racket-finder-options-small {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.racket-finder-option {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.racket-finder-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #90cb15;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.racket-finder-option:hover {
    border-color: #90cb15;
    box-shadow: 0 4px 12px rgba(144, 203, 21, 0.2);
    transform: translateX(4px);
}

.racket-finder-option:hover::before {
    transform: scaleY(1);
}

.racket-finder-option.selected {
    border-color: #90cb15;
    background: #f0f9e6;
}

.racket-finder-option-small {
    padding: 16px 12px;
    text-align: center;
}

.racket-finder-option-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.racket-finder-option-title {
    font-size: 16px;
    font-weight: 600;
    color: #02153d;
    margin-bottom: 4px;
}

.racket-finder-option-small .racket-finder-option-title {
    margin-bottom: 0;
}

.racket-finder-option-desc {
    font-size: 14px;
    color: #5a6c8c;
    line-height: 1.4;
}

/* Buttons */
.racket-finder-btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.racket-finder-btn-primary {
    background: #90cb15 !important;
    color: #ffffff !important;
    display: block !important;
    margin: 0 auto !important;
    width: fit-content !important;
}

.racket-finder-btn-primary:hover {
    background: #7fb512 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(144, 203, 21, 0.4);
    text-decoration: none !important;
}

.racket-finder-btn-secondary {
    background: transparent !important;
    color: #90cb15 !important;
    border: 2px solid #90cb15 !important;
}

.racket-finder-btn-secondary:hover {
    background: #90cb15 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.racket-finder-back {
    background: transparent;
    color: #5a6c8c;
    border: none;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.racket-finder-back:hover {
    color: #02153d;
}

/* Loading */
.racket-finder-loading {
    text-align: center;
    padding: 60px 20px;
}

.racket-finder-spinner {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #90cb15;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Results */
.racket-finder-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    width: 100%;
}

.racket-result-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 16px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: slideIn 0.5s ease forwards;
    position: relative;
}

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

.racket-result-card:hover {
    border-color: #90cb15;
    box-shadow: 0 4px 12px rgba(144, 203, 21, 0.2);
}

.racket-result-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: linear-gradient(135deg, #90cb15 0%, #7fb512 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.racket-result-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.racket-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.racket-result-image svg {
    width: 48px;
    height: 48px;
    stroke: #cbd5e0;
    stroke-width: 2;
}

.racket-result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.racket-result-title {
    font-size: 24px !important;
    line-height: 30px !important;
    font-weight: 600;
    color: #02153d;
    margin: 0 0 8px 0;
}

.racket-result-price {
    font-size: 20px;
    font-weight: 700;
    color: #90cb15;
    margin: 0 0 8px 0;
}

.racket-result-meta {
    font-size: 13px;
    color: #5a6c8c;
    margin-bottom: 4px;
}

.racket-result-btn {
    display: inline-block;
    background: #90cb15;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    margin-top: auto;
    transition: all 0.3s ease;
    width: fit-content;
}

.racket-result-btn:hover {
    background: #7fb512;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(144, 203, 21, 0.4);
}

/* Actions */
.racket-finder-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.racket-finder-actions .racket-finder-btn-primary {
    color: #ffffff !important;
}

.racket-finder-actions .racket-finder-btn-primary:hover {
    color: #ffffff !important;
}

.racket-finder-actions .racket-finder-btn-secondary:hover {
    color: #ffffff !important;
}

/* Empty State */
.racket-finder-empty {
    text-align: center;
    padding: 40px 20px;
}

.racket-finder-empty svg {
    width: 64px;
    height: 64px;
    stroke: #cbd5e0;
    stroke-width: 2;
    margin: 0 auto 16px;
}

.racket-finder-empty h3 {
    font-size: 20px;
    font-weight: 700;
    color: #02153d;
    margin: 0 0 8px 0;
}

.racket-finder-empty p {
    font-size: 14px;
    color: #5a6c8c;
    margin: 0;
    line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .racket-finder-container {
        padding: 0;
    }

    .racket-finder-title {
        font-size: 24px !important;
    }

    .racket-finder-subtitle {
        font-size: 14px;
    }

    .racket-finder-question {
        font-size: 18px;
    }

    .racket-finder-option {
        padding: 16px;
    }

    .racket-finder-option-icon {
        font-size: 28px;
    }

    .racket-finder-option-title {
        font-size: 15px;
    }

    .racket-finder-option-desc {
        font-size: 13px;
    }

    .racket-finder-options-small {
        grid-template-columns: 1fr;
    }

    .racket-result-card {
        flex-direction: column;
    }

    .racket-result-image {
        width: 100%;
        height: 200px;
    }

    .racket-finder-actions {
        flex-direction: column;
    }

    .racket-finder-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .racket-finder-title {
        font-size: 20px;
    }

    .racket-finder-question {
        font-size: 16px;
    }

    .racket-finder-option {
        padding: 14px;
    }
}
