/*
 * 파일명: main.css
 * 위치: /home/wdfaircokr/public_html/premium/assets/css/
 * 기능: 프리미엄 페이지 공통 스타일
 * 작성일: 2025-12-13
 */

/* ===================================
   Reset & Base
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fafafa;
    color: #1a1a1a;
    line-height: 1.7;
    font-size: 16px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===================================
   Container
   =================================== */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 24px;
}

.container-wide {
    max-width: 960px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* ===================================
   Header
   =================================== */
.header {
    text-align: center;
    margin-bottom: 60px;
}

.header-badge {
    display: inline-block;
    background: #1a1a1a;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.header p {
    color: #666;
    font-size: 16px;
}

/* ===================================
   Cards
   =================================== */
.card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 32px;
}

.card-compact {
    padding: 32px;
}

.card-dark {
    background: #1a1a1a;
    color: #fff;
    border: none;
}

.card-dark p {
    color: #ccc;
}

.card-dark .section-title::before {
    background: #fff;
}

/* ===================================
   Section Title
   =================================== */
.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: "";
    width: 4px;
    height: 20px;
    background: #1a1a1a;
    border-radius: 2px;
}

.section-title-center {
    justify-content: center;
}

/* ===================================
   Divider
   =================================== */
.divider {
    height: 1px;
    background: #e5e5e5;
    margin: 32px 0;
}

/* ===================================
   Price Display
   =================================== */
.price-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.price-value {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.price-value span {
    font-size: 18px;
    font-weight: 400;
    color: #666;
}

.price-note {
    font-size: 14px;
    color: #888;
}

/* ===================================
   Feature List
   =================================== */
.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-icon {
    width: 20px;
    height: 20px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon::after {
    content: "✓";
    color: #fff;
    font-size: 11px;
}

/* ===================================
   Promo List
   =================================== */
.promo-list {
    list-style: none;
}

.promo-list li {
    padding: 16px;
    background: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.promo-list li:last-child {
    margin-bottom: 0;
}

.promo-text {
    font-size: 15px;
}

.promo-discount {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 16px;
}

.promo-note {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

/* ===================================
   Info Box (Requirement Items)
   =================================== */
.info-box {
    padding: 16px 20px;
    background: #f8f8f8;
    border-left: 4px solid #1a1a1a;
    margin-bottom: 16px;
    border-radius: 0 8px 8px 0;
}

.info-box:last-child {
    margin-bottom: 0;
}

.info-box h5,
.info-box h6 {
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box p {
    color: #666;
    margin: 0;
    font-size: 15px;
}

/* ===================================
   Alert Box
   =================================== */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-warning {
    background: #fff8e6;
    border: 1px solid #ffd966;
    color: #8a6d00;
}

.alert-info {
    background: #f0f7ff;
    border: 1px solid #a8d1ff;
    color: #0056b3;
}

.alert strong {
    font-weight: 600;
}

/* ===================================
   Icon Box
   =================================== */
.icon-box {
    width: 56px;
    height: 56px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    margin: 0 auto 12px;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.btn-primary:hover {
    background: #333;
    border-color: #333;
}

.btn-outline {
    background: transparent;
    color: #1a1a1a;
    border-color: #1a1a1a;
}

.btn-outline:hover {
    background: #1a1a1a;
    color: #fff;
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-outline-white:hover {
    background: #fff;
    color: #1a1a1a;
}

.btn-kakao {
    background: #FEE500;
    color: #1a1a1a;
    border-color: #FEE500;
}

.btn-kakao:hover {
    background: #e6cf00;
    border-color: #e6cf00;
}

.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===================================
   Grid Layout
   =================================== */
.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ===================================
   Payment Section
   =================================== */
.payment-card {
    background: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
}

.payment-card-header {
    background: #1a1a1a;
    color: #fff;
    padding: 14px 20px;
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-card-body {
    padding: 24px;
}

.account-info {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.account-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.account-row:last-child {
    border-bottom: none;
}

.account-label {
    color: #888;
    font-size: 14px;
}

.account-value {
    font-weight: 500;
    font-size: 14px;
}

.account-number {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 16px;
    color: #1a1a1a;
}

.copy-btn {
    width: 100%;
    padding: 12px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.copy-btn:hover {
    background: #333;
}

.copy-btn.copied {
    background: #00a32a;
}

/* KakaoPay */
.kakaopay-content {
    text-align: center;
}

.kakaopay-qr {
    width: 140px;
    height: 140px;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kakaopay-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.kakaopay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #FEE500;
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
}

.kakaopay-btn:hover {
    background: #e6cf00;
}

.payment-guide {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-top: 12px;
}

/* ===================================
   Calendar
   =================================== */
.calendar-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.calendar-month {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px;
}

.calendar-header {
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1a1a1a;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day-header {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    padding: 8px 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 6px;
    position: relative;
}

.calendar-day.available {
    background: #f0fff0;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #c8e6c9;
}

.calendar-day.available:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
    transform: scale(1.05);
}

.calendar-day.reserved {
    background: #fff0f0;
    color: #999;
    border: 1px solid #ffcdd2;
}

.calendar-day.empty {
    background: transparent;
    color: #ccc;
}

.calendar-day.today {
    font-weight: 700;
    box-shadow: inset 0 0 0 2px #1a1a1a;
}

.calendar-day .week-indicator {
    font-size: 9px;
    color: #888;
    position: absolute;
    top: 2px;
    left: 4px;
    font-weight: 600;
}

.calendar-day.available:hover .week-indicator {
    color: #fff;
}

/* 클릭 가능한 날짜 (a 태그) */
a.calendar-day {
    text-decoration: none;
    color: inherit;
}

a.calendar-clickable {
    cursor: pointer;
}

/* Legend */
.legend {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.legend-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

/* ===================================
   Text Utilities
   =================================== */
.text-center {
    text-align: center;
}

.text-muted {
    color: #888;
}

.text-small {
    font-size: 13px;
}

.text-highlight {
    color: #1a1a1a;
    font-weight: 600;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

/* ===================================
   Footer
   =================================== */
.footer {
    text-align: center;
    padding: 40px 0;
    color: #888;
    font-size: 13px;
}

.footer a {
    color: #666;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 768px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .container,
    .container-wide {
        padding: 40px 16px;
    }

    .header h1 {
        font-size: 26px;
    }

    .price-value {
        font-size: 36px;
    }

    .card {
        padding: 24px;
    }

    .card-compact {
        padding: 20px;
    }

    .promo-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn {
        text-align: center;
        width: 100%;
    }

    .section-title {
        font-size: 16px;
    }
}