/* =========================================
   Global Header & Footer Styles
   ========================================= */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* 푸터를 항상 맨 아래로 밀어내는 마법의 코드 */
}

.site-content {
    flex: 1; 
}

/* Header Styles */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #007bff;
}

/* Auth Buttons */
.header-auth {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-greeting {
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
}

.btn-nav {
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-login {
    color: #007bff;
    background-color: #e7f3ff;
}

.btn-login:hover {
    background-color: #d0e7ff;
}

.btn-signup {
    color: white;
    background-color: #007bff;
}

.btn-signup:hover {
    background-color: #0056b3;
}

.btn-logout {
    color: #dc3545;
    background-color: #f8d7da;
}

.btn-logout:hover {
    background-color: #f1b0b7;
}

/* Footer Styles */
.site-footer {
    background-color: #2c3e50;
    color: #ffffff;
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
}

.site-footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #b3bccc;
}


/* =========================================
   Global Login Modal Styles (Must be in style.css)
   ========================================= */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    backdrop-filter: blur(3px); /* 뒤 배경 흐리게 처리하는 고급 효과 */
}

.auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 10000;
    width: 100%;
    max-width: 400px;
}

.auth-box h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

/* 워드프레스 기본 로그인 폼 스타일 이쁘게 다듬기 */
#loginform p {
    margin-bottom: 15px;
}

#loginform label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

#loginform input[type="text"],
#loginform input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
}

#loginform input[type="submit"] {
    width: 100%;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

#loginform input[type="submit"]:hover {
    background-color: #0056b3;
}

.close-modal {
    display: block;
    width: 100%;
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
    cursor: pointer;
}

.close-modal:hover {
    background-color: #5a6268;
}

.hidden {
    display: none !important;
}

/* ==========================================
   EduBook styles for Booking Form
========================================== */
form {
    max-width: 420px;
    margin: 60px auto;
    padding: 40px 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

form p {
    margin-bottom: 24px;
}

form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-size: 14px;
}

form input[type="text"],
form input[type="email"],
form input[type="password"] {
    width: 100%;
    padding: 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="password"]:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

form input[type="submit"] {
    width: 100%;
    padding: 16px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s;
}

form input[type="submit"]:hover {
    background-color: #1d4ed8;
}