/* MakeYourDreams Hair Academy - 현대카드 스타일 */

:root {
    /* 메인 컬러: 현대카드 스타일 */
    --primary-color: #2d2d2d;
    --primary-light: #3d3d3d;
    --primary-dark: #1d1d1d;
    --accent-color: #ff0000;
    --accent-blue: #5b9cff;
    --accent-orange: #ff6b35;
    --secondary-color: #666666;
    --error: #ff0000;

    /* 배경 */
    --background: #2d2d2d;
    --surface: #e8e4d9;
    --surface-light: #f5f3ed;
    --surface-dark: #3d3d3d;

    /* 텍스트 */
    --on-primary: #ffffff;
    --on-secondary: #ffffff;
    --on-background: #000000;
    --on-surface: #000000;
    --text-secondary: #666666;
    --text-inverse: #ffffff;

    /* 보더 */
    --border-light: #e0e0e0;
    --border-dark: #000000;

    /* 여백 시스템 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #1d1d1d;
    color: #ffffff;
    font-weight: 400;
    letter-spacing: -0.02em;
}

* {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
}

main {
    flex: 1;
}

/* 현대카드 스타일 그림자 - 최소화 */
.elevation-1 {
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.elevation-2 {
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.elevation-3 {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.elevation-4 {
    box-shadow: 0 2px 4px -1px rgba(0,0,0,.2), 0 4px 5px 0 rgba(0,0,0,.14), 0 1px 10px 0 rgba(0,0,0,.12);
}

.elevation-8 {
    box-shadow: 0 5px 5px -3px rgba(0,0,0,.2), 0 8px 10px 1px rgba(0,0,0,.14), 0 3px 14px 2px rgba(0,0,0,.12);
}

/* Navbar */
.navbar {
    background: #252525 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 500;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand .material-icons {
    line-height: 1;
}

.nav-link {
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-link .material-icons {
    line-height: 1;
}

/* Cards - 현대카드 스타일 */
.card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: #e8e4d9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 카드 변형 스타일들 */
.card-beige {
    background: #e8e4d9;
}

.card-cream {
    background: #f5f3ed;
}

.card-dark {
    background: #3d3d3d;
    color: #ffffff;
}

.card-blue {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #ffffff;
}

.card-purple {
    background: linear-gradient(135deg, #5b21b6 0%, #8b5cf6 100%);
    color: #ffffff;
}

.card-gradient-red {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: #ffffff;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
    color: white;
}

.card-header.bg-light {
    background: #f8f9fa !important;
    color: #212529 !important;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: #fafafa;
    border-top: 1px solid #e0e0e0;
    padding: 1rem 1.5rem;
}

/* Buttons - 현대카드 스타일 */
.btn {
    border-radius: 24px;
    text-transform: none;
    font-weight: 600;
    letter-spacing: -0.02em;
    padding: 12px 24px;
    border: none;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn .material-icons {
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--on-primary);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    box-shadow: none;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--on-primary);
}

/* Course Category Badge */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.25px;
}

.category-basic {
    background-color: #e3f2fd;
    color: #1976d2;
}

.category-trendy {
    background-color: #fce4ec;
    color: #c2185b;
}

.category-technique {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.category-mens {
    background-color: #e8f5e9;
    color: #388e3c;
}

/* Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.course-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.course-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 20px;
    min-height: 100px;
    display: flex;
    align-items: center;
}

.course-title {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

.course-body {
    padding: 20px;
}

.course-description {
    color: #616161;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-info li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.875rem;
}

.course-info li:last-child {
    border-bottom: none;
}

.course-info .material-icons {
    font-size: 18px;
    color: var(--primary-color);
}

.course-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-section .lead {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 32px 16px;
    border-radius: 8px;
    background: white;
}

.feature-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.feature-description {
    color: #757575;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Form Controls */
.form-control, .form-select {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px 16px;
    font-size: 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(98, 0, 234, 0.1);
    outline: none;
}

/* Placeholder 스타일 - 밝게 */
.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: #999999 !important;
    opacity: 1 !important;
}

.form-control::-webkit-input-placeholder,
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    color: #999999 !important;
    opacity: 1 !important;
}

.form-control::-moz-placeholder,
input::-moz-placeholder,
textarea::-moz-placeholder {
    color: #999999 !important;
    opacity: 1 !important;
}

.form-control:-ms-input-placeholder,
input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    color: #999999 !important;
    opacity: 1 !important;
}

.form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: #616161;
    margin-bottom: 8px;
    letter-spacing: 0.25px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-label .material-icons {
    line-height: 1;
    font-size: 18px;
}

/* Alerts */
.alert {
    border-radius: 4px;
    border: none;
    padding: 16px;
    font-size: 0.875rem;
}

.alert-info {
    background-color: #e3f2fd;
    color: #1976d2;
}

.alert-success {
    background-color: #e8f5e9;
    color: #388e3c;
}

.alert-danger {
    background-color: #ffebee;
    color: #c62828;
}

.alert-warning {
    background-color: #fff3e0;
    color: #f57c00;
}

/* Footer */
footer {
    background-color: #fafafa;
    padding: 24px 0;
    margin-top: auto;
}

footer p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

footer p .material-icons {
    line-height: 1;
    margin-top: 2px;
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.25px;
}

/* Table */
.table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background-color: #f5f5f5;
}

.table-hover tbody tr:hover {
    background-color: #fafafa;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    /* 게시판 모바일 최적화 */
    /* 검색 폼 */
    .board-search-form {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .board-search-form input {
        width: 100% !important;
    }

    .board-search-form button {
        width: 100% !important;
    }

    /* 테이블 반응형 */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table {
        font-size: 0.875rem;
    }

    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
        white-space: nowrap;
    }

    .table th:first-child,
    .table td:first-child {
        padding-left: 0.5rem;
    }

    .table th:last-child,
    .table td:last-child {
        padding-right: 0.5rem;
    }

    /* 게시판 목록 - 숨길 컬럼 */
    .mobile-hide {
        display: none !important;
    }

    /* 페이지네이션 */
    .pagination {
        font-size: 0.875rem;
        flex-wrap: wrap;
    }

    .page-link {
        padding: 0.375rem 0.75rem;
    }

    /* 버튼 그룹 */
    .mobile-button-group {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .mobile-button-group .btn {
        width: 100% !important;
    }

    /* 카드 패딩 조정 */
    .card-body {
        padding: 1rem;
    }

    /* 게시글 상세 헤더 */
    .post-meta {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }

    /* 댓글 폼 */
    textarea.form-control {
        font-size: 1rem;
    }

    /* 모바일 네비게이션 오버레이 */
    #navbarNav.collapse:not(.show) {
        display: block !important;
        right: -100% !important;
    }

    #navbarNav.collapse.show {
        display: block !important;
        right: 0 !important;
    }

    #navbarNav .navbar-nav {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    #navbarNav .nav-item {
        width: 100%;
        border-bottom: 1px solid #333333;
    }

    #navbarNav .nav-link {
        padding: 1.5rem 0 !important;
        font-size: 1.25rem !important;
        display: block;
        width: 100%;
    }

    /* 오버레이 배경 */
    #navbarNav.collapse.show::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
}

