/* Quiz Game Styles - DIA Technology */

/* CSS Variables per consistenza */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --text-primary: #1a1a2e;
    --text-secondary: #6c7293;
    --card-bg: rgba(255, 255, 255, 0.95);
    --border-color: rgba(255, 255, 255, 0.2);
    --bg-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

/* Quiz Screen Management */
.quiz-screen {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.quiz-screen.active {
    display: block;
}

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

/* Hero Section for Game Home */
.hero-section {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    margin-bottom: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="white" fill-opacity="0.1"/><circle cx="80" cy="80" r="1" fill="white" fill-opacity="0.1"/><circle cx="40" cy="60" r="1" fill="white" fill-opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-title i {
    color: #FFD700;
    margin-right: 1rem;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(10deg); }
}

.gradient-text {
    background: linear-gradient(45deg, #FFD700, #FFA500, #FF6B6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Quiz Stats Cards */
.quiz-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 1.5rem;
    min-width: 150px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.2);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #FFD700;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Game Screen Styles */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow);
}

.btn-quit {
    background: #FF6B6B;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-quit:hover {
    background: #e74c3c;
    transform: translateY(-2px);
}

.game-info {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.question-counter {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.score-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.score-display i {
    color: #FFD700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Timer */
.timer-container {
    position: relative;
}

.timer-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) 0deg, #e0e0e0 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s ease;
}

.timer-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.timer-circle.warning {
    background: conic-gradient(#FF6B6B 0deg, #e0e0e0 0deg);
    animation: shake 0.5s infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

/* Progress Bar */
.progress-container {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

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

/* Question Section */
.question-section {
    margin-bottom: 2rem;
}

.question-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.question-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.question-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.question-image {
    margin-top: 1.5rem;
    text-align: center;
}

.question-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Answers Grid */
.answers-section {
    margin-bottom: 2rem;
}

.answers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.answer-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.answer-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.answer-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.answer-btn:hover::before {
    left: 100%;
}

.answer-btn.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: scale(1.02);
}

.answer-btn.correct {
    border-color: #27ae60;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.answer-btn.incorrect {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

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

.answer-btn.eliminated {
    opacity: 0.3;
    transform: scale(0.95);
    filter: grayscale(100%);
}

/* Lifelines */
.lifelines {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.lifeline-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 120px;
    justify-content: center;
}

.lifeline-btn:hover:not(.used) {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.lifeline-btn.used {
    opacity: 0.4;
    cursor: not-allowed;
    background: #bdc3c7;
    border-color: #95a5a6;
}

.lifeline-btn i {
    font-size: 1.1rem;
}

/* Results Screen */
.results-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.results-header {
    margin-bottom: 3rem;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #FFD700;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.results-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.results-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

#result-subtitle {
    color: white !important;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.result-stat {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.result-stat:hover {
    transform: translateY(-5px);
}

.result-stat .stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.result-stat .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.result-stat .stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.performance-message {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.performance-message::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: stars 20s linear infinite;
}

@keyframes stars {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.message-content {
    position: relative;
    z-index: 1;
}

.message-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Achievement Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.achievement-modal {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 400px;
    margin: 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    animation: achievementPop 0.5s ease;
}

@keyframes achievementPop {
    0% { transform: scale(0.5) rotate(-10deg); opacity: 0; }
    50% { transform: scale(1.1) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.achievement-animation {
    font-size: 4rem;
    color: #FFD700;
    margin-bottom: 1.5rem;
    animation: trophy 1s ease infinite;
}

@keyframes trophy {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.achievement-modal h3 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.achievement-modal p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Loading Screen */
.loading-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loading-screen.active {
    display: flex;
}

.loading-content {
    text-align: center;
    color: var(--text-primary);
}

.loading-spinner {
    margin-bottom: 2rem;
}

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

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

.loading-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.loading-content p {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .quiz-stats {
        gap: 1rem;
    }
    
    .stat-card {
        min-width: 120px;
        padding: 1rem;
    }
    
    .game-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .game-info {
        order: 2;
    }
    
    .timer-container {
        order: 1;
    }
    
    .answers-grid {
        grid-template-columns: 1fr;
    }
    
    .lifelines {
        gap: 0.5rem;
    }
    
    .lifeline-btn {
        min-width: 100px;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .results-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .achievement-modal {
        margin: 1rem;
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 1rem;
    }
    
    .question-card {
        padding: 1.5rem;
    }
    
    .question-text {
        font-size: 1.2rem;
    }
    
    .answer-btn {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .results-stats {
        grid-template-columns: 1fr;
    }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .timer-circle {
        background: conic-gradient(var(--primary-color) 0deg, #2c3e50 0deg);
    }
    
    .progress-bar {
        background: #2c3e50;
    }
    
    .answer-btn::before {
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    }
}

/* Game Modes Section */
.game-modes {
    margin: 3rem 0;
    text-align: center;
}

.game-modes h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 600;
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.mode-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.mode-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    color: white;
}

.mode-card:hover::before {
    opacity: 1;
}

.mode-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.mode-card:hover .mode-icon {
    color: white;
}

.mode-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.mode-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.mode-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

.mode-difficulty {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.difficulty-star {
    width: 20px;
    height: 20px;
    background: #e0e0e0;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    transition: all 0.3s ease;
}

.difficulty-star.active {
    background: #FFD700;
}

.mode-card:hover .difficulty-star {
    background: rgba(255, 255, 255, 0.3);
}

.mode-card:hover .difficulty-star.active {
    background: #FFD700;
}

/* Quiz Info Section */
.quiz-info {
    margin: 3rem 0;
}

.quiz-info h3 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 600;
}

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

.info-item {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.info-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.info-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    background: var(--card-bg);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}

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

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-large {
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
}

/* Milestone Markers */
.milestone-markers {
    position: relative;
    height: 30px;
    margin-top: 1rem;
}

.milestone {
    position: absolute;
    top: -10px;
    transform: translateX(-50%);
    font-size: 1.5rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.milestone.achieved {
    border-color: var(--success-color);
    background: var(--success-color);
    color: white;
    animation: milestoneUnlock 0.5s ease;
}

@keyframes milestoneUnlock {
    0% { transform: translateX(-50%) scale(0.5); }
    50% { transform: translateX(-50%) scale(1.2); }
    100% { transform: translateX(-50%) scale(1); }
}

/* Answer Button Enhancements */
.answer-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.answer-letter {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.answer-text {
    flex: 1;
    text-align: left;
}

.answer-btn.correct .answer-letter {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.answer-btn.incorrect .answer-letter {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

/* Achievements Section */
.achievements {
    margin: 2rem 0;
}

.achievement-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    margin: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.achievement-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.achievement-badge:hover::before {
    left: 100%;
}

.achievement-badge i {
    margin-right: 0.5rem;
}

/* WhatsApp Button Styles */
.btn-outline .fab.fa-whatsapp {
    color: #25D366;
    font-size: 1.1em;
    margin-right: 0.5rem;
}

.btn-outline:hover .fab.fa-whatsapp {
    color: white;
}

.btn-outline:hover {
    background: #25D366;
    border-color: #25D366;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.btn-outline {
    transition: all 0.3s ease;
}

/* Social Channels Section */
.social-channels {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.social-channels h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.social-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.social-btn:hover::before {
    left: 100%;
}

.telegram-btn {
    background: linear-gradient(135deg, #0088cc, #005fa3);
    color: white;
    border: 2px solid #0088cc;
}

.telegram-btn:hover {
    background: linear-gradient(135deg, #005fa3, #004080);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.3);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #1ea952);
    color: white;
    border: 2px solid #25D366;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #1ea952, #128c3e);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.social-btn i:first-child {
    font-size: 1.2em;
}

.social-btn i:last-child {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Responsive design per i pulsanti social */
@media (max-width: 768px) {
    .social-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .social-btn {
        min-width: auto;
        width: 100%;
    }
}

/* Quiz Footer */
.quiz-footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    margin-top: 2rem;
    position: relative;
    z-index: 100;
}

.footer-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.quiz-footer p {
    color: white;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 400;
}

.quiz-footer strong {
    color: white;
    font-weight: 600;
}

/* Calculator Return Button */
.calculator-return-btn {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.calculator-return-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
    border-color: var(--primary-color);
}

.return-btn-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.calculator-return-btn:hover .return-btn-background {
    opacity: 1;
}

.return-btn-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    position: relative;
    z-index: 2;
}

.return-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.calculator-return-btn:hover .return-btn-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.return-btn-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
}

.return-btn-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.return-btn-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.return-btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.calculator-return-btn:hover .return-btn-arrow {
    transform: translateX(4px);
    background: var(--primary-color);
    color: white;
}

.return-btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.calculator-return-btn:hover .return-btn-glow {
    left: 100%;
}

/* Responsive design per il pulsante calcolatore */
@media (max-width: 768px) {
    .calculator-return-btn {
        padding: 1rem;
        margin-top: 0.75rem;
    }
    
    .return-btn-content {
        gap: 0.75rem;
    }
    
    .return-btn-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .return-btn-title {
        font-size: 1rem;
    }
    
    .return-btn-subtitle {
        font-size: 0.8rem;
    }
    
    .return-btn-arrow {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
}

/* Scroll Hint */
.scroll-hint {
    text-align: center;
    margin: 1.5rem 0;
    padding: 0 1rem;
}

.scroll-hint-content {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.scroll-hint-content:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.scroll-hint-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.scroll-hint-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.8);
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

.scroll-hint-content:hover .scroll-hint-arrow {
    animation-duration: 0.5s;
    color: white;
}

/* Responsive design per scroll hint */
@media (max-width: 768px) {
    .scroll-hint {
        margin: 1rem 0;
    }
    
    .scroll-hint-content {
        padding: 0.6rem 1.2rem;
    }
    
    .scroll-hint-text {
        font-size: 0.85rem;
    }
    
    .scroll-hint-arrow {
        width: 20px;
        height: 20px;
    }
}
