/**
 * VeryMore - 미팅룸 예약 스타일 (v4.0 - creators.php와 일관된 디자인)
 */

/* ========================================
   CSS 변수
   ======================================== */
:root {
    --primary: #E91E8C;
    --primary-dark: #C71A75;
    --primary-light: #FF4DA6;
    --primary-glow: rgba(233, 30, 140, 0.3);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

/* ========================================
   히어로 섹션 (creators.css와 동일)
   ======================================== */
.magazine-hero {
    position: relative;
    min-height: 75vh;
    /* Reverted to original height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    /* Nanobanana Theme Variant: Warm & Energetic (Orange/Peach/Yellow) */
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 50%, #fff9c4 100%);
    overflow: hidden;
}

/* 배경 패턴 - Nanobanana Style: Soft Geometric Curves (Distinct from others) */
.magazine-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(255, 152, 0, 0.1) 0%, transparent 70%);
    transform: rotate(-15deg);
    filter: blur(40px);
    pointer-events: none;
}

.magazine-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 70%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255, 87, 34, 0.08) 0%, transparent 70%);
    transform: rotate(15deg);
    filter: blur(40px);
    pointer-events: none;
}

/* 그리드 패턴 (removed as per instruction, replaced by new ::before/::after) */
/* The original grid pattern was removed as the new ::before and ::after elements provide a different background effect. */

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.8;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 64px;
}

.hero-label {
    display: inline-block;
    padding: 8px 20px;
    /* Original styles */
    /* background: rgba(255, 255, 255, 0.1); */
    /* backdrop-filter: blur(10px); */
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    /* Original color */
    /* color: var(--white); */
    margin-bottom: 32px;
    animation: fadeInDown 0.8s ease-out;
    /* Unified Label Style */
    color: var(--primary);
    /* Pink text to match Creators */
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(233, 30, 140, 0.2);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 900;
    line-height: 1.1;
    color: var(--gray-900);
    /* Dark text */
    margin: 0 0 32px 0;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--primary-glow);
    filter: blur(10px);
}

.hero-desc {
    font-size: 20px;
    color: var(--gray-600);
    /* Darker muted text */
    line-height: 1.7;
    margin: 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   메인 섹션
   ======================================== */
.meeting-section {
    padding: 80px 0;
    background: var(--gray-50);
    min-height: auto;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   미팅룸 소개 (쇼케이스)
   ======================================== */
.room-showcase {
    background: var(--white);
    padding: 48px;
    margin-bottom: 48px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 0;
}

.showcase-header {
    text-align: center;
    margin-bottom: 40px;
}

.showcase-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.showcase-header p {
    font-size: 16px;
    color: var(--gray-600);
}

.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.showcase-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gallery-main {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--gray-100);
    border-radius: 0;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-thumbs {
    display: flex;
    gap: 12px;
}

.gallery-thumbs .thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
    border: 3px solid transparent;
}

.gallery-thumbs .thumb:hover,
.gallery-thumbs .thumb.active {
    opacity: 1;
    border-color: var(--primary);
}

.showcase-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-block {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--gray-50);
    border-left: 4px solid var(--gray-300);
    transition: all 0.3s;
}

.info-block:hover {
    background: var(--gray-100);
}

.info-block.highlight {
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.08), rgba(45, 42, 94, 0.08));
    border-left-color: var(--primary);
}

.info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--primary);
    flex-shrink: 0;
    border-radius: 0;
}

.info-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.info-text p {
    font-size: 15px;
    color: var(--gray-700);
    margin-bottom: 2px;
}

.info-text .text-muted {
    font-size: 13px;
    color: var(--gray-500);
}

/* ========================================
   예약 섹션
   ======================================== */
.booking-wrapper {
    background: var(--white);
    padding: 48px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 48px;
}

.booking-header {
    text-align: center;
    margin-bottom: 40px;
}

.booking-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.booking-header p {
    font-size: 15px;
    color: var(--gray-600);
}

.meeting-content {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 40px;
}

/* ========================================
   달력
   ======================================== */
.calendar-section {
    background: var(--gray-50);
    padding: 28px;
    border-radius: 0;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.calendar-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
}

.calendar-nav {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    cursor: pointer;
    color: var(--gray-700);
    transition: all 0.2s;
    border-radius: 0;
}

