/* Re:Ticket 와이어프레임 전용 스타일 */

/* 폰트 설정 */
.font-inter {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 와이어프레임 요소 강조 */
.wireframe-box {
    border: 2px dashed #e5e7eb;
    background-color: #f9fafb;
    position: relative;
}

.wireframe-box::before {
    content: attr(data-label);
    position: absolute;
    top: -8px;
    left: 8px;
    background: white;
    padding: 2px 8px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

/* 모달 애니메이션 */
.modal-enter {
    animation: modalEnter 0.3s ease-out;
}

.modal-exit {
    animation: modalExit 0.3s ease-in;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modalExit {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* 차트 컨테이너 */
.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
}

/* 지갑 연결 상태 표시 */
.wallet-connected {
    background: linear-gradient(135deg, #10b981, #059669);
}

.wallet-connecting {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* 가격 변동 애니메이션 */
.price-up {
    color: #10b981;
    animation: priceUpPulse 1s ease-in-out;
}

.price-down {
    color: #ef4444;
    animation: priceDownPulse 1s ease-in-out;
}

@keyframes priceUpPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes priceDownPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.95); }
}

/* 거래 내역 테이블 */
.transaction-table {
    font-size: 14px;
}

.transaction-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #374151;
}

.transaction-table td {
    border-bottom: 1px solid #e5e7eb;
}

/* 반응형 네비게이션 */
.mobile-nav {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-nav.open {
    transform: translateX(0);
}

/* 로딩 상태 */
.loading-spinner {
    border: 2px solid #f3f4f6;
    border-top: 2px solid #8b5cf6;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 토스트 알림 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.toast.show {
    transform: translateX(0);
}

/* 드래그 앤 드롭 영역 */
.drop-zone {
    border: 2px dashed #d1d5db;
    transition: all 0.3s ease;
}

.drop-zone.dragover {
    border-color: #8b5cf6;
    background-color: #f3f4f6;
}

/* 버튼 호버 효과 강화 */
.btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.2);
}

/* 카드 호버 효과 */
.ticket-card {
    transition: all 0.3s ease;
}

.ticket-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 스크롤바 커스터마이징 */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 모바일 우선 반응형 디자인 */

/* 기본 모바일 스타일 */
.container {
    padding: 0 16px;
}

/* 모바일 네비게이션 */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 40;
}

.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: white;
    transition: right 0.3s ease-in-out;
    z-index: 50;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav-menu.open {
    right: 0;
}

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

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

.mobile-nav-links a {
    display: block;
    padding: 12px 0;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-links a:hover {
    color: #8b5cf6;
}

/* 모바일 전용 요소 */
.mobile-only {
    display: block;
}

.desktop-only {
    display: none;
}

/* 터치 친화적 버튼 크기 */
.touch-target {
    min-height: 44px;
    min-width: 44px;
}

/* 모바일 카드 스타일 */
.mobile-card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
}

