/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e74c3c;
    --secondary-color: #c0392b;
    --accent-color: #ffa726;
    --text-color: #2c3e50;
    --light-bg: #ecf0f1;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --success-color: #27ae60;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    padding: 20px;
}

.container {
    max-width: 800px;
    width: 100%;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px var(--shadow);
    overflow: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.header-logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.tagline {
    font-size: 1.6em;
    font-weight: bold;
    opacity: 0.95;
}

/* Main Content */
main {
    padding: 40px;
    min-height: 400px;
}

/* Screen Management */
.screen {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Welcome Screen */
.welcome-content {
    text-align: center;
    padding: 40px 0;
}

.welcome-content h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.welcome-content p {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: var(--text-color);
    line-height: 1.6;
}

.welcome-youtube-link {
    margin-top: 20px;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
    width: 0%;
}

.question-number {
    text-align: center;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 30px;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Question Content */
.question-content {
    margin-bottom: 40px;
}

.question-content h2 {
    font-size: 1.8em;
    color: var(--text-color);
    margin-bottom: 30px;
    text-align: center;
}

/* Options */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option {
    background: var(--light-bg);
    border: 3px solid transparent;
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;
    text-align: center;
    position: relative;
}

.option:hover {
    background: #dfe6e9;
    transform: translateX(5px);
}

.option.selected {
    background: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
}

.option.selected::before {
    content: '✓';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5em;
}

/* Buttons */
.btn {
    padding: 15px 40px;
    font-size: 1.1em;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--light-bg);
    color: var(--text-color);
}

.btn-secondary:hover:not(:disabled) {
    background: #d5dbdb;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.navigation-buttons .btn {
    flex: 1;
}

/* Results Screen */
.results-content {
    text-align: center;
}

.results-content h2 {
    font-size: 2em;
    color: var(--text-color);
    margin-bottom: 30px;
}

.result-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px var(--shadow);
}

/* Badge Section */
.badge-section {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 30px 0;
    padding: 25px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.badge-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.badge-info {
    flex: 1;
    text-align: left;
}

.badge-title {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.badge-tagline {
    font-size: 1.2em;
    color: var(--text-color);
    font-style: italic;
    margin: 0;
}

.result-name {
    font-size: 2em;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.result-rank {
    font-size: 1em;
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: inline-block;
}

.result-energy {
    font-size: 1.2em;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.result-origin {
    font-size: 1em;
    color: var(--text-color);
    margin-bottom: 20px;
    opacity: 0.8;
}

.result-description {
    font-size: 1.2em;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 30px;
}

.characteristics {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.characteristics h4 {
    font-size: 1.3em;
    color: var(--text-color);
    margin-bottom: 15px;
    text-align: center;
}

.characteristics ul {
    list-style: none;
}

.characteristics li {
    background: var(--white);
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    font-size: 1.05em;
}

/* Social Share Section */
.social-share-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.social-share-section h4 {
    font-size: 1.2em;
    color: var(--text-color);
    margin-bottom: 15px;
    text-align: center;
}

/* Social sharing buttons */
#social-share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
    align-items: center;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.share-btn i {
    font-size: 20px;
}

/* Footer */
footer {
    background: var(--text-color);
    color: var(--white);
    padding: 20px;
    text-align: center;
    font-size: 0.9em;
}

.social-links {
    margin-top: 15px;
}

.youtube-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff !important;
    text-decoration: none;
    padding: 10px 20px;
    background: #ff0000;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.youtube-link:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.youtube-link svg {
    width: 24px;
    height: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5em;
    }
    
    .header-logo {
        max-width: 200px;
    }
    
    .welcome-content h2 {
        font-size: 2em;
    }
    
    .question-content h2 {
        font-size: 1.5em;
    }
    
    main {
        padding: 20px;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 1em;
    }
    
    .badge-section {
        flex-direction: column;
        text-align: center;
    }
    
    .badge-info {
        text-align: center;
    }
    
    .badge-image {
        width: 140px;
        height: 140px;
    }
    
    .badge-title {
        font-size: 1.6em;
    }
    
    .result-name {
        font-size: 1.8em;
    }
    
    .result-card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .navigation-buttons {
        flex-direction: column-reverse;
    }
    
    .navigation-buttons .btn {
        width: 100%;
    }
}
