@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
    --apple-bg: #f5f5f7;
    --apple-text: #1d1d1f;
    --apple-blue: #0071e3;
    --apple-gray: #86868b;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --border-color: #d2d2d7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--apple-bg);
    color: var(--apple-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 44px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
}

.nav-content {
    width: 100%;
    max-width: 1024px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 22px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--apple-text);
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a.active {
    opacity: 1;
    font-weight: 600;
}

.download-btn {
    background-color: var(--apple-blue);
    color: white !important;
    padding: 4px 12px;
    border-radius: 980px;
    font-size: 11px !important;
    font-weight: 500 !important;
    opacity: 1 !important;
    text-decoration: none;
    display: inline-block;
}

.lite-btn {
    background-color: #555; /* Neutral gray for lite version */
}

.nav-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Hero Section */
.hero {
    padding-top: 100px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 56px;
    font-weight: 600;
    letter-spacing: -0.005em;
    margin-bottom: 15px;
}

.hero p {
    font-size: 24px;
    color: var(--apple-gray);
    margin-bottom: 30px;
}

/* Container */
.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 80px 22px;
}

/* Cards / Forms */
.card {
    background: white;
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="text"], input[type="password"], input[type="email"], select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

input:focus {
    border-color: var(--apple-blue);
}

.apple-button {
    width: 100%;
    background-color: var(--apple-blue);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s;
}

.apple-button:hover {
    opacity: 0.9;
}

/* Table Style for Admin */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    margin-top: 30px;
}

.admin-table th {
    background: #fbfbfd;
    padding: 15px;
    text-align: left;
    font-size: 13px;
    color: var(--apple-gray);
    border-bottom: 1px solid var(--border-color);
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid #f2f2f2;
    font-size: 14px;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.badge-admin { background: #fee2e2; color: #ef4444; }
.badge-user { background: #e0f2fe; color: #0ea5e9; }
.badge-blocked { background: #374151; color: white; }

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 18px;
    width: 100%;
    max-width: 500px;
}

/* --- Mobile Responsiveness (Responsive Navbar & Layout) --- */
@media (max-width: 768px) {
    nav {
        height: auto !important;
        padding: 10px 0;
    }
    .nav-content {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
        align-items: center;
    }
    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 14px;
        width: 100%;
    }
    .nav-links a {
        font-size: 13px; /* 모바일에서 터치하기 편하도록 조금 크게 조절 */
        white-space: nowrap !important; /* ⚠️ 글자가 세로로 쪼개지는(개행) 현상 철저 방지 */
        padding: 4px 6px;
    }
    .nav-actions {
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
        gap: 6px;
    }
    .download-btn {
        padding: 6px 14px;
        font-size: 12px !important;
    }
    
    /* 모바일 네비게이션 바 높이가 늘어남에 따라 컨테이너 여백 자동 확장 */
    .container {
        padding-top: 130px !important;
    }
}