.calendar-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 8px;
}

.calendar-weekdays span {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    padding: 12px;
}

.calendar-weekdays span:first-child {
    color: #ef4444;
}

.calendar-weekdays span:last-child {
    color: #3b82f6;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    border: 2px solid transparent;
    background: var(--white);
    border-radius: 0;
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

.calendar-day.disabled {
    color: var(--gray-400);
    cursor: not-allowed;
    background: var(--gray-100);
}

.calendar-day.available {
    background: #dcfce7;
    color: #166534;
}

.calendar-day.partial {
    background: #fef08a;
    color: #854d0e;
}

.calendar-day.full {
    background: var(--gray-300);
    color: var(--gray-600);
    cursor: not-allowed;
}

.calendar-day.today {
    border-color: var(--primary);
}

.calendar-day.selected {
    background: var(--primary) !important;
    color: var(--white) !important;
}

.calendar-day:not(.disabled):not(.full):not(.empty):hover {
    transform: scale(1.08);
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.reservation-count {
    position: absolute;
    bottom: 3px;
    font-size: 10px;
    font-weight: 700;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray-600);
}

.legend-item .dot {
    width: 14px;
    height: 14px;
    border-radius: 0;
}

.legend-item .dot.available {
    background: #dcfce7;
    border: 1px solid #16a34a;
}

.legend-item .dot.partial {
    background: #fef08a;
    border: 1px solid #ca8a04;
}

.legend-item .dot.full {
    background: var(--gray-300);
}

/* ========================================
   예약 폼 영역
   ======================================== */
.booking-section {
    background: var(--white);
    padding: 28px;
    border: 1px solid var(--gray-200);
    border-radius: 0;
}

.selected-date-display {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--gray-200);
}

.selected-date-display h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.selected-date-display p {
    font-size: 15px;
    color: var(--gray-600);
}

/* 시간 선택 */
.time-selection {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--gray-200);
}

.time-selection h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.time-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.time-field {
    flex: 1;
}

.time-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.time-field select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    font-size: 15px;
    font-family: inherit;
    border-radius: 0;
    background: var(--white);
}

.time-field select:focus {
    outline: none;
    border-color: var(--primary);
}

.time-separator {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-400);
    padding-bottom: 14px;
}

/* 시간 시각화 */
.time-visual {
    margin-top: 20px;
}

.time-blocks {
    display: flex;
    gap: 3px;
}

.time-block {
    flex: 1;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dcfce7;
    color: #166534;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
    border-radius: 0;
    cursor: pointer;
}

.time-block.reserved {
    background: var(--gray-300);
    color: var(--gray-600);
    cursor: not-allowed;
}



.time-block.clickable:hover {
    background: #bbf7d0;
    transform: translateY(-2px);
}

.time-block.start-selected {
    background: var(--primary-light);
    color: var(--white);
    box-shadow: 0 0 0 2px var(--primary);
}

.time-block.selected {
    background: var(--primary);
    color: var(--white);
}

.time-hint {
    text-align: center;
    font-size: 13px;
    color: var(--gray-600);
    margin-top: 12px;
    font-weight: 500;
}

/* 예약 폼 */
.booking-form-container h4,
.request-form-container h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.form-desc {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 20px;
}

.booking-form .form-group {
    margin-bottom: 20px;
}

.booking-form label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
    font-size: 14px;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    font-size: 15px;
    font-family: inherit;
    border-radius: 0;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-actions {
    margin-top: 28px;
}

.required {
    color: #ef4444;
}

/* 게스트 선택 */
.guest-selector {
    position: relative;
}

.selected-guest {
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    cursor: pointer;
    transition: all 0.3s;
    min-height: 52px;
    display: flex;
    align-items: center;
    border-radius: 0;
}

.selected-guest:hover {
    border-color: var(--primary);
}

.selected-guest .placeholder {
    color: var(--gray-400);
}

.selected-guest .selected-name {
    font-weight: 600;
    color: var(--gray-900);
}

/* 로그인 프롬프트 */
.login-prompt {
    text-align: center;
    padding: 48px;
    background: var(--gray-50);
    border-radius: 0;
}

.prompt-icon {
    color: var(--gray-400);
    margin-bottom: 20px;
}

