/* tailwind-like animation utils for page entrance */
.animate-in {
    animation-fill-mode: both;
}
.fade-in {
    animation-name: fadeIn;
}
.slide-in-from-bottom-4 {
    animation-name: slideInBottom;
}
.slide-in-from-right-4 {
    animation-name: slideInRight;
}
.duration-300 {
    animation-duration: 300ms;
}
.duration-500 {
    animation-duration: 500ms;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInBottom {
    from { 
        opacity: 0;
        transform: translateY(1rem);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from { 
        opacity: 0;
        transform: translateX(1rem);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hide scrollbar for tabs */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
/* Bottom Navigation - MeongMeong Style */
.aqm-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: #000;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
}

.aqm-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.7rem;
    font-weight: 700;
    width: 25%;
    height: 100%;
    transition: all 0.2s;
    text-decoration: none !important;
}

.aqm-nav-item i, .aqm-nav-item svg {
    margin-bottom: 4px;
    width: 20px;
    height: 20px;
}

.aqm-nav-item.active {
    color: #facc15;
}

.aqm-nav-item:hover {
    color: #fff;
}

/* PC/Tablet Responsive Adjustment */
@media (min-width: 768px) {
    .aqm-bottom-nav {
        height: 80px;
        padding: 0 20%;
    }
    .aqm-nav-item {
        font-size: 0.85rem;
    }
    .aqm-nav-item i, .aqm-nav-item svg {
        width: 24px;
        height: 24px;
    }
}

/* Add padding to the main content to avoid overlap with bottom navigation */
main {
    padding-bottom: 120px !important;
}
@media (min-width: 768px) {
    main {
        padding-bottom: 150px !important;
    }
}
/* Header & Navigation Refinement */
.aqm-user-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #fefce8;
    border: 1.5px solid #facc15;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #111827;
    box-shadow: 0 2px 10px rgba(250, 204, 21, 0.15);
}

.aqm-btn-kakao-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #FEE500;
    color: #111827;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(254, 229, 0, 0.2);
}
.aqm-btn-kakao-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(254, 229, 0, 0.3);
}

/* Login Modal Overlay */
.aqm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.aqm-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.aqm-modal-content {
    background: #fff;
    width: 420px;
    max-width: 90%;
    padding: 2.5rem 2rem;
    border-radius: 2rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(1rem);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.aqm-modal-overlay.active {
    display: flex;
}
.aqm-modal-overlay.active .aqm-modal-content {
    transform: translateY(0);
    opacity: 1;
}

.aqm-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
}
.aqm-modal-close:hover {
    background: #e5e7eb;
    color: #111827;
}

.btn-kakao-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    height: 58px;
    background-color: #FEE500;
    color: #111827;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(254, 229, 0, 0.2);
}
.btn-kakao-modal:hover {
    background-color: #fddc00;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(254, 229, 0, 0.3);
}
/* Regular Login Button (Header) */
.aqm-btn-login-ghost {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6b7280;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s;
    cursor: pointer;
    background: none;
    border: none;
}
.aqm-btn-login-ghost:hover {
    color: #000;
}

/* Modal Form Styles */
.aqm-input-field {
    width: 100%;
    height: 50px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0 1rem;
    font-size: 0.9rem;
    transition: all 0.2s;
    outline: none;
}
.aqm-input-field:focus {
    background-color: #fff;
    border-color: #000;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.aqm-btn-submit-login {
    width: 100%;
    height: 54px;
    background-color: #000;
    color: #fff;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-weight: 800;
    transition: all 0.2s;
    margin-top: 1rem;
}
.aqm-btn-submit-login:hover {
    background-color: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-kakao-modal-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 48px;
    background-color: #FEE500;
    color: #111827;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-kakao-modal-mini:hover {
    background-color: #fddc00;
    transform: translateY(-1px);
}

/* 모바일 전용 헤더 레이아웃 최적화 (여백 및 글자 크기 축소, 호칭 숨김) */
@media (max-width: 767px) {
    .aqm-user-badge {
        padding: 0.25rem 0.6rem !important;
        font-size: 0.75rem !important;
        gap: 0.25rem !important;
        box-shadow: 0 1px 5px rgba(250, 204, 21, 0.1) !important;
    }
    .aqm-user-badge svg, 
    .aqm-user-badge i {
        display: none !important;
    }
    .aqm-user-badge-honorific {
        display: none !important;
    }
    .aqm-btn-login-ghost {
        font-size: 0.75rem !important;
        padding: 0.3rem 0.4rem !important;
    }
}
