@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;900&display=swap');

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

:root {
    --primary-color: #FECA1E;
    --primary-dark: #F9A205;
    --primary-light: #FFD54F;
    --secondary-color: #FFA726;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --bg-light: #FFFBF0;
    --bg-white: #ffffff;
    --border-color: #FFE082;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(249, 162, 5, 0.15);
    --shadow-xl: 0 20px 40px rgba(249, 162, 5, 0.2);
    --gradient-primary: linear-gradient(135deg, #FECA1E 0%, #F9A205 100%);
    --gradient-primary-reverse: linear-gradient(135deg, #F9A205 0%, #FECA1E 100%);
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', 'Apple SD Gothic Neo', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 헤더 ========== */
header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.logo:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--bg-light);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.user-info {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-left: 1.5rem;
    margin-right: 0;
    cursor: pointer;
    transition: color 0.2s;
}

.user-info:hover {
    color: var(--primary-color);
}

/* ========== 버튼 ========== */
.btn-primary {
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

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

.btn-large {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    border-radius: 6px;
}

.btn-light {
    background: #eee;
    color: #333;
    border: 2px solid #eee;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-light:hover {
    background: #ddd;
    border-color: #ddd;
}

.btn-link {
    background: none;
    border: none;
    color: #999;
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
}
.btn-link:hover {
    color: var(--danger-color);
}

.btn-full {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.btn-full:last-child {
    margin-bottom: 0;
}

/* ========== 메인 배너 ========== */
.main-banner {
    background: url('../img/heroBg.png') no-repeat center center;
    background-size: cover;
    border-radius: 0 0 0 0;
    color: var(--text-dark);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.main-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.main-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--bg-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.banner-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--bg-white);
    opacity: 0.95;
}

/* ========== 광고 배너 ========== */
.ad-banner-section {
    padding: 2rem 0;
}

.ad-banner {
    background: var(--gradient-primary);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.ad-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.ad-banner:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.ad-banner.large {
    padding: 0;
    width: 100%;
    aspect-ratio: 4 / 1; /* 2400:600 비율 유지 */
    min-height: 250px;
    transition: background-image 0.8s ease-in-out, transform 0.3s;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 배너 인디케이터 (도트) */
.banner-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator-dot.active {
    background: white;
    width: 24px;
    border-radius: 5px;
}

.ad-banner.special {
    background: var(--gradient-primary-reverse);
}

.ad-banner h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.ad-banner h4 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    position: relative;
    z-index: 1;
}

.ad-banner p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.ad-banner.special .btn-secondary {
    margin-top: 1rem;
}

.ad-banner.special .btn-primary {
    background: white;
    color: var(--primary-dark);
    margin-top: 1rem;
}
.ad-banner.special .btn-primary:hover {
    background: #f8f9fa;
}

.ad-banner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.ad-banner.medium {
    padding: 2rem;
}

/* ========== 통계 섹션 ========== */
.stats-section {
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s;
}

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

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 1rem;
}

/* ========== 섹션 헤더 ========== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.view-all:hover {
    color: var(--primary-dark);
}

/* ========== 최신 캠페인 섹션 ========== */
.latest-campaigns {
    padding: 3rem 0;
}

/* ========== 카테고리 섹션 ========== */
.category-section {
    padding: 3rem 0;
}

.category-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.category-card {
    background: var(--bg-white);
    padding: 2rem 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-primary);
    color: var(--bg-white);
}

.category-card:hover .category-img-wrapper {
    transform: scale(1.1);
}

.category-card:hover h3,
.category-card:hover p {
    color: var(--bg-white);
}

.category-img-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.category-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.category-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.category-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========== 캠페인 그리드 ========== */
.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.campaign-card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

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

.campaign-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.campaign-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.campaign-card:hover .campaign-image img {
    transform: scale(1.1);
}

.campaign-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.campaign-badge, .type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: var(--shadow);
    white-space: nowrap;
}

.campaign-badge {
    background: var(--primary-color);
    color: var(--bg-white);
}

.type-badge {
    color: white;
}

.type-visit {
    background: #3b82f6;
}

.type-delivery {
    background: #f97316;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    color: #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.wishlist-btn:hover {
    transform: scale(1.1);
}

.wishlist-btn.active {
    color: #ff4757; /* 하트 색상 */
}

.campaign-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.campaign-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.campaign-store {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.campaign-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.info-item span:first-child {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.campaign-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.applicant-count {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.apply-btn {
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.apply-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* ========== 페이지 헤더 ========== */
.page-header {
    background: var(--gradient-primary);
    color: var(--bg-white);
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.page-header.small {
    padding: 2.5rem 0;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.page-header-content > div {
    text-align: left;
}

/* ========== 필터 섹션 ========== */
.filter-section {
    background: var(--bg-white);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.filter-left {
    display: flex;
    gap: 1rem;
}

.filter-controls select {
    padding: 0.6rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-controls select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 0.3rem 0.5rem;
}

.search-box input {
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    width: 300px;
}

.search-box input:focus {
    outline: none;
}

.search-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ========== 캠페인 섹션 ========== */
.campaigns-section {
    padding: 3rem 0;
}

.campaigns-info {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.campaigns-info strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* ========== 모달 ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.modal-container {
    position: relative;
    background: var(--bg-white);
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s;
    box-shadow: var(--shadow-xl);
}

.modal-container.small {
    max-width: 450px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal-body p.description {
    margin-bottom: 15px;
    color: #666;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
}

/* 모달 내 캠페인 상세 */
.campaign-detail .campaign-badge,
.campaign-detail .type-badge {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 20px;
    margin-bottom: 1rem;
    margin-right: 0.5rem;
    box-sizing: border-box;
}

.campaign-detail h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-section p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.detail-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* ========== 폼 스타일 ========== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(254, 202, 30, 0.2);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-checkbox label {
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

.form-checkbox label a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-checkbox label a:hover {
    text-decoration: underline;
}

/* ========== 등록 페이지 ========== */
.create-section {
    padding: 3rem 0;
}

.create-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.info-box {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE9B3 100%);
    border-left: 4px solid var(--primary-dark);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    grid-column: 1 / -1;
}

.info-box h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.info-box li::before {
    content: '⭐';
    position: absolute;
    left: 0;
    font-weight: bold;
}

.form-container {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-container h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    color: var(--text-dark);
}

.form-container h3:first-child {
    margin-top: 0;
}

.form-container hr {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.form-actions.center {
    justify-content: center;
}

.form-actions.center .btn-primary {
    min-width: 200px;
    padding: 0.8rem 3rem;
    justify-content: center;
}


/* 미리보기 */
.preview-container {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.preview-container h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.campaign-card.preview {
    cursor: default;
}

.campaign-card.preview:hover {
    transform: none;
    box-shadow: var(--shadow);
}

.campaign-card.preview:hover .campaign-image img {
    transform: none;
}

/* ========== 마이페이지 ========== */
.mypage-section {
    padding: 3rem 0;
    min-height: 60vh;
}

.mypage-container {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.mypage-container h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

#wishlist-container {
    margin-top: 30px;
}

#applications-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.application-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.application-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.application-header h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.application-status {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending {
    background: var(--warning-color);
    color: var(--bg-white);
}

.status-approved {
    background: var(--success-color);
    color: var(--bg-white);
}

.status-rejected {
    background: var(--danger-color);
    color: var(--bg-white);
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* ========== 푸터 ========== */
footer {
    background: var(--text-dark);
    color: var(--bg-white);
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 3rem 0;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.footer-section p {
    color: var(--text-lighter);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--text-lighter);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--bg-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-lighter);
}

/* ========== 애니메이션 ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* ========== 반응형 ========== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .create-container {
        grid-template-columns: 1fr;
    }

    .preview-container {
        position: static;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .banner-content h2 {
        font-size: 2rem;
    }

    .banner-content p {
        font-size: 1.1rem;
    }

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

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .ad-banner-grid {
        grid-template-columns: 1fr;
    }

    .page-header-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .page-header-content > div {
        text-align: center;
    }

    .filter-controls {
        flex-direction: column;
    }

    .filter-left {
        width: 100%;
        flex-direction: column;
    }

    .filter-left select {
        width: 100%;
    }

    .search-box {
        width: 100%;
    }

    .search-box input {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    nav {
        gap: 1rem;
    }

    .modal-container {
        width: 95%;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    /* 인증 섹션 모바일 최적화 */
    .auth-section {
        padding: 1.5rem 0;
    }

    .auth-container {
        padding: 1rem; /* 패딩을 더 줄여서 공간 확보 */
        border-radius: 12px;
        width: 100%;
        max-width: 100%;
    }

    .auth-header h2 {
        font-size: 1.5rem;
    }

    .email-input-group {
        gap: 5px; /* 간격 축소 */
    }

    .email-input-group input,
    .email-input-group select {
        flex: 1 1 100px; /* 최소 너비를 더 낮춤 */
        min-width: 0; /* 내부 텍스트에 의해 늘어나는 것 방지 */
        padding: 0.75rem 0.5rem; /* 좌우 패딩 축소 */
    }

    .role-selector {
        flex-direction: row;
        gap: 8px;
    }

    .role-option {
        flex: 1;
        width: auto;
        min-width: 0; /* 짤림 방지 */
    }

    .role-card {
        padding: 12px 5px;
        min-height: 80px;
    }

    .role-icon {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .role-title {
        font-size: 13px;
    }
}


/*
========================================
  Page Specific & Common Component Styles
========================================
*/

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* ========== 인증 섹션 (로그인/회원가입) ========== */
.auth-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.auth-container {
    max-width: 450px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-light);
}

.email-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.email-input-group input,
.email-input-group select {
    flex: 1;
    min-width: 0; /* flex box 안에서 input 너비 문제 해결 */
}

.email-at {
    color: var(--text-light);
    font-weight: bold;
}

/* Auth Pages (login, signup, reset-password, profile-edit) */
.auth-container hr {
    margin: 25px 0;
    border: 0;
    border-top: 1px solid #eee;
}
.profile-footer {
    margin-top: 25px;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Social Login (Login Page) */
.social-login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: var(--text-lighter);
}

.social-login-divider::before,
.social-login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.social-login-divider span {
    padding: 0 10px;
    font-size: 0.85rem;
}

.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-social {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-social:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

.btn-google span {
    color: #4285F4;
    font-weight: 900;
}

.btn-kakao {
    background: #FEE500;
    border-color: #FEE500;
    color: #3C1E1E;
}

.btn-kakao:hover {
    background: #FADA00;
}

.auth-container .btn-large {
    width: 100%;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.auth-links a {
    color: var(--text-dark);
    text-decoration: none;
}

.auth-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.auth-links strong {
    color: var(--primary-dark);
}

/* 로그인 상태 유지 체크박스 스타일 */
.remember-me-group {
    margin: -0.5rem 0 1.5rem 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.checkbox-container:hover {
    color: var(--text-dark);
}

/* Signup Page Specific */
#signup-form .form-group:first-of-type {
    text-align: center;
}

.role-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
}
.role-option {
    width: 160px;
    position: relative;
}
.role-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 2;
}
.role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}
.role-icon {
    font-size: 32px;
    margin-bottom: 8px;
}
.role-title {
    font-weight: bold;
    font-size: 16px;
    color: #555;
}
.role-option input:checked + .role-card {
    border-color: var(--primary-dark);
    background-color: var(--bg-light);
}
.role-option input:checked + .role-card .role-title {
    color: var(--primary-dark);
}
.login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}
.login-link a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: bold;
}
.login-link a:hover {
    text-decoration: underline;
}

.email-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.email-input-group .email-at {
    color: var(--text-light);
}

.email-input-group input,
.email-input-group select {
    width: auto; /* Override .form-group's width: 100% */
    flex-grow: 1;
}

/* Contact Page */
.contact-container .form-actions {
    margin-top: 30px;
}
.contact-container .form-actions .btn-primary {
    min-width: 200px;
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .header-content { position: relative; }
    .header-content nav {
        display: none; position: absolute; top: 100%; left: 0; width: 100%;
        background-color: white; flex-direction: column;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1); z-index: 1000;
    }
    .header-content nav.active { display: flex; }
    .header-content nav .nav-link {
        display: block; padding: 15px; text-align: center; border-bottom: 1px solid #eee; margin-left: 0;
    }
}

/* ========== �������� �Խ��� ��Ÿ�� ========== */
.notice-section {
    padding: 3rem 0;
}

.notice-table-wrapper {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.notice-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.notice-table th {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-weight: 700;
    padding: 1.2rem 1rem;
    border-bottom: 2px solid var(--border-color);
}

.notice-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.col-num { width: 80px; }
.col-date { width: 150px; color: var(--text-light) !important; font-size: 0.9rem; }
.col-title { text-align: left; }

.title-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.notice-row:hover {
    background-color: #fffdf5;
}

.notice-row.active {
    background-color: #fff9e6;
}

.notice-row.active .title-text {
    font-weight: 700;
    color: var(--primary-dark);
}

.notice-badge {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.notice-content-row {
    display: none;
    background-color: #fafafa;
}

.notice-content-row.active {
    display: table-row;
}

.notice-content-inner {
    padding: 2rem 3rem;
    text-align: left;
    line-height: 1.8;
    color: #444;
    white-space: pre-wrap;
    animation: fadeIn 0.3s ease-out;
}

.no-data {
    padding: 4rem !important;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .col-num { display: none; }
    .col-date { width: 100px; font-size: 0.8rem; }
    .notice-content-inner { padding: 1.5rem; }
}

/* 유저 메뉴 드롭다운 스타일 */
.user-menu-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}

.user-info-trigger {
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    background: #f8f9fa;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-dark);
}

.user-info-trigger:hover {
    background: #e9ecef;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 170px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    padding: 8px 0;
    margin-top: 10px;
    display: none; /* 기본적으로 숨김 */
    z-index: 1000;
}

/* 트리거와 메뉴 사이의 빈 공간을 투명하게 메워주는 가상 요소 */
.user-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
}

/* 트리거에 호버하거나 메뉴 자체에 호버할 때 표시 */
.user-menu-wrapper:hover .user-dropdown-menu {
    display: block;
}

.user-dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none !important;
    font-size: 0.9rem;
    transition: 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.user-dropdown-item:hover {
    background: #f8f9fa;
    color: var(--primary-color) !important;
}

.user-dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 5px 0;
}

.logout-item {
    color: #ff4d4d !important;
}

.logout-item:hover {
    background: #fff5f5;
    color: #ff4d4d !important;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .user-menu-wrapper {
        width: 100%;
        margin-left: 0;
    }
    .user-info-trigger {
        justify-content: center;
        border-radius: 0;
        background: #f8f9fa;
        padding: 15px;
        border-bottom: 1px solid #eee;
    }
    .user-dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        border-bottom: 1px solid #eee;
        display: none; /* 모바일에서도 기본은 숨김 */
        margin-top: 0;
        border-radius: 0;
        padding: 0;
    }
    .user-menu-wrapper.active .user-dropdown-menu {
        display: block; /* 모바일에서 클릭 시 표시 */
    }
    .user-dropdown-item {
        text-align: center;
        padding: 15px;
        border-bottom: 1px solid #f9f9f9;
    }
}

/* 토스트 알림 (Toast Notification) */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    min-width: 320px;
    padding: 18px 25px;
    background: #ffffff;
    color: #1f2937;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    font-size: 0.95rem;
    animation: toast-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), toast-out 0.4s 2.6s forwards;
    pointer-events: auto;
    border: 1px solid rgba(0,0,0,0.05);
}

.toast-success { border-left: 6px solid #10b981; }
.toast-error { border-left: 6px solid #ef4444; }
.toast-info { border-left: 6px solid #3b82f6; }

.toast-icon { font-size: 1.4rem; }

/* 커스텀 확인 모달 (Confirm Modal) */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

.confirm-modal {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    animation: slideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.confirm-modal-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.confirm-modal-message {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 25px;
    line-height: 1.5;
    word-break: keep-all;
}

.confirm-modal-buttons {
    display: flex;
    gap: 12px;
}

.confirm-modal-buttons button {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-confirm-yes {
    background: var(--primary-color);
    color: white;
}

.btn-confirm-yes:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-confirm-no {
    background: #f3f4f6;
    color: #6b7280;
}

.btn-confirm-no:hover {
    background: #e5e7eb;
}

@keyframes toast-in {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

/* 모바일 화면 강제 최적화 (삐져나옴 방지) */
@media (max-width: 768px) {
    .auth-section {
        padding: 20px 0 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        overflow-x: hidden !important;
    }
    .auth-container {
        width: 92% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
        padding: 25px 20px !important;
        box-sizing: border-box !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    }
    .email-input-group {
        display: flex !important;
        width: 100% !important;
        gap: 5px !important;
    }
    .email-input-group input, 
    .email-input-group select {
        min-width: 0 !important;
        flex: 1 !important;
        font-size: 14px !important;
    }
    .role-selector {
        width: 100% !important;
        gap: 10px !important;
    }
    /* 캠페인 카드 모바일 슬림화 */
    .campaigns-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 2열 배열 강제 */
        gap: 12px !important; /* 간격 축소 */
    }

    .campaign-card {
        border-radius: 10px !important;
    }

    .campaign-image {
        height: 140px !important; /* 이미지 높이 축소 */
    }

    .campaign-content {
        padding: 12px !important; /* 패딩 축소 */
    }

    .campaign-content h3 {
        font-size: 0.95rem !important; /* 제목 크기 축소 */
        margin-bottom: 6px !important;
        height: 2.8em; /* 2줄 제한 */
        overflow: hidden;
    }

    .campaign-store {
        font-size: 0.8rem !important;
        margin-bottom: 8px !important;
    }

    .campaign-info-list {
        display: none !important; /* 상세 정보(위치, 기간 등)는 메인 카드에서 숨김 */
    }

    .campaign-footer {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding-top: 10px !important;
    }

    .applicant-count {
        width: 100% !important;
        font-size: 0.75rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        text-align: left !important;
        margin-bottom: 4px !important;
    }

    .apply-btn {
        width: 100% !important;
        padding: 0.6rem !important;
        font-size: 0.85rem !important;
        text-align: center !important;
        border-radius: 8px !important;
    }

    .campaign-badge, .type-badge {
        padding: 0.2rem 0.6rem !important;
        font-size: 0.7rem !important;
    }

    /* 제목 및 레이아웃 모바일 최적화 */
    .section-header {
        margin-bottom: 20px !important;
        flex-direction: column !important; /* 세로 배치 강제 */
        align-items: flex-start !important; /* 왼쪽 정렬 */
        gap: 8px !important;
    }

    .section-header h2 {
        font-size: 1.4rem !important;
        letter-spacing: -0.5px !important;
        margin-bottom: 0 !important;
    }

    .section-header p {
        font-size: 0.9rem !important;
        color: #888 !important;
        text-align: left !important;
    }

    .view-all {
        font-size: 0.85rem !important;
        margin-top: 4px !important;
    }

    .page-header {
        padding: 2.5rem 0 !important;
    }

    .page-header h1 {
        font-size: 1.8rem !important; /* 서브페이지 제목 축소 */
    }

    .main-banner {
        padding: 3rem 0 !important;
    }

    .banner-content h2 {
        font-size: 1.8rem !important; /* 메인 배너 제목 축소 */
        line-height: 1.3 !important;
    }

    .banner-content p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .category-section h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* 실시간 리뷰 슬라이더 모바일 최적화 */
    .review-slider-wrapper {
        padding: 0 !important;
    }

    .review-slider {
        gap: 0 !important;
        padding: 0 !important;
        scroll-snap-type: x mandatory;
    }

    .review-card {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        scroll-snap-align: center;
    }
}

/* 실시간 리뷰 슬라이더 기본 스타일 (PC) */
.review-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 15px 5px;
}

.review-slider::-webkit-scrollbar {
    display: none;
}

.review-card {
    flex: 0 0 calc(33.333% - 17px);
    min-width: 300px;
}

