/* ============================
   프리미엄 인증 시스템 스타일
   ============================ */

/* 인증 컨테이너 */
.auth-container {
    position: relative;
    perspective: 1000px;
}

.auth-modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.1),
        0 10px 25px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.auth-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.5) 25%, 
        rgba(147, 51, 234, 0.5) 75%, 
        transparent 100%);
}

.auth-modal-content::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(59, 130, 246, 0.1), 
        rgba(147, 51, 234, 0.1), 
        rgba(236, 72, 153, 0.1));
    border-radius: 24px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-modal-content:hover::after {
    opacity: 1;
}

/* 인증 헤더 */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.auth-logo img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(1deg); }
}

/* 프리미엄 탭 */
.auth-tabs {
    display: flex;
    background: rgba(243, 244, 246, 0.5);
    border-radius: 16px;
    padding: 0.5rem;
    margin-bottom: 2rem;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.auth-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.auth-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-tab:hover::before {
    opacity: 1;
}

.auth-tab.active {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    box-shadow: 
        0 8px 25px rgba(59, 130, 246, 0.3),
        0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.auth-tab.active::before {
    opacity: 0;
}

/* 폼 섹션 */
.auth-form-section {
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 웰컴 메시지 */
.auth-welcome {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-welcome h1 {
    font-size: 1.875rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1f2937, #4b5563);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.auth-welcome p {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
}

/* 폼 스타일 */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.auth-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    outline: none;
    position: relative;
}

.auth-input:focus {
    border-color: #3b82f6;
    box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.1),
        0 8px 25px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.95);
}

.auth-input::placeholder {
    color: #9ca3af;
    font-weight: 500;
}

/* 오류 메시지 */
.auth-error {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 1rem;
    color: #dc2626;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    animation: errorShake 0.5s ease;
}

@keyframes errorShake {
    0%, 20%, 40%, 60%, 80% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
}

/* 제출 버튼 */
.auth-submit-btn {
    position: relative;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    border-radius: 16px;
    padding: 1.25rem 2rem;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 
        0 12px 24px rgba(59, 130, 246, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 16px 32px rgba(59, 130, 246, 0.4),
        0 6px 12px rgba(0, 0, 0, 0.15);
}

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

.auth-submit-btn.signup {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 
        0 12px 24px rgba(16, 185, 129, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.1);
}

.auth-submit-btn.signup:hover {
    box-shadow: 
        0 16px 32px rgba(16, 185, 129, 0.4),
        0 6px 12px rgba(0, 0, 0, 0.15);
}

.auth-submit-btn .btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.auth-submit-btn .btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-submit-btn:hover .btn-glow {
    opacity: 1;
}

/* 구분선 */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #e5e7eb 25%, 
        #d1d5db 50%, 
        #e5e7eb 75%, 
        transparent 100%);
    transform: translateY(-50%);
}

.auth-divider span {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    padding: 0 1.5rem;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.875rem;
    position: relative;
}

/* 소셜 로그인 버튼 */
.auth-social-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: #374151;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.auth-social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    transition: left 0.5s ease;
}

.auth-social-btn:hover::before {
    left: 100%;
}

.auth-social-btn:hover {
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.1),
        0 4px 10px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.95);
}

.auth-social-btn.google:hover {
    border-color: #4285f4;
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.2);
}

.auth-social-btn.github:hover {
    border-color: #333;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* 반응형 디자인 */
@media (max-width: 640px) {
    .auth-modal-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
        border-radius: 20px;
    }
    
    .auth-welcome h1 {
        font-size: 1.5rem;
    }
    
    .auth-social-buttons {
        gap: 0.75rem;
    }
    
    .auth-social-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.8125rem;
    }
}

/* ============================
   프리미엄 알림 시스템
   ============================ */

/* 성공/오류 알림 토스트 */
.premium-toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    max-width: 400px;
    z-index: 999999;
    animation: toastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-toast.hide {
    animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%) translateY(-20px);
        opacity: 0;
    }
}

.toast-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.toast-content.success {
    border-left: 4px solid #10b981;
}

.toast-content.success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(16, 185, 129, 0.5) 25%, 
        rgba(5, 150, 105, 0.5) 75%, 
        transparent 100%);
}

.toast-content.error {
    border-left: 4px solid #ef4444;
}

.toast-content.error::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(239, 68, 68, 0.5) 25%, 
        rgba(220, 38, 38, 0.5) 75%, 
        transparent 100%);
}

.toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.toast-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
}

.toast-title.success {
    color: #059669;
}

.toast-title.error {
    color: #dc2626;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.toast-close:hover {
    background: rgba(107, 114, 128, 0.1);
    color: #374151;
}

.toast-message {
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 500;
}

/* 모바일 반응형 */
@media (max-width: 640px) {
    .premium-toast {
        position: fixed;
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
        z-index: 999999;
    
    .toast-content {
        padding: 1.25rem;
    }
}

/* ============================
   프리미엄 확인 모달
   ============================ */

.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.confirm-modal-overlay.show {
    opacity: 1;
}

.confirm-modal-overlay.hide {
    opacity: 0;
}

.confirm-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
}

.confirm-modal-container {
    position: relative;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.confirm-modal-overlay.show .confirm-modal-container {
    transform: scale(1) translateY(0);
}

.confirm-modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 10px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    position: relative;
}

.confirm-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.5) 25%, 
        rgba(147, 51, 234, 0.5) 75%, 
        transparent 100%);
}

.confirm-modal-header {
    padding: 2rem 2rem 0;
}

.confirm-modal-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.confirm-modal-title h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.confirm-modal-body {
    padding: 0 2rem 2rem;
}

.confirm-modal-body p {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.confirm-modal-actions {
    display: flex;
    gap: 1rem;
    padding: 0 2rem 2rem;
}

.confirm-cancel-btn,
.confirm-ok-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.confirm-cancel-btn {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.confirm-cancel-btn:hover {
    background: rgba(107, 114, 128, 0.15);
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.confirm-ok-btn {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.confirm-ok-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* 모바일 반응형 */
@media (max-width: 640px) {
    .confirm-modal-container {
        width: 95%;
        margin: 1rem;
    }
    
    .confirm-modal-header,
    .confirm-modal-body,
    .confirm-modal-actions {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .confirm-modal-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ============================
   댓글 시스템 페이지네이션
   ============================ */

.comments-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.comments-header h4 {
    color: #1f2937;
    font-size: 1rem;
}

.comments-list {
    max-height: none;
    overflow: visible;
}

.comments-load-more {
    border-top: 1px solid #f3f4f6;
    padding-top: 1.5rem;
}

.load-more-comments-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.load-more-comments-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.load-more-comments-btn:active {
    transform: translateY(0);
}

.load-more-comments-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    transition: left 0.5s ease;
}

.load-more-comments-btn:hover::before {
    left: 100%;
}

/* 댓글 구분선 개선 */
.comment {
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.comment:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 모바일에서 더보기 버튼 스타일 */
@media (max-width: 640px) {
    .load-more-comments-btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }
    
    .comments-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .comments-header span {
        font-size: 0.75rem;
    }
}