:root {
    --primary: #7c3aed;
    --secondary: #5b21b6;
    --surface: #1f2937;
    --surface-light: #374151;
    --text: #f3f4f6;
    --text-secondary: #9ca3af;
    --error: #ef4444;
}

/* Theme Variations */
.theme-container[data-theme="BANKAI_SHIKAI"] {
    --primary: #ff4444;
    --secondary: #cc0000;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

.theme-container[data-theme="AVATAR_ELEMENT"] {
    --primary: #00b4d8;
    --secondary: #0077b6;
    background: linear-gradient(135deg, #48cae4 0%, #023e8a 100%);
}

.theme-container[data-theme="SUPER_POWER"] {
    --primary: #7209b7;
    --secondary: #560bad;
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
}

.theme-container[data-theme="PRINCESS"] {
    --primary: #ff69b4;
    --secondary: #ff1493;
    background: linear-gradient(135deg, #ffe5f1 0%, #ffc0cb 100%);
    --text: #4a4a4a;
    --text-secondary: #666666;
    --surface: #fff5f8;
    --surface-light: #fff0f5;
}

body {
    background-color: #111827;
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
}

/* Main Title Styling */
.main-title {
    color: var(--primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Theme Card Styling */
.theme-card {
    background-color: var(--surface);
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.theme-title {
    color: var(--primary);
    font-weight: 600;
}

/* Form Elements */
.theme-select {
    background-color: var(--surface-light);
    border: 1px solid var(--primary);
    color: var(--text);
    border-radius: 0.5rem;
}

.theme-textarea {
    background-color: var(--surface-light);
    border: 1px solid var(--primary);
    color: var(--text);
    border-radius: 0.5rem;
    resize: vertical;
}

.theme-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Buttons */
.theme-button {
    background-color: var(--primary);
    border: none;
    color: var(--text);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.theme-button:hover:not(:disabled) {
    background-color: var(--secondary);
    transform: translateY(-1px);
}

.theme-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.theme-button-secondary {
    background-color: var(--surface-light);
    border: 1px solid var(--primary);
    color: var(--text);
}

.theme-button-exit {
    background-color: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* Question Styling */
.theme-question {
    color: var(--text);
    font-size: 1.2rem;
    line-height: 1.6;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-btn {
    background-color: var(--surface-light);
    border: 1px solid var(--primary);
    color: var(--text);
    padding: 1rem;
    text-align: left;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.option-btn:hover:not(.selected) {
    background-color: var(--secondary);
    transform: translateX(5px);
}

.option-btn.selected {
    background-color: var(--primary);
    border-color: var(--secondary);
}

/* Progress Bar */
.theme-progress {
    position: relative;
}

.progress {
    height: 0.5rem;
    background-color: var(--surface-light);
    border-radius: 1rem;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.progress-text {
    color: var(--text-secondary);
    margin-top: 0.5rem;
    display: block;
    text-align: center;
}

/* Analysis Styling */
.theme-analysis {
    color: var(--text);
    line-height: 1.6;
}

.theme-analysis h2 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 0.25rem;
}

.theme-analysis h2:first-child {
    margin-top: 0;
}

.theme-analysis p {
    margin: 0.75rem 0;
}

.theme-analysis ul {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.theme-analysis li {
    margin: 0.5rem 0;
}

/* Loading Spinner */
.theme-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--surface-light);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Loading Container Fix */
.loading-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--surface);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 200px;
}

.loading-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Custom Response Styling Update */
.custom-response-container {
    margin-top: 1rem;
    background-color: var(--surface);
    border-radius: 0.75rem;
    padding: 1rem;
    display: none;
    border: 1px solid var(--primary);
}

.custom-response-container.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.custom-response-input {
    width: 100%;
    background-color: var(--surface-light);
    border: 1px solid var(--primary);
    border-radius: 0.5rem;
    color: var(--text);
    padding: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    min-height: 100px;
    resize: vertical;
    transition: all 0.2s ease;
}

.custom-response-input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
}

.custom-response-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

/* How to Use Section Update */
.theme-instructions {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.theme-list {
    text-align: left;
    display: inline-block;
    margin: 1rem auto;
}

.theme-list li {
    margin: 0.75rem 0;
    color: var(--text);
}

/* Loading Text Update */
.loading-text {
    color: var(--text);
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Theme Text Colors */
.theme-text {
    color: var(--text);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .theme-card {
        margin: 1rem 0;
    }
}

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

/* Site Description Styling Update */
.site-description {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: var(--surface);
    border-radius: 1rem;
    border: 1px solid var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.site-description.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.site-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    color: var(--text);
}

/* Add button styling */
.site-description .theme-button-secondary {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.site-description .theme-button-secondary:hover {
    opacity: 1;
} 