
:root {
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --text-color: #212529;
    --primary-color: #ff4757;
    --primary-variant-color: #e84118;
    --secondary-text: #6c757d;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    word-break: keep-all;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--card-background);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.nav-links {
    display: none;
}

@media (min-width: 768px) {
    .logo { font-size: 1.5rem; }
    .nav-links { display: flex; list-style: none; gap: 20px; margin: 0; padding: 0; }
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), #ff6b81);
    color: white;
}

.hero-section h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.hero-section p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hero-section { padding: 80px 5%; }
    .hero-section h1 { font-size: 2.8rem; }
}

main {
    max-width: 700px;
    margin: -30px auto 40px;
    padding: 0 15px;
}

.card-section {
    background-color: var(--card-background);
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    text-align: center;
}

@media (min-width: 768px) {
    .card-section { padding: 50px 40px; }
}

.section-header h2 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.5rem;
}

.section-desc {
    color: var(--secondary-text);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.recommend-box {
    background-color: rgba(255, 71, 87, 0.03);
    padding: 25px;
    border-radius: 12px;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 auto 25px;
    border: 2px dashed rgba(255, 71, 87, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    color: var(--primary-color);
}

.tip-box {
    margin-top: 30px;
    padding: 20px;
    background-color: #fffaf0;
    border-left: 4px solid #ffa500;
    color: #856404;
    font-size: 0.9rem;
    border-radius: 8px;
    text-align: left;
}

/* Button UI */
button {
    width: auto;
    min-width: 200px;
    max-width: 100%;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-variant-color));
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 15px rgba(255, 71, 87, 0.3);
    margin: 0 auto;
    display: block;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4);
}

button:active {
    transform: translateY(0);
}

/* Lotto UI Optimized */
.lotto-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0;
}

.ball-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ball {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: #333;
    box-shadow: inset -3px -3px 6px rgba(0,0,0,0.1), 2px 2px 8px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
    .ball { width: 52px; height: 52px; font-size: 1.2rem; }
    .lotto-wrapper { gap: 20px; }
}

.bonus-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.plus-sign {
    font-size: 1.5rem;
    color: var(--secondary-text);
}

/* Form Styling */
.contact-form-styled {
    text-align: left;
    max-width: 100%;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    border: 2px solid rgba(128,128,128,0.1);
    border-radius: 12px;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 1rem;
}

.input-group input:focus, 
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    margin-top: 10px;
}

/* Footer */
footer {
    background-color: var(--card-background);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
    list-style: none;
    padding: 0;
}

.footer-links a {
    color: var(--secondary-text);
    text-decoration: none;
    font-size: 0.85rem;
}
