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

/* General Body Styles */
body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #eef2f7;
    color: #333;
}

a {
    text-decoration: none;
    color: #1a73e8;
}

/* Header & Footer */
header, footer {
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    color: #fff;
    text-align: center;
    padding: 1.2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 a {
    color: #fff;
    font-size: 1.8rem;
    font-family: 'Nanum Gothic', sans-serif;
}

/* Main Content Container */
main .container {
    max-width: 760px;
    margin: 2rem auto;
    padding: 1rem;
}

/* Tool Header */
.tool-header {
    text-align: center;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}
.tool-header h2 {
    font-size: 2.5rem;
    color: #1a237e;
    font-weight: 700;
}
.tool-header p {
    font-size: 1.1rem;
    color: #555;
}
.btn-external {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.8rem;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: #fff;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.btn-external:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Ad Slot Placeholder */
.ad-slot {
    text-align: center;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border: 1px dashed #d0d0d0;
    color: #aaa;
    border-radius: 8px;
    max-width: 100%;
}

/* Sections */
section {
    margin-bottom: 2.5rem;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

h3 {
    font-size: 1.6rem;
    color: #1a237e;
    font-family: 'Nanum Gothic', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Lotto Ball Styles */
.lotto-ball {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-weight: bold;
    color: #fff;
    font-size: 1.1rem;
    margin: 0 0.2rem;
    box-shadow: inset -2px -2px 5px rgba(0,0,0,0.2), 2px 2px 5px rgba(255,255,255,0.7);
}

.ball-yellow { background-color: #fbc02d; } /* 1-10 */
.ball-blue { background-color: #1976d2; }   /* 11-20 */
.ball-red { background-color: #d32f2f; }     /* 21-30 */
.ball-gray { background-color: #616161; }   /* 31-40 */
.ball-green { background-color: #388e3c; }  /* 41-45 */
.ball-bonus { background-color: #9e9e9e; }

/* Latest Winning Numbers */
.win-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}
.win-numbers .bonus-plus {
    font-size: 1.5rem;
    color: #555;
    margin: 0 0.5rem;
}

/* Generator Section */
.generator { text-align: center; }

#generate-btn {
    padding: 1rem 3rem;
    font-size: 1.4rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}
#generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

#generated-numbers-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.generated-set {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    animation: fadeIn 0.5s ease;
}
.generated-set .numbers {
    display: flex;
    gap: 0.5rem;
}
.generated-set .timestamp {
    font-size: 0.9rem;
    color: #777;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Lotto Info Section */
.lotto-info article {
    margin-bottom: 1.5rem;
}
.lotto-info h4 {
    font-size: 1.2rem;
    color: #0d47a1;
    margin-bottom: 0.5rem;
}
.lotto-info p {
    margin: 0;
    padding-left: 1rem;
    border-left: 3px solid #1976d2;
    background-color: #f8f9fa;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
