/**
 * Test Jugador Pádel - Public Styles
 * Modern, responsive and engaging design
 */

:root {
    --tjp-primary: #3B82F6;
    --tjp-primary-dark: #2563EB;
    --tjp-secondary: #8B5CF6;
    --tjp-success: #10B981;
    --tjp-danger: #EF4444;
    --tjp-warning: #F59E0B;
    --tjp-info: #06B6D4;
    --tjp-light: #F3F4F6;
    --tjp-dark: #1F2937;
    --tjp-white: #FFFFFF;
    --tjp-border: #E5E7EB;
    --tjp-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --tjp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --tjp-transition: all 0.3s ease;
}

/* Container */
.tjp-test-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

.tjp-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid var(--tjp-light);
    border-top-color: var(--tjp-primary);
    border-radius: 50%;
    animation: tjp-spin 1s linear infinite;
}

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

/* Screen Base */
.tjp-screen {
    background: var(--tjp-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--tjp-shadow-lg);
    animation: tjp-fadeIn 0.5s ease;
}

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

/* Welcome Screen */
.tjp-welcome-content {
    text-align: center;
}

.tjp-logo {
    font-size: 80px;
    margin-bottom: 20px;
    animation: tjp-bounce 2s infinite;
}

@keyframes tjp-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.tjp-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--tjp-dark);
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.tjp-subtitle {
    font-size: 18px;
    color: #6B7280;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.tjp-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--tjp-border);
}

.tjp-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tjp-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--tjp-primary);
}

.tjp-stat-label {
    font-size: 14px;
    color: #6B7280;
    margin-top: 4px;
}

/* Buttons */
.tjp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--tjp-transition);
    text-decoration: none;
}

.tjp-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--tjp-shadow-lg);
}

.tjp-btn:active {
    transform: translateY(0);
}

.tjp-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

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

.tjp-btn-primary:hover {
    background: var(--tjp-primary-dark);
}

.tjp-btn-secondary {
    background: var(--tjp-light);
    color: var(--tjp-dark);
}

.tjp-btn-secondary:hover {
    background: #E5E7EB;
}

.tjp-btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

/* Progress Bar */
.tjp-progress-container {
    margin-bottom: 32px;
}

.tjp-progress-bar {
    height: 8px;
    background: var(--tjp-light);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
}

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

.tjp-progress-text {
    text-align: center;
    font-size: 14px;
    color: #6B7280;
    font-weight: 600;
}

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

.tjp-question {
    animation: tjp-slideIn 0.4s ease;
}

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

.tjp-question-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--tjp-dark);
    margin: 0 0 32px 0;
    line-height: 1.4;
}

.tjp-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tjp-option {
    display: flex;
    align-items: center;
    padding: 20px;
    background: var(--tjp-white);
    border: 2px solid var(--tjp-border);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--tjp-transition);
    font-size: 16px;
    color: var(--tjp-dark);
}

.tjp-option:hover {
    border-color: var(--tjp-primary);
    background: #EFF6FF;
    transform: translateX(4px);
}

.tjp-option.selected {
    border-color: var(--tjp-primary);
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    font-weight: 600;
}

.tjp-option-radio {
    width: 24px;
    height: 24px;
    border: 2px solid var(--tjp-border);
    border-radius: 50%;
    margin-right: 16px;
    position: relative;
    flex-shrink: 0;
    transition: var(--tjp-transition);
}

.tjp-option.selected .tjp-option-radio {
    border-color: var(--tjp-primary);
    background: var(--tjp-primary);
}

.tjp-option.selected .tjp-option-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--tjp-white);
    border-radius: 50%;
}

/* Navigation */
.tjp-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    gap: 16px;
}

/* Results Screen */
.tjp-results-header {
    text-align: center;
    margin-bottom: 40px;
}

.tjp-result-icon {
    font-size: 80px;
    margin-bottom: 16px;
}

.tjp-result-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--tjp-dark);
    margin: 0 0 12px 0;
}

.tjp-result-subtitle {
    font-size: 18px;
    color: #6B7280;
    margin: 0;
}

.tjp-result-description {
    background: var(--tjp-light);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
    line-height: 1.8;
    font-size: 16px;
    color: var(--tjp-dark);
}

.tjp-characteristics {
    margin-bottom: 32px;
}

.tjp-characteristics h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--tjp-dark);
    margin: 0 0 16px 0;
}

