/**
 * Front 학습자용 GNB & Footer 공통 스타일
 */

/* ===== 헤더 (GNB) ===== */
.front-header {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.front-header-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 로고 */
.front-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #212121;
}

.front-logo img {
    display: block;
}

.front-logo-text {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

/* 네비게이션 메뉴 */
.front-nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.front-nav-menu a {
    text-decoration: none;
    color: #424242;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.front-nav-menu a:hover {
    color: #667eea;
}

/* 헤더 액션 버튼 */
.front-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.front-auth-buttons {
    display: flex;
    gap: 12px;
}

.front-btn-login,
.front-btn-signup,
.front-btn-mypage {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.front-btn-login {
    background: white;
    color: #667eea;
    border: 1px solid #667eea;
}

.front-btn-login:hover {
    background: #667eea;
    color: white;
}

.front-btn-signup {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.front-btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.front-btn-mypage {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.front-btn-mypage:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.front-mypage-button {
    display: none;
}

/* 모바일 메뉴 버튼 */
.front-mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #424242;
    cursor: pointer;
}

/* 모바일 메뉴 */
.front-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 2000;
    overflow-y: auto;
}

.front-mobile-menu.active {
    right: 0;
}

.front-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.front-mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #424242;
    cursor: pointer;
}

.front-mobile-nav {
    padding: 20px;
}

.front-mobile-nav-link {
    display: block;
    padding: 12px 0;
    color: #424242;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid #f5f5f5;
}

.front-mobile-nav-link:hover {
    color: #667eea;
}

.front-mobile-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 16px 0;
}

/* ===== 로그인 모달 ===== */
.front-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.front-modal-overlay.show {
    display: flex;
}

.front-modal-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    width: 90%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.front-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #757575;
    cursor: pointer;
    transition: color 0.2s;
}

.front-modal-close:hover {
    color: #212121;
}

.front-modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.front-modal-title {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.front-modal-subtitle {
    color: #757575;
    font-size: 14px;
}

.front-form-group {
    margin-bottom: 20px;
}

.front-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #424242;
    margin-bottom: 8px;
}

.front-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.front-form-input:focus {
    outline: none;
    border-color: #667eea;
}

.front-form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.front-form-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.front-form-checkbox label {
    font-size: 14px;
    color: #424242;
    cursor: pointer;
}

.front-btn-login-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.front-btn-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.front-modal-footer {
    margin-top: 24px;
    text-align: center;
}

.front-modal-footer-text {
    font-size: 13px;
    color: #757575;
}

/* ===== 푸터 ===== */
.front-footer {
    background: #212121;
    color: #e0e0e0;
    padding: 60px 0 30px;
    margin-top: 100px;
}

.front-footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.front-footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.front-footer-brand {
}

.front-footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.front-footer-logo img {
    display: block;
}

.front-footer-description {
    color: #9e9e9e;
    font-size: 14px;
    line-height: 1.6;
}

.front-footer-links {
    display: contents;
}

.front-footer-column {
}

.front-footer-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.front-footer-column a,
.front-footer-column p {
    display: block;
    color: #9e9e9e;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.front-footer-column a:hover {
    color: #667eea;
}

.front-footer-column p {
    display: flex;
    align-items: center;
    gap: 8px;
}

.front-footer-column p i {
    width: 16px;
    text-align: center;
}

.front-footer-bottom {
    border-top: 1px solid #424242;
    padding-top: 24px;
}

.front-footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.front-footer-bottom-content p {
    color: #757575;
    font-size: 13px;
}

.front-footer-social {
    display: flex;
    gap: 12px;
}

.front-footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #424242;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.2s;
}

.front-footer-social a:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* ===== 반응형 ===== */
@media (max-width: 1024px) {
    .front-footer-top {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .front-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    /* 헤더 */
    .front-header-main {
        padding: 0 20px;
    }
    
    .front-nav-menu {
        display: none;
    }
    
    /* .front-auth-buttons는 JavaScript로 제어 - CSS에서 숨기지 않음 */
    
    .front-mobile-menu-btn {
        display: block;
    }
    
    /* 푸터 */
    .front-footer {
        padding: 40px 0 20px;
        margin-top: 60px;
    }
    
    .front-footer-container {
        padding: 0 20px;
    }
    
    .front-footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .front-footer-bottom-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    /* 모달 */
    .front-modal-content {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .front-logo-text {
        font-size: 18px;
    }
    
    .front-btn-login,
    .front-btn-signup,
    .front-btn-mypage {
        padding: 8px 16px;
        font-size: 13px;
    }
}
