/* ========================= */
/* Lookalike Custom Styles   */
/* ========================= */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --text-color: #212529;
    --google-red: #EA4335;
    --naver-green: #03C75A;
    --kakao-yellow: #FEE500;
    --kakao-text: #191919;
}

body {
    background-color: var(--background-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ─── 카드 ─── */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

/* ─── 하단 네비게이션 ─── */
.navbar-bottom {
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* ─── 로고 ─── */
.logo-image {
    height: 25px !important;
    width: auto !important;
    transition: opacity 0.3s ease;
    max-width: 100%;
}

@media (max-width: 576px) {
    .logo-image {
        height: 18px !important;
    }
}

/* ========================= */
/* 소셜 로그인 버튼 스타일    */
/* ========================= */
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-social:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-social:active {
    transform: translateY(0);
}

.btn-social i {
    font-size: 1.1rem;
}

/* Google */
.btn-google {
    background-color: var(--google-red);
    color: #fff;
}

/* Naver */
.btn-naver {
    background-color: var(--naver-green);
    color: #fff;
}

/* Kakao */
.btn-kakao {
    background-color: var(--kakao-yellow);
    color: var(--kakao-text);
}

/* ─── 구분선 ─── */
.divider-text {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #adb5bd;
    font-size: 0.8rem;
}

.divider-text::before,
.divider-text::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #dee2e6;
}

.divider-text::before {
    margin-right: 12px;
}

.divider-text::after {
    margin-left: 12px;
}

/* ─── 로그인 모달 ─── */
.auth-modal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.auth-modal .modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.auth-modal .modal-body {
    padding: 24px 28px 28px;
}

.auth-modal .form-control {
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-modal .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.auth-modal .btn-submit {
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ─── 비밀번호 강도 표시 ─── */
.password-strength {
    height: 3px;
    border-radius: 3px;
    margin-top: 4px;
    transition: all 0.3s ease;
}

.password-strength.weak {
    background-color: #dc3545;
    width: 33%;
}

.password-strength.medium {
    background-color: #ffc107;
    width: 66%;
}

.password-strength.strong {
    background-color: #198754;
    width: 100%;
}

/* ─── 유저 프로필 (로그인 상태) ─── */
.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border-radius: 24px;
    border: 1px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.user-profile-btn:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.user-profile-btn img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-profile-btn .user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ─── 토스트 알림 ─── */
.toast-container {
    position: fixed;
    top: 80px;
    right: 16px;
    z-index: 9999;
}

.toast-custom {
    min-width: 280px;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.toast-custom.toast-success {
    background-color: #198754;
    color: #fff;
}

.toast-custom.toast-error {
    background-color: #dc3545;
    color: #fff;
}

.toast-custom.toast-info {
    background-color: #0d6efd;
    color: #fff;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ─── 폼 에러 메시지 ─── */
.form-error {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
}

.form-error.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-social.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ─── 최근 본 상품 ─── */
.recent-item {
    transition: background-color 0.2s;
    border: 1px solid #f1f3f5;
    border-radius: 12px;
}

.recent-item:hover {
    background-color: #f8f9fa;
}

.recent-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

/* ─── 좋아요 ─── */
.like-card {
    border: 1px solid #f1f3f5;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.like-card-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ff3b30;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.original-price {
    text-decoration: line-through;
    color: #adb5bd;
    font-size: 0.85rem;
}

.sale-price {
    color: #ff3b30;
    font-weight: bold;
    font-size: 1.1rem;
}

/* ─── 검색 히스토리 ─── */
.history-card {
    border: 1px solid #f1f3f5;
    border-radius: 12px;
    overflow: hidden;
}

.history-img {
    height: 180px;
    object-fit: cover;
    width: 100%;
}

.filter-btn {
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.9rem;
    border: none;
    background: #f1f3f5;
    color: #495057;
    transition: all 0.2s;
}

.filter-btn:hover {
    background-color: #e9ecef;
}


/* ─── 어드민 대시보드 반응형 스타일 ─── */
.timestamp-responsive {
    font-size: 0.75rem;
    /* 모바일: 작게 */
}

.dashboard-title {
    font-size: clamp(1rem, 4vw, 1.25rem);
}

@media (min-width: 768px) {
    .timestamp-responsive {
        font-size: 0.9rem;
        /* 데스크탑: 기본 */
    }
}

/* 새로고침 버튼 스타일 */
.btn-refresh {
    background-color: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    transition: all 0.2s ease;
}

.btn-refresh:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 이미지 업로드 래퍼 - 반응형 크기 */
.upload-wrapper {
    width: 100%;
    max-width: 220px;
    transition: max-width 0.3s ease;
}

@media (min-width: 768px) {
    .upload-wrapper {
        max-width: 320px;
    }
}

.upload-wrapper.expanded {
    max-width: 500px !important;
}

/* ─── 메인페이지 통통 튀는 애니메이션 ─── */
.hover-bounce {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.hover-bounce:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    z-index: 10;
}

/* 검색 시작 버튼 호버 액션 */
.search-btn-bounce {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s;
}

.search-btn-bounce:hover {
    transform: translateY(-4px) scale(1.03);
    background-color: #212529 !important; /* 조금 더 밝은/다른 톤으로 가능 */
}