/* PC에서는 기본 네비게이션 스타일 */
@media (min-width: 992px) {
    #navbarNav {
        position: static !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    #navbarNav .navbar-nav {
        flex-direction: row !important;
        gap: 2rem !important;
        align-items: center !important;
        margin-left: auto !important;
        margin-top: 0 !important;
    }

    #navbarNav .nav-item {
        width: auto !important;
        border: none !important;
    }

    #navbarNav .nav-link {
        padding: 0.5rem 0 !important;
        font-size: 0.875rem !important;
    }
}

/* Loading Spinner */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

/* Utility Classes */
.text-muted {
    color: #757575 !important;
}

/* Headings with Icons */
h1, h2, h3, h4, h5, h6 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* text-center 안에 있는 헤딩은 flex 적용 안 함 (수직 배치용) */
.text-center h1, .text-center h2, .text-center h3,
.text-center h4, .text-center h5, .text-center h6 {
    display: block;
}

h1 .material-icons {
    line-height: 1;
    font-size: 2rem;
}

h2 .material-icons {
    line-height: 1;
    font-size: 1.75rem;
}

h3 .material-icons {
    line-height: 1;
    font-size: 1.5rem;
}

h4 .material-icons {
    line-height: 1;
    font-size: 1.25rem;
}

h5 .material-icons {
    line-height: 1;
    font-size: 1.125rem;
}

h6 .material-icons {
    line-height: 1;
    font-size: 1rem;
}
