/* Smarts Personality Quiz Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Circular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #FE6D6A;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #000000;
    position: relative;
    overflow-x: hidden;
}

/* Background Doodles SVG */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/doodles.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
    filter: brightness(0) invert(1);
}

.container {
    max-width: 800px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Screen Management */
.screen {
    display: none;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease;
    position: relative;
    overflow: hidden;
}

.screen.active {
    display: block;
}

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

/* Decorative doodle on quiz screen - will be randomized via JS */
#quiz-doodle {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    opacity: 1;
    pointer-events: none;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity 0.3s ease;
    filter: brightness(0) invert(1);
}

/* Results screen decoration */
#results-screen::before {
    content: '';
    position: absolute;
    background-image: url('images/SVG/star.svg');
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    opacity: 1;
    pointer-events: none;
    background-size: contain;
    background-repeat: no-repeat;
    filter: brightness(0) invert(1);
}

/* Start Screen */
#start-screen h1 {
    font-family: 'Circular', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.2;
}

.intro {
    font-family: 'Circular', sans-serif;
    font-weight: 450;
    font-size: 1.1rem;
    color: #000000;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Buttons */
.btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-family: 'Circular', sans-serif;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    margin: 10px 0;
    position: relative;
}

.btn-primary {
    background: #73ECD1;
    color: #000000;
    border: 2px solid #73ECD1;
}

.btn-primary:hover {
    background: #ffffff;
    color: #000000;
    border-color: #73ECD1;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(115, 236, 209, 0.2);
}

.btn-secondary {
    background: #73ECD1;
    color: #000000;
    border: 2px solid #73ECD1;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #000000;
    border-color: #73ECD1;
    transform: translateY(-2px);
}

.btn-tertiary {
    background: #ffffff;
    color: #000000;
    border: 2px solid #ececec;
}

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

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #ececec;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: #73ECD1;
    transition: width 0.3s ease;
    width: 0%;
}

.question-counter {
    text-align: right;
    color: #000000;
    font-size: 0.9rem;
    font-family: 'Circular', sans-serif;
    margin-bottom: 20px;
    opacity: 0.6;
}

/* Question Styles */
.question {
    margin-bottom: 30px;
}

.question h2 {
    font-family: 'Circular', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: 25px;
    line-height: 1.3;
}

.answer {
    background: #ffffff;
    padding: 15px 20px;
    margin: 10px 0;
    border-radius: 10px;
    border: 2px solid #73ECD1;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-family: 'Circular', sans-serif;
    font-weight: 450;
    color: #000000;
}

.answer:hover {
    background: #ffffff;
    border-color: #000000;
    transform: translateX(5px);
}

.answer.selected {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

/* Results Screen */
.results-card {
    max-width: 100%;
}

/* Results header - "You are..." and result name on same line */
.results-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 30px;
    text-align: center;
}

.results-title {
    font-family: 'Circular', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: #000000;
    margin: 0 0 10px 0;
}

.result-name {
    font-family: 'Circular', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: #000000;
    margin: 0;
    line-height: 1.3;
    text-align: center;
}

/* Results content - Image and text side by side on desktop */
.results-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 30px;
}

.result-image {
    width: 100%;
    height: 350px;
    background: transparent;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.result-text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 10px;
}

.result-description {
    font-family: 'Circular', sans-serif;
    font-weight: 450;
    font-size: 1rem;
    color: #000000;
    line-height: 1.6;
    text-align: left;
}

/* Share Section */
.share-section {
    margin-top: 30px;
}

.share-label {
    font-family: 'Circular', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #000000;
    margin-bottom: 15px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.6;
}

/* Social Share Buttons */
.social-share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.social-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-btn:hover {
    transform: translateY(-3px);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.copy-feedback {
    margin-top: 15px;
    color: #73ECD1;
    font-weight: 600;
    font-family: 'Circular', sans-serif;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.copy-feedback.show {
    opacity: 1;
}

/* CTA Section */
.cta-section {
    margin-top: 20px;
}

.cta-text {
    font-family: 'Circular', sans-serif;
    font-weight: 450;
    font-size: 0.9rem;
    color: #000000;
    line-height: 1.4;
    margin-bottom: 8px;
    text-align: center;
}

.cta-text:last-child {
    margin-bottom: 0;
}

.cta-text a {
    color: #000000;
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cta-text a:hover {
    color: #73ECD1;
}

/* Emma Font Helper Class - Use sparingly for emphasis */
.emma-font {
    font-family: 'Emma', 'Circular', sans-serif;
    font-size: 2em; /* 2X the size of surrounding text per brand guidelines */
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        max-width: 600px;
    }
    
    #start-screen h1 {
        font-size: 2rem;
    }
    
    .screen {
        padding: 30px 20px;
    }
    
    /* Stack image and text vertically on mobile */
    .results-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .results-header {
        flex-direction: column;
        gap: 0;
    }
    
    .results-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .result-name {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .result-image {
        height: 350px;
    }
    
    .result-text-content {
        padding-top: 0;
    }
    
    .result-description {
        text-align: center;
        font-size: 0.95rem;
    }
    
    .social-share-buttons {
        gap: 12px;
    }
    
    .social-btn {
        width: 45px;
        height: 45px;
        padding: 10px;
    }
    
    #quiz-doodle {
        width: 45px;
        height: 45px;
    }
}

/* Font Loading - Circular with OTF and TTF fallbacks */
@font-face {
    font-family: 'Circular';
    src: url('fonts/Circular-Book.otf') format('opentype'),
         url('fonts/Circular-Book.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Circular';
    src: url('fonts/Circular-Medium.otf') format('opentype'),
         url('fonts/Circular-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Circular';
    src: url('fonts/Circular-Bold.otf') format('opentype'),
         url('fonts/Circular-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Font Loading - Emma Font with OTF and TTF fallbacks */
@font-face {
    font-family: 'Emma';
    src: url('fonts/Emma.otf') format('opentype'),
         url('fonts/Emma.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}