/**
 * EzNet v5.0 - User Page Stylesheet
 * 사용자 페이지 전용 스타일
 */

/* ============================================
   User Header Styles
   ============================================ */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 2000;
    overflow: visible;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    overflow: visible;
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 0.2rem;
}

.logo .tagline {
    font-size: 0.85rem;
    color: #666;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    overflow: visible;
}

/* Auth Menu (비로그인) */
.auth-menu {
    display: flex;
    gap: 1rem;
}

.btn-login {
    background: #0066cc;
    color: #fff;
}

.btn-login:hover {
    background: #0052a3;
    color: #fff;
}

/* User Menu (로그인) */
.user-menu {
    position: relative;
    overflow: visible;
}

.dropdown {
    position: relative;
    overflow: visible;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: background 0.3s ease;
}

.dropdown-toggle:hover {
    background: #e0e0e0;
}

.dropdown-toggle .user-name {
    font-weight: 500;
    color: #333;
}

.dropdown-toggle .user-icon {
    font-size: 1.2rem;
}

.dropdown-toggle .arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown-toggle:hover .arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 2001;
    pointer-events: none;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    display: block;
    padding: 0.8rem 1.2rem;
    color: #333;
    transition: background 0.2s ease;
}

.dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.dropdown-item:hover {
    background: #f5f5f5;
    color: #0066cc;
}

.dropdown-item.highlighted {
    background: #e3f2fd;
    color: #0066cc;
    font-weight: 600;
}

.dropdown-item.highlighted:hover {
    background: #bbdefb;
}

.dropdown-item.logout {
    color: #d32f2f;
    border-top: 1px solid #e0e0e0;
}

.dropdown-item.logout:hover {
    background: #ffebee;
    color: #c62828;
}

.dropdown-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 0.5rem 0;
}

/* ============================================
   User Footer Styles
   ============================================ */
.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section h3 {
    font-size: 1.5rem;
}

.footer-section h4 {
    font-size: 1.1rem;
}

.footer-section p {
    color: #bdc3c7;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-section ul li a {
    color: #bdc3c7;
}

.footer-section ul li a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 0.9rem;
}

/* ============================================
   Responsive Design - User Specific
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
    .header-inner {
        padding: 0.8rem 0;
    }

    .logo-img {
        height: 40px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .logo .tagline {
        font-size: 0.8rem;
    }

    .dropdown-toggle {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .dropdown-toggle .user-name {
        font-size: 0.9rem;
    }

    .dropdown-menu {
        min-width: 200px;
        max-width: 80vw;
    }

    .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .header-inner {
        padding: 0.6rem 0;
    }

    .logo-img {
        height: 35px;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .logo .tagline {
        font-size: 0.75rem;
    }

    .dropdown-toggle {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        min-height: 44px; /* 모바일 터치 최소 크기 */
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dropdown-toggle .user-name {
        display: none; /* 모바일에서는 이름 숨김 */
    }

    .dropdown-toggle .user-icon {
        font-size: 1.5rem;
        margin: 0;
    }

    .dropdown-toggle .arrow {
        margin-left: 0.3rem;
    }

    .dropdown-menu {
        right: 0;
        left: auto;
        min-width: 200px;
        max-width: 90vw;
    }

    .dropdown-item {
        padding: 1rem 1.2rem;
        font-size: 0.9rem;
        min-height: 44px; /* 터치 영역 확보 */
        display: flex;
        align-items: center;
    }

    .btn-login {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        min-height: 44px;
    }

    .site-footer {
        padding: 2rem 0 1rem;
    }
}
