/* Real-Time Theme Finder Tool Styles */
.tft-quiz-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.tft-header {
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.tft-header h2 {
    margin: 0 0 10px 0;
    font-size: 2.2em;
    font-weight: 700;
}

.tft-header p {
    margin: 0 0 20px 0;
    font-size: 1.2em;
    opacity: 0.9;
}

.tft-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.tft-features span {
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

/* Progress Bar */
.tft-progress-bar {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    position: relative;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.tft-progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #e0e0e0;
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 2px;
}

.tft-progress-step {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tft-progress-step.active {
    background: #667eea;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Questions */
.tft-question {
    display: none;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    border: 1px solid #f0f0f0;
}

.tft-question.active {
    display: block;
    animation: fadeInUp 0.5s ease-in-out;
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.tft-question h3 {
    color: #2d3748;
    margin-bottom: 25px;
    font-size: 1.4em;
    font-weight: 600;
    text-align: center;
}

/* Options */
.tft-options {
    display: grid;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.tft-options label {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    margin: 0;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    background: #fff;
}

.tft-options label:hover {
    border-color: #667eea;
    background: #f8faff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.tft-options input[type="radio"]:checked + span,
.tft-options input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: #667eea;
}

.tft-options input[type="radio"]:checked + span:before,
.tft-options input[type="checkbox"]:checked + span:before {
    content: "✓ ";
    font-weight: bold;
}

/* Multiple Select Options */
.multiple-select label {
    background: #f8fafc;
    border: 2px dashed #cbd5e0;
}

.multiple-select label:hover {
    border-style: solid;
    border-color: #667eea;
    background: #f0f4ff;
}

.tft-options small {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 10px;
    color: #718096;
    font-style: italic;
}

/* Hide default radio/checkbox */
.tft-options input[type="radio"],
.tft-options input[type="checkbox"] {
    display: none;
}

/* Navigation */
.tft-navigation {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.tft-next-btn, .tft-prev-btn, .tft-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 140px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tft-next-btn:hover, .tft-prev-btn:hover, .tft-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.tft-prev-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.tft-submit-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

/* Results */
.tft-results-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border-radius: 15px;
}

.tft-results-header h3 {
    margin: 0 0 10px 0;
    font-size: 2em;
}

.tft-results-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1em;
}

/* Theme Cards */
.tft-theme-card {
    background: white;
    padding: 0;
    margin: 25px 0;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    display: flex;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.tft-theme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.tft-theme-image {
    flex: 0 0 300px;
    position: relative;
}

.tft-theme-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tft-theme-rating {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.tft-theme-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.tft-theme-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 15px;
}

.tft-theme-header h4 {
    margin: 0;
    font-size: 1.5em;
    color: #2d3748;
    flex: 1;
}

.tft-match-score {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.tft-theme-desc {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.tft-theme-stats {
    margin-bottom: 15px;
}

.tft-installs {
    background: #edf2f7;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 14px;
    color: #4a5568;
}

.tft-match-reasons {
    margin-bottom: 20px;
}

.tft-match-reasons strong {
    display: block;
    margin-bottom: 8px;
    color: #2d3748;
}

.tft-match-reasons ul {
    margin: 0;
    padding-left: 20px;
}

.tft-match-reasons li {
    color: #48bb78;
    margin-bottom: 5px;
}

.tft-theme-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.tft-preview-btn, .tft-download-btn {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tft-preview-btn {
    background: #e2e8f0;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.tft-preview-btn:hover {
    background: #cbd5e0;
    border-color: #cbd5e0;
    transform: translateY(-2px);
}

.tft-download-btn {
    background: #667eea;
    color: white;
    border: 2px solid #667eea;
}

.tft-download-btn:hover {
    background: #5a67d8;
    border-color: #5a67d8;
    transform: translateY(-2px);
}

/* No Results */
.tft-no-results {
    text-align: center;
    padding: 60px 40px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px dashed #cbd5e0;
}

.tft-retry-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.tft-retry-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

/* CTA Section */
.tft-cta {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 15px;
    text-align: center;
    margin-top: 50px;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.tft-cta h4 {
    margin: 0 0 15px 0;
    font-size: 1.8em;
}

.tft-cta p {
    margin: 0 0 25px 0;
    font-size: 1.1em;
    opacity: 0.9;
}

.tft-hire-btn {
    background: #fff;
    color: #2d3748;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    font-size: 1.1em;
}

.tft-hire-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Loading */
#tft-loading {
    text-align: center;
    padding: 60px 40px;
}

.tft-spinner {
    max-width: 400px;
    margin: 0 auto;
}

.tft-search-animation {
    font-size: 3em;
    margin-bottom: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.tft-spinner h4 {
    margin: 0 0 10px 0;
    color: #2d3748;
    font-size: 1.4em;
}

.tft-spinner p {
    margin: 0;
    color: #718096;
    font-size: 1.1em;
}

/* Search Info */
#tft-search-info {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border-radius: 15px;
    margin: 30px 0;
}

#tft-search-info h4 {
    margin: 0 0 10px 0;
    font-size: 1.3em;
}

#tft-search-info p {
    margin: 0;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .tft-quiz-wrapper {
        padding: 15px;
        margin: 10px;
    }
    
    .tft-header {
        padding: 30px 20px;
    }
    
    .tft-header h2 {
        font-size: 1.8em;
    }
    
    .tft-features {
        flex-direction: column;
        gap: 10px;
    }
    
    .tft-progress-bar {
        margin: 30px 0;
    }
    
    .tft-progress-step {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .tft-question {
        padding: 25px 20px;
    }
    
    .tft-options {
        grid-template-columns: 1fr;
    }
    
    .tft-options label {
        padding: 15px;
    }
    
    .tft-theme-card {
        flex-direction: column;
    }
    
    .tft-theme-image {
        flex: 0 0 200px;
    }
    
    .tft-theme-actions {
        flex-direction: column;
    }
    
    .tft-navigation {
        flex-direction: column;
    }
    
    .tft-next-btn, .tft-prev-btn, .tft-submit-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .tft-header h2 {
        font-size: 1.5em;
    }
    
    .tft-question h3 {
        font-size: 1.2em;
    }
    
    .tft-theme-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .tft-theme-header h4 {
        font-size: 1.3em;
    }
}