.tjp-char-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.tjp-char-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: var(--tjp-white);
    border: 1px solid var(--tjp-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.tjp-char-item::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--tjp-success);
    color: var(--tjp-white);
    border-radius: 50%;
    font-size: 12px;
    flex-shrink: 0;
}

/* Recommended Paddles */
.tjp-paddles {
    margin-bottom: 32px;
}

.tjp-paddles h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--tjp-dark);
    margin: 0 0 16px 0;
}

.tjp-paddle-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tjp-paddle-item {
    padding: 20px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    border: 2px solid var(--tjp-border);
    border-radius: 12px;
    transition: var(--tjp-transition);
}

.tjp-paddle-item:hover {
    border-color: var(--tjp-primary);
    transform: translateY(-2px);
    box-shadow: var(--tjp-shadow);
}

.tjp-paddle-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--tjp-dark);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tjp-paddle-name::before {
    content: '🎾';
    font-size: 24px;
}

.tjp-paddle-reason {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
}

/* Consejos */
.tjp-consejos {
    padding: 24px;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-radius: 12px;
    margin-bottom: 32px;
}

.tjp-consejos h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--tjp-dark);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tjp-consejos h3::before {
    content: '💡';
    font-size: 24px;
}

.tjp-consejos p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--tjp-dark);
}

/* Lead Form */
.tjp-lead-form {
    background: var(--tjp-light);
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.tjp-lead-form h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--tjp-dark);
    margin: 0 0 8px 0;
    text-align: center;
}

.tjp-lead-form p {
    text-align: center;
    color: #6B7280;
    margin: 0 0 24px 0;
}

.tjp-form-group {
    margin-bottom: 16px;
}

.tjp-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.tjp-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid var(--tjp-border);
    border-radius: 8px;
    transition: var(--tjp-transition);
    font-family: inherit;
}

.tjp-input:focus {
    outline: none;
    border-color: var(--tjp-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.tjp-lead-form .tjp-btn {
    width: 100%;
}

/* Social Share */
.tjp-share-section {
    text-align: center;
    margin-bottom: 32px;
}

.tjp-share-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--tjp-dark);
    margin: 0 0 20px 0;
}

.tjp-share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tjp-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--tjp-transition);
    color: var(--tjp-white);
}

.tjp-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--tjp-shadow);
}

.tjp-share-whatsapp {
    background: #25D366;
}

.tjp-share-whatsapp:hover {
    background: #1DA851;
}

.tjp-share-facebook {
    background: #1877F2;
}

.tjp-share-facebook:hover {
    background: #0C63D4;
}

.tjp-share-twitter {
    background: #1DA1F2;
}

.tjp-share-twitter:hover {
    background: #0C85D0;
}

.tjp-share-copy {
    background: #6B7280;
}

.tjp-share-copy:hover {
    background: #4B5563;
}

.tjp-share-copy.copied {
    background: var(--tjp-success);
}

/* Restart Section */
.tjp-restart-section {
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .tjp-test-container {
        padding: 12px;
        margin: 20px auto;
    }
    
    .tjp-screen {
        padding: 24px 20px;
    }
    
    .tjp-title {
        font-size: 28px;
    }
    
    .tjp-subtitle {
        font-size: 16px;
    }
    
    .tjp-stats {
        gap: 24px;
    }
    
    .tjp-question-text {
        font-size: 20px;
    }
    
    .tjp-option {
        padding: 16px;
        font-size: 15px;
    }
    
    .tjp-result-title {
        font-size: 26px;
    }
    
    .tjp-char-list {
        grid-template-columns: 1fr;
    }
    
    .tjp-share-buttons {
        flex-direction: column;
    }
    
    .tjp-share-btn {
        width: 100%;
    }
}

/* Dark Theme */
.tjp-test-container[data-theme="dark"] {
    --tjp-white: #1F2937;
    --tjp-light: #374151;
    --tjp-dark: #F9FAFB;
    --tjp-border: #4B5563;
}

.tjp-test-container[data-theme="dark"] .tjp-screen {
    background: var(--tjp-white);
}

.tjp-test-container[data-theme="dark"] .tjp-option {
    background: #374151;
}

.tjp-test-container[data-theme="dark"] .tjp-option:hover {
    background: #4B5563;
}

/* Animations */
@keyframes tjp-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.tjp-pulse {
    animation: tjp-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Utilities */
.tjp-hidden {
    display: none !important;
}

.tjp-text-center {
    text-align: center;
}

.tjp-mb-0 {
    margin-bottom: 0 !important;
}

.tjp-mt-4 {
    margin-top: 32px !important;
}