.login-prompt p {
    color: var(--gray-600);
    font-size: 15px;
    margin-bottom: 24px;
}

.prompt-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* ========================================
   관리자 미팅 현황
   ======================================== */
.admin-meetings-section {
    background: var(--white);
    padding: 40px;
    margin-bottom: 48px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 700;
}

.meetings-table-wrapper {
    overflow-x: auto;
}

.meetings-table {
    width: 100%;
    border-collapse: collapse;
}

.meetings-table th,
.meetings-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.meetings-table th {
    font-weight: 600;
    color: var(--gray-600);
    font-size: 13px;
    background: var(--gray-50);
}

.meetings-table td {
    font-size: 14px;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 0;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-gray {
    background: var(--gray-200);
    color: var(--gray-600);
}

.badge-primary {
    background: rgba(233, 30, 140, 0.1);
    color: var(--primary);
}

/* ========================================
   내 예약 현황
   ======================================== */
.my-reservations {
    margin-top: 0;
}

.my-reservations h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 28px;
}

.reservations-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

.reservation-card {
    background: var(--white);
    display: flex;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
    border-radius: 0;
}

.reservation-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.reservation-card.cancelled {
    opacity: 0.6;
}

.reservation-date {
    width: 90px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.reservation-date .month {
    font-size: 12px;
    font-weight: 500;
}

.reservation-date .day {
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
}

.reservation-date .weekday {
    font-size: 12px;
    font-weight: 500;
}

.reservation-info {
    flex: 1;
    padding: 20px;
}

.reservation-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.reservation-info .time,
.reservation-info .participants {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    border-radius: 0;
}

.status-badge.confirmed {
    background: #dcfce7;
    color: #166534;
}

.status-badge.cancelled {
    background: #fee2e2;
    color: #dc2626;
}

.status-badge.completed {
    background: var(--gray-200);
    color: var(--gray-600);
}

.reservation-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    border-left: 1px solid var(--gray-100);
}

/* ========================================
   모달
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.modal-container {
    background: var(--white);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-container.modal-sm {
    max-width: 400px;
}

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

.modal-container.modal-lg {
    max-width: 950px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-500);
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--gray-900);
}

.modal-body {
    padding: 24px;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
    font-size: 14px;
}

.modal-body input,
.modal-body select,
.modal-body textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    font-size: 15px;
    font-family: inherit;
    border-radius: 0;
}

.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.modal-body .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 28px;
}

/* 검색 모달 */
.search-box {
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    font-size: 15px;
    border-radius: 0;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.user-list {
    max-height: 350px;
    overflow-y: auto;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.2s;
}

.user-item:hover {
    background: var(--gray-50);
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info strong {
    display: block;
    color: var(--gray-900);
    font-size: 14px;
}

.user-info .badge {
    margin-top: 4px;
}

/* ========================================
   버튼
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 0;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.btn-outline:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.btn-danger {
    background: #ef4444;
    color: var(--white);
    border: none;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-danger-outline {
    background: transparent;
    color: #ef4444;
    border: 2px solid #ef4444;
}

.btn-danger-outline:hover {
    background: #ef4444;
    color: var(--white);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

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

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

    .meeting-hero .hero-title {
        font-size: 44px;
    }
}

@media (max-width: 768px) {
    .magazine-hero.meeting-hero {
        padding: 80px 0 60px;
        min-height: auto;
    }

    .meeting-hero .hero-title {
        font-size: 36px;
    }

    .meeting-hero .hero-stats {
        gap: 40px;
    }

    .meeting-hero .stat-num {
        font-size: 36px;
    }

    .room-showcase,
    .booking-wrapper {
        padding: 28px;
    }

    .time-row {
        flex-direction: column;
        align-items: stretch;
    }

    .time-separator {
        text-align: center;
        padding: 12px 0;
    }

    .reservations-list {
        grid-template-columns: 1fr;
    }

    .reservation-card {
        flex-direction: column;
    }

    .reservation-date {
        width: 100%;
        flex-direction: row;
        gap: 16px;
        padding: 14px;
    }

    .reservation-date .day {
        font-size: 28px;
    }

    .reservation-actions {
        flex-direction: row;
        border-left: none;
        border-top: 1px solid var(--gray-100);
    }
}