:root {
    --bg-color: #f8f4f0;
    --card-bg: #ffffff;
    --text-color: #2c2c2c;
    --accent-color: #8b6e4e; /* Earthy Gold */
    
    /* Five Elements Colors */
    --wood: #4caf50;
    --fire: #f44336;
    --earth: #ffeb3b;
    --metal: #9e9e9e;
    --water: #2196f3;
}

body {
    margin: 0;
    font-family: 'Noto Serif KR', serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(rgba(0,0,0,0.05), transparent);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-style: italic;
    opacity: 0.8;
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem 4rem;
}

.card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
}

h2 {
    font-family: 'Playfair Display', serif;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.format-hint {
    font-weight: normal;
    font-size: 0.8rem;
    opacity: 0.6;
    margin-left: 5px;
}

.time-picker {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.time-picker select {
    flex: 1.2;
}

.min-input-container {
    flex: 1.5;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding-right: 0.8rem;
    background: white;
}

.min-input-container input {
    border: none;
    padding: 0.8rem;
    width: 100%;
}

.min-label {
    font-size: 0.8rem;
    color: #888;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

input, select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    background-color: white;
}

.cta-button, .secondary-button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.cta-button {
    background-color: var(--accent-color);
    color: white;
}

.cta-button:hover {
    background-color: #6d563d;
    transform: translateY(-2px);
}

.secondary-button {
    background-color: #eee;
    color: #555;
}

.hidden {
    display: none;
}

/* Result Styles */
.pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.pillar {
    text-align: center;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
}

.pillar-label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.hanja {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.element-tag {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    color: white;
    font-weight: bold;
}

.analysis h3 {
    border-left: 4px solid var(--accent-color);
    padding-left: 0.8rem;
    margin: 2rem 0 1rem;
}

.element-chart {
    display: flex;
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
    margin: 1.5rem 0;
    background: #eee;
}

.chart-bar {
    height: 100%;
    transition: width 0.5s ease;
}

footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Element Styles */
.wood { background-color: var(--wood); }
.fire { background-color: var(--fire); }
.earth { background-color: var(--earth); color: #333 !important; }
.metal { background-color: var(--metal); }
.water { background-color: var(--water); }