/* 모바일 텍스트 크기 조정 */
@media (max-width: 640px) {
    .text-6xl {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .text-4xl {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .text-3xl {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .text-2xl {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    
    .text-xl {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    /* 패딩 조정 */
    .py-16 {
        padding: 48px 0;
    }
    
    .py-12 {
        padding: 36px 0;
    }
    
    .p-6 {
        padding: 16px;
    }
    
    .px-6 {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .py-6 {
        padding-top: 16px;
        padding-bottom: 16px;
    }
    
    /* 그리드 조정 */
    .grid {
        gap: 16px;
    }
    
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4,
    .md\\:grid-cols-2,
    .md\\:grid-cols-3,
    .md\\:grid-cols-4,
    .lg\\:grid-cols-3,
    .lg\\:grid-cols-4,
    .xl\\:grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    /* 플렉스 조정 */
    .flex-col-mobile {
        flex-direction: column;
    }
    
    .space-x-4 > * + * {
        margin-left: 0;
        margin-top: 16px;
    }
    
    .space-x-6 > * + * {
        margin-left: 0;
        margin-top: 20px;
    }
    
    .space-x-8 > * + * {
        margin-left: 0;
        margin-top: 24px;
    }
    
    /* 히어로 섹션 모바일 조정 */
    .hero-mobile {
        text-align: center;
        padding: 40px 0;
    }
    
    .hero-mobile h2 {
        font-size: 2.5rem;
        line-height: 1.1;
        margin-bottom: 16px;
    }
    
    .hero-mobile p {
        font-size: 1.125rem;
        line-height: 1.5;
        margin-bottom: 24px;
    }
    
    /* 버튼 스택 */
    .button-stack {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .button-stack button {
        width: 100%;
        justify-content: center;
    }
    
    /* 테이블 스크롤 */
    .table-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table-scroll table {
        min-width: 600px;
    }
    
    /* 모달 모바일 조정 */
    .modal-mobile {
        margin: 16px;
        max-height: calc(100vh - 32px);
        overflow-y: auto;
    }
    
    /* 차트 컨테이너 모바일 */
    .chart-container {
        height: 250px;
    }
    
    /* 통계 카드 모바일 */
    .stats-mobile {
        text-align: center;
        padding: 16px;
    }
    
    .stats-mobile .dashboard-stat-value {
        font-size: 1.5rem;
    }
    
    /* 탭 네비게이션 모바일 */
    .tab-nav-mobile {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .tab-nav-mobile::-webkit-scrollbar {
        display: none;
    }
    
    .tab-nav-mobile .tab-button {
        white-space: nowrap;
        min-width: 120px;
    }
    
    /* 카드 리스트 모바일 */
    .card-list-mobile .ticket-card {
        margin-bottom: 16px;
    }
    
    /* 프로필 섹션 모바일 */
    .profile-mobile {
        text-align: center;
        padding: 24px 0;
    }
    
    .profile-mobile .flex {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .profile-stats-mobile {
        display: flex;
        justify-content: space-around;
        width: 100%;
        margin-top: 16px;
    }
    
    .profile-stats-mobile > div {
        text-align: center;
    }
}

/* 태블릿 (768px 이상) */
@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
    
    .desktop-only {
        display: block;
    }
    
    .mobile-only {
        display: none;
    }
    
    .md\\:flex {
        display: flex;
    }
    
    .md\\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .md\\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .md\\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .md\\:flex-row {
        flex-direction: row;
    }
    
    .md\\:space-x-8 > * + * {
        margin-top: 0;
        margin-left: 2rem;
    }
    
    .md\\:text-left {
        text-align: left;
    }
}

/* 데스크톱 (1024px 이상) */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 32px;
    }
    
    .lg\\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .lg\\:col-span-2 {
        grid-column: span 2 / span 2;
    }
    
    .chart-container {
        height: 400px;
    }
}

/* 대형 데스크톱 (1280px 이상) */
@media (min-width: 1280px) {
    .xl\\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
    .border-gray-200 {
        border-color: #000000;
    }
    
    .text-gray-600 {
        color: #000000;
    }
    
    .bg-gray-50 {
        background-color: #ffffff;
    }
}

/* 다크 모드 지원 준비 */
@media (prefers-color-scheme: dark) {
    /* 다크 모드 스타일은 향후 구현 */
}

/* 모션 감소 설정 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 프린트 스타일 */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* Web3 관련 UI 요소 */
.blockchain-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.gas-fee-indicator {
    background: #fef3c7;
    color: #92400e;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
}

/* 가격 차트 영역 */
.price-chart-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* 거래 버튼 그룹 */
.trade-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.buy-button {
    background: linear-gradient(135deg, #10b981, #059669);
}

.sell-button {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* 마이페이지 대시보드 스타일 */
.dashboard-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.dashboard-stat {
    text-align: center;
    padding: 20px;
}

.dashboard-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #8b5cf6;
}

.dashboard-stat-label {
    color: #6b7280;
    font-size: 14px;
    margin-top: 4px;
}

/* 티켓 소유권 표시 */
.ownership-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 프리미엄 기능 표시 */
.premium-feature {
    position: relative;
    overflow: hidden;
}

.premium-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}