@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;700&display=swap');

:root {
  --primary-color: #8A2BE2;
  --secondary-color: #4B0082;
  --text-color: #E6E6FA;
  --bg-color: #1A1A1A;
  --container-bg-color: #2D2D2D;
  --border-radius: 8px;
}

body {
    font-family: 'Noto Serif KR', serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--bg-color) url('https://www.transparenttextures.com/patterns/stardust.png');
}

.container {
    width: 100%;
    max-width: 600px;
    background-color: var(--container-bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--secondary-color);
}

header {
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}

h1 {
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 10px;
}

.input-form h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.input-form input[type="text"],
.input-form input[type="number"],
.input-form input[type="time"],
.input-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--secondary-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    border-radius: var(--border-radius);
    box-sizing: border-box;
    font-family: inherit;
}

.options-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.birth-date {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 480px) {
    .birth-date {
        grid-template-columns: repeat(4, 1fr);
    }
}

#submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 15px var(--primary-color);
}

#submit-btn:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 0 25px var(--primary-color), 0 0 5px white;
}

.result-section {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--bg-color);
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius);
    display: none; /* Initially hidden */
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 2em;
    }
}

/* Partnership Section Styles */
.partnership-section {
    margin-top: 50px;
    padding: 30px 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px dashed var(--secondary-color);
    border-radius: var(--border-radius);
    text-align: center;
}

.divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin-bottom: 25px;
}

.partnership-section h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.8em;
}

.partnership-section p {
    font-size: 0.95em;
    color: var(--text-color);
    margin-bottom: 25px;
    opacity: 0.8;
}

.partnership-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.partnership-form input,
.partnership-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--secondary-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    border-radius: var(--border-radius);
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1em;
}

.partnership-form textarea {
    height: 120px;
    resize: vertical;
}

.partnership-form input:focus,
.partnership-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px var(--primary-color);
}

.form-submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--secondary-color);
    color: white;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Saju Professional Grid */
.saju-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px 0;
    text-align: center;
}

.saju-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.column-label {
    font-size: 0.8em;
    color: #aaa;
    margin-bottom: 5px;
}

.saju-cell {
    padding: 15px 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.saju-hanja {
    font-size: 1.8em;
    font-weight: bold;
    display: block;
    margin-bottom: 2px;
}

.saju-hangul {
    font-size: 0.9em;
    opacity: 0.8;
}

.sipseong-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    margin-top: 5px;
    background: var(--secondary-color);
    color: white;
}

/* Element Colors */
.elem-wood { color: #4CAF50; border-bottom: 3px solid #4CAF50 !important; }
.elem-fire { color: #F44336; border-bottom: 3px solid #F44336 !important; }
.elem-earth { color: #FFC107; border-bottom: 3px solid #FFC107 !important; }
.elem-metal { color: #E0E0E0; border-bottom: 3px solid #E0E0E0 !important; }
.elem-water { color: #2196F3; border-bottom: 3px solid #2196F3 !important; }

/* Add-on 8 Features Grid */
.addon-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 30px;
}

@media (min-width: 600px) {
    .addon-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.addon-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: var(--border-radius);
    padding: 15px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.addon-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.addon-card h4 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-size: 1.1em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.addon-content {
    font-size: 0.9em;
    line-height: 1.6;
    color: #ddd;
    min-height: 40px;
}

.addon-content.loading {
    color: #888;
    font-style: italic;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

.analysis-box {
    background: #252525;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    margin-top: 20px;
}

@media (max-width: 480px) {
    .saju-hanja { font-size: 1.4em; }
    .saju-grid { gap: 5px; }
}
