:root {
    --bg-color: #fcfcfc;
    --text-color: #2c3e50;
    --accent-color: #2980b9;
    --border-color: #e0e0e0;
    --header-bg: #f8f9fa;
    --font-main: 'Georgia', serif;
    --font-heading: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    width: 100%;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
}

main#app {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 40px;
}

h1 {
    font-family: var(--font-heading);
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.subtitle {
    font-style: italic;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.main-nav {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.main-nav a:hover, .main-nav a.active {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.view {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
    flex-grow: 1;
}

.hidden {
    display: none !important;
}

h2 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    font-weight: 600;
}

p {
    margin-bottom: 20px;
}

.meta-info {
    background: #f1f4f6;
    padding: 15px;
    border-radius: 4px;
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    font-size: 0.85rem;
    font-family: var(--font-heading);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--text-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-family: var(--font-heading);
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background-color: #1a252f;
}

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

.btn.primary:hover {
    background-color: #21618c;
}

/* Assessment Styles */
.progress-container {
    background: #eee;
    height: 6px;
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 0.3s;
}

.options-grid {
    display: grid;
    gap: 15px;
    margin-top: 25px;
}

.option-card {
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.option-card:hover {
    border-color: var(--accent-color);
    background: #f7fbfe;
}

/* Loader Styles */
.loader-container {
    text-align: center;
    margin-top: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Results Styles */
.summary-box {
    border-left: 4px solid var(--accent-color);
    background: #f7fbfe;
    padding: 20px;
    margin-bottom: 30px;
}

/* Fullscreen Video Trap */
.fullscreen-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

#player {
    width: 100%;
    height: 100%;
    pointer-events: none; /* Block clicking on the video itself to skip/pause */
}

#rick-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#trap-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none; /* Hide cursor for extra "stuck" feeling */
}

#fs-notice {
    background: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-family: var(--font-heading);
    color: var(--text-color);
}

#fs-notice h2 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
}

.close-modal:hover {
    color: black;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

footer {
    text-align: center;
    font-size: 0.75rem;
    color: #95a5a6;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 60px;
    font-family: var(--font-heading);
}

footer a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted #bdc3c7;
}

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

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