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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

header {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.auth-section {
    position: absolute;
    top: 1rem;
    right: 2rem;
}

.auth-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.welcome-msg {
    font-size: 0.9rem;
    margin-right: 1rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.year {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.neighborhood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.neighborhood-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.neighborhood-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.neighborhood-card h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.neighborhood-card p {
    color: #666;
    font-size: 0.9rem;
}

.neighborhood-detail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem;
}

.neighborhood-detail.hidden {
    display: none;
}

.back-button {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 2rem;
    transition: background 0.3s ease;
}

.back-button:hover {
    background: #5a6fd8;
}

.category-section {
    margin-bottom: 3rem;
}

.category-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
}

.tab-button {
    padding: 1rem 2rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-button.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.restaurant-grid {
    display: grid;
    gap: 1.5rem;
}

.restaurant-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
}

.restaurant-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #333;
}

.restaurant-comment {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.restaurant-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #777;
}

.restaurant-meta a {
    color: #667eea;
    text-decoration: none;
}

.restaurant-meta a:hover {
    text-decoration: underline;
}

.hours {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.main-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
}

.main-tab {
    padding: 1rem 2rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.main-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.main-content {
    display: none;
}

.main-content.active {
    display: block;
}

.favorites-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
}

.no-favorites {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 3rem;
}

.star-icon {
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.star-icon:hover {
    transform: scale(1.2);
}

.star-icon.favorited {
    color: #ffd700;
}

.disclaimer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin: 2rem auto;
    max-width: 800px;
    text-align: center;
}

.disclaimer p {
    color: #856404;
    margin: 0;
    font-size: 0.9rem;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 400px;
    max-width: 90vw;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.auth-form input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.submit-btn {
    width: 100%;
    background: #667eea;
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.submit-btn:hover {
    background: #5a6fd8;
}

.switch-form {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.switch-form a {
    color: #667eea;
    text-decoration: none;
}

footer {
    background: #f8f9fa;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #eee;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.lily-permissions {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.copyright {
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .neighborhood-grid {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .neighborhood-detail {
        padding: 1rem;
    }
    
    .category-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        text-align: left;
    }
    
    footer {
        padding: 1rem;
    }
}