:root {
    --primary-color: #6366f1;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-color: #1e293b;
    --sub-text-color: #64748b;
    --option-bg: #f1f5f9;
    --option-hover: #e2e8f0;
    --border-color: #eee;
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-color: #f1f5f9;
    --sub-text-color: #94a3b8;
    --option-bg: #334155;
    --option-hover: #475569;
    --border-color: #334155;
}

* { box-sizing: border-box; font-family: 'Pretendard', sans-serif; }
body { 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    margin: 0; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    transition: background-color 0.3s, color 0.3s;
}

#app { 
    max-width: 450px; 
    width: 92%; 
    background: var(--card-bg); 
    padding: 40px 25px; 
    border-radius: 24px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); 
    text-align: center; 
    transition: background-color 0.3s;
    position: relative;
}

.theme-toggle {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    z-index: 100;
}

.progress-bar { width: 100%; height: 8px; background: var(--border-color); border-radius: 10px; margin-bottom: 30px; overflow: hidden; display: none; }
#progress { width: 0%; height: 100%; background: var(--primary-color); transition: 0.3s; }

h1 { font-size: 24px; margin-bottom: 10px; line-height: 1.4; word-break: keep-all; }
p { color: var(--sub-text-color); line-height: 1.6; margin-bottom: 30px; }

.btn { width: 100%; padding: 18px; margin: 10px 0; border: none; border-radius: 16px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-main { background-color: var(--primary-color); color: white; box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); }
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(99, 102, 241, 0.4); }
.btn-option { background-color: var(--option-bg); color: var(--text-color); text-align: left; padding: 20px; font-weight: 500; }
.btn-option:hover { background-color: var(--option-hover); }

.hidden { display: none !important; }
.ad-slot { background: var(--bg-color); border: 1px dashed var(--border-color); border-radius: 12px; margin: 20px 0; min-height: 100px; display: flex; align-items: center; justify-content: center; color: var(--sub-text-color); font-size: 12px; }

#result-title { font-size: 28px; color: var(--primary-color); margin-top: 10px; }
#result-desc { background: var(--bg-color); padding: 20px; border-radius: 15px; text-align: left; margin-top: 20px; }

/* Partnership Dropdown Styles */
.contact-section {
    position: absolute;
    top: 20px;
    right: 20px;
    text-align: right;
    z-index: 100;
}

.contact-section h3 {
    font-size: 13px;
    margin: 0;
    color: var(--text-color);
    cursor: pointer;
    background: var(--option-bg);
    padding: 8px 12px;
    border-radius: 10px;
    display: inline-block;
    transition: background-color 0.2s;
}

.contact-section h3:hover {
    background: var(--option-hover);
}

.contact-form-container {
    display: none;
    background: var(--card-bg);
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    width: 240px;
    position: absolute;
    right: 0;
    top: 40px;
    text-align: left;
    pointer-events: auto;
}

.contact-section:hover .contact-form-container,
.contact-section.active .contact-form-container {
    display: block;
}

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

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 13px;
    outline: none;
}

.contact-form textarea {
    height: 70px;
    resize: none;
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    font-size: 13px;
}

.btn-submit:hover {
    opacity: 0.9;
}

.comment-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: left;
}

/* Disqus Reactions & Emojis Hiding (Note: Admin Panel setting is also required) */
#disqus_reactions,
.disqus-reactions,
#disqus_thread iframe[src*="reactions"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}

.spinner { border: 4px solid rgba(0,0,0,0.1); width: 36px; height: 36px; border-radius: 50%; border-left-color: var(--primary-color); animation: spin 1s linear infinite; display: inline-block; margin-bottom: 20px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
