/* ========================================
   YSMT System Demo CSS
   데모 앱 전체 스타일 정의
   ======================================== */

:root {
    /* Colors */
    --demo-primary: #212529;
    --demo-secondary: #f8f9fa;
    --demo-border: rgba(255, 255, 255, 0.1);
    --demo-text-light: rgba(255, 255, 255, 0.8);
    --demo-text-muted: rgba(255, 255, 255, 0.7);
    
    /* Effects */
    --card-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    
    /* Spacing */
    --header-padding: 1rem 0;
    --card-border-radius: 12px;
}

/* ========================================
   Base Styles
   ======================================== */

body {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    background-color: var(--demo-secondary);
    line-height: 1.6;
}

/* ========================================
   Header Styles
   ======================================== */

.demo-header {
    background-color: var(--demo-primary);
    color: white;
    padding: var(--header-padding);
}

.demo-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--demo-border);
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* ========================================
   Navigation Styles
   ======================================== */

.demo-navbar {
    background-color: var(--demo-primary);
    border-bottom: 1px solid var(--demo-border);
}

.demo-navbar .nav-link {
    color: var(--demo-text-light) !important;
    transition: var(--transition);
    padding: 0.75rem 1rem;
    position: relative;
}

.demo-navbar .nav-link:hover {
    color: white !important;
}

.demo-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: white;
    transition: var(--transition);
    transform: translateX(-50%);
}

.demo-navbar .nav-link:hover::after {
    width: 80%;
}

.demo-navbar .navbar-toggler {
    border-color: rgba(33, 37, 41, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    border-width: 2px;
}

.demo-navbar .navbar-toggler:focus {
    box-shadow: none;
    border-color: rgba(33, 37, 41, 0.3);
    border-width: 2px;
}

.demo-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========================================
   Content Styles
   ======================================== */

.main-content {
    margin-bottom: 80px;
    min-height: calc(100vh - 200px);
}

/* ========================================
   Card Styles
   ======================================== */

.card {
    transition: var(--transition);
    border: none;
    border-radius: var(--card-border-radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
}

/* 드롭다운이 있는 카드는 overflow visible */
.card .dropdown {
    overflow: visible;
}

.card .dropdown-menu {
    overflow: visible;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: translateX(-100%);
    transition: var(--transition);
}

.card:hover::before {
    transform: translateX(100%);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.card:hover .card-icon {
    transform: scale(1.1);
}

.card-title {
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
}

.card-description {
    color: var(--demo-text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
}

.status-badge {
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #212529 !important;
    transition: var(--transition);
}

.card:hover .status-badge {
    background-color: rgba(255, 255, 255, 1) !important;
    transform: scale(1.05);
}

/* ========================================
   Info Alert Styles
   ======================================== */

.info-alert {
    border: none;
    border-radius: var(--card-border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Footer Styles
   ======================================== */

.demo-footer {
    background-color: var(--demo-primary);
    color: white;
    text-align: center;
    padding: 1rem 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}

/* ========================================
   Loading Animation
   ======================================== */

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

.feature-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .demo-header {
        padding: 0.5rem 0;
    }
    
    .demo-badge {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        border-bottom: 1px solid var(--demo-border);
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    /* 모바일 네비게이션 드롭다운 스타일 추가 */
    .demo-navbar .navbar-collapse {
        background: rgba(33, 37, 41, 0.98);
        border-radius: 8px;
        margin-top: 10px;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
    
    .main-content {
        margin-bottom: 60px;
    }
}

/* (미사용 확장용 스타일 제거됨) */
