:root {
    --bg-dark: #0f0c29;
    --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-primary: #e0e0e0;
    --text-accent: #ffd700;
    --btn-primary: #6a11cb;
    --btn-hover: #2575fc;
    --pillar-bg: rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 600px;
    padding: 2rem;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    color: var(--text-accent);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

header p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-accent);
    font-weight: bold;
}

input[type="text"],
input[type="date"],
input[type="time"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    border-radius: 8px;
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: var(--text-accent);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.radio-group {
    display: flex;
    gap: 1.5rem;
}

.radio-group label {
    font-weight: normal;
    color: white;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(to right, var(--btn-primary), var(--btn-hover));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    margin-top: 1rem;
    font-weight: bold;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.4);
}

.hidden {
    display: none;
}

/* Result Section Styles */
.pillars-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 2rem 0;
}

.pillar {
    background: var(--pillar-bg);
    border-radius: 10px;
    padding: 1rem 0.5rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

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

.gan-ji {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-accent);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.interpretation {
    text-align: left;
    margin-top: 2rem;
    background: rgba(0,0,0,0.2);
    padding: 1.5rem;
    border-radius: 10px;
}

.interpretation h3 {
    color: var(--text-accent);
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

#fortune-text {
    line-height: 1.6;
    color: #ddd;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--text-accent);
    color: var(--text-accent);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    margin-top: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--text-accent);
    color: var(--bg-dark);
}

@media (max-width: 600px) {
    .pillars-container {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid on mobile */
    }
}