/* ==========================================
   HADIA_ MINIMALIST FAN STUDIO STYLE SHEET
   ========================================== */

:root {
    --bg-main: #fffdf8;       /* Very warm cream background */
    --bg-card: #ffffff;
    --primary: #fdd835;       /* Bright Yogurt Yellow */
    --primary-light: #fffde7; /* Creamy Yellow */
    --secondary: #ffb300;     /* Amber (Sweet point) */
    --secondary-light: #ffecb3;/* Pale Amber */
    --text-main: #1f2937;      /* Dark Slate */
    --text-muted: #6b7280;     /* Muted Grey */
    --border: #f3f4f6;         /* Very Light Grey */
    --border-dark: #e5e7eb;
    --bg-transparent: rgba(255, 255, 255, 0.7);
    --border-transparent: rgba(255, 255, 255, 0.8);
    --bg-rail-1: #f3f4f6;
    --bg-rail-2: #ffffff;
    --bg-switcher: #f3f4f6;
    --bg-label: #f3f4f6;
    --shadow-soft: 0 4px 20px rgba(253, 216, 53, 0.1);
    --shadow-poster: 0 15px 40px rgba(255, 179, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    --bg-badge-on: #ffecb3;
    --text-badge-on: #2e7d32;
    --bg-badge-off: #ffebee;
    --text-badge-off: #c62828;
    
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

[data-theme="dark"] {
    --bg-main: #18181b;       /* Zinc 900 */
    --bg-card: #27272a;       /* Zinc 800 */
    --primary: #fcd34d;       /* Amber 300 */
    --primary-light: #3f3f46; /* Zinc 700 (포스트잇 등) */
    --secondary: #fbbf24;     /* Amber 400 */
    --secondary-light: #52525b;/* Zinc 600 */
    --text-main: #f4f4f5;     /* Zinc 50 */
    --text-muted: #a1a1aa;    /* Zinc 400 */
    --border: #3f3f46;
    --border-dark: #52525b;
    --bg-transparent: rgba(39, 39, 42, 0.7);
    --border-transparent: rgba(82, 82, 91, 0.5);
    --bg-rail-1: #27272a;
    --bg-rail-2: #3f3f46;
    --bg-switcher: #18181b;
    --bg-label: #3f3f46;
    --bg-badge-on: #bbf7d0;       /* 다크모드에서 잘 보이는 밝은 초록 배경 */
    --text-badge-on: #166534;      /* 가독성 높은 어두운 초록 텍스트 */
    --bg-badge-off: #fecaca;      /* 다크모드에서 잘 보이는 밝은 빨간 배경 */
    --text-badge-off: #991b1b;     /* 가독성 높은 어두운 빨간 텍스트 */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-poster: 0 15px 40px rgba(0, 0, 0, 0.6);
}

input.editable-label, .modal-field input.editable-label {
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: var(--text-main) !important;
    margin-bottom: 0.2rem !important;
    display: inline-block;
    padding: 0.4rem 0.6rem !important;
    width: 40% !important; /* 박스를 작게(짧게) 만듦 */
    border: 1px solid var(--border-dark) !important;
    border-radius: 6px !important;
    background: #f9fafb !important;
    outline: none !important;
    transition: all 0.2s;
    cursor: text;
}
input.editable-label:focus, .modal-field input.editable-label:focus {
    border-color: var(--primary) !important;
    background: var(--bg-card) !important;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Ambient Soft Glowing Lights */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.ambient-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.25;
    animation: floatGlow 15s infinite alternate ease-in-out;
}

.color-yellow {
    top: -200px;
    left: 10%;
    background: radial-gradient(circle, rgba(253, 216, 53, 0.4) 0%, transparent 70%);
}

.color-mint {
    bottom: -200px;
    right: 10%;
    background: radial-gradient(circle, rgba(129, 199, 130, 0.3) 0%, transparent 70%);
    animation-delay: -7.5s;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.1); }
}

/* Page Container wrapper */
.page-wrapper {
    width: 100%;
    max-width: 1800px;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* ==========================================
   1. PROFILE SECTION (Premium Banner Style)
   ========================================== */
.profile-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border-radius: 24px;
    background: var(--bg-transparent);
    box-shadow: var(--shadow-poster);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-transparent);
    margin-bottom: 0.5rem;
}

.banner-cover {
    width: 100%;
    height: 260px;
    background-color: var(--border-dark); /* 깔끔한 단색 배경으로 변경 */
    position: relative;
    overflow: hidden;
}

.banner-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(25px);
}

.shape-1 {
    width: 350px;
    height: 350px;
    background: rgba(253, 216, 53, 0.3);
    top: -150px;
    left: -50px;
    animation: shapeFloat 12s infinite alternate ease-in-out;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: rgba(129, 199, 130, 0.3);
    bottom: -100px;
    right: 5%;
    animation: shapeFloat 9s infinite alternate-reverse ease-in-out;
}

@keyframes shapeFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.15); }
}

.profile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 2rem 2.5rem 2rem;
    margin-top: -65px;
    position: relative;
    z-index: 10;
    width: 100%;
}

.avatar-wrap {
    position: relative;
    margin-bottom: 1rem;
    padding: 6px;
    background: var(--bg-card);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    display: inline-block;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.avatar-wrap:hover .profile-avatar {
    transform: rotate(5deg) scale(1.05);
}

.live-status-dot {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background-color: #9ca3af;
    border: 3px solid var(--bg-card);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.live-status-dot.streaming {
    background-color: #22c55e; /* 녹색으로 변경 */
    box-shadow: 0 0 10px #22c55e;
    animation: livePulse 1.5s infinite alternate ease-in-out;
}

@keyframes livePulse {
    0% { opacity: 0.6; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.1); }
}

.profile-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
}

.profile-bio {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Social Links */
.social-links-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    color: #ffffff;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

.social-icon-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
}

img.social-icon-text {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.soop-btn {
    background: linear-gradient(135deg, #2b61d6, #1c4bb0);
}

.naver-btn {
    background: linear-gradient(135deg, #03c75a, #02a048);
}

.youtube-btn {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

/* Minimal Live Bar widget */
.live-bar {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
    font-size: 0.85rem;
    transition: var(--transition);
}

.live-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}

.live-label {
    font-weight: 800;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    background: var(--bg-label);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.live-bar.streaming .live-label {
    background: #dcfce7;
    color: #15803d;
}

.live-info-text {
    font-weight: 600;
    color: var(--text-main);
}

.live-link-arrow {
    color: var(--text-muted);
    transition: var(--transition);
    text-decoration: none;
    margin-left: 0.25rem;
}

.live-link-arrow:hover {
    color: var(--text-main);
    transform: translate(1px, -1px);
}

/* ==========================================
   2. SCHEDULE POSTER (vic-schedule-studio Style)
   ========================================== */
.schedule-poster-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.poster-container {
    background: var(--bg-card);
    border-radius: 24px;
    box-shadow: var(--shadow-poster);
    width: 100%;
    display: block; /* Removed aside rails grid */
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.poster-rail {
    background: repeating-linear-gradient(
        -45deg,
        var(--bg-rail-1),
        var(--bg-rail-1) 10px,
        var(--bg-rail-2) 10px,
        var(--bg-rail-2) 20px
    );
    border-right: 1px solid var(--border-dark);
}

.rail-right {
    border-right: none;
    border-left: 1px solid var(--border-dark);
}

.poster-main {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-card);
}

.poster-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.poster-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
    text-transform: uppercase;
}

.poster-header .sparkle {
    font-size: 1.2rem;
    animation: sparkleSpin 4s infinite linear;
}

@keyframes sparkleSpin {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.15) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

.poster-monthbar {
    border-bottom: 2px solid var(--text-main);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
}

.date-nav-btn {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-nav-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

.poster-monthbar span {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Calendar & Memo Layout Wrapper */
.calendar-layout-wrapper {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    align-items: stretch;
    margin-top: 1rem;
}

.calendar-area {
    flex: 1;
    min-width: 0;
}

/* Memo Sidebar & Post-it Notes */
.memo-sidebar {
    flex: 0 0 280px;
    display: none; /* 주간일정 기본 로딩 시 숨김 */
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition);
}

.memo-header {
    font-family: 'Outfit', 'Pretendard', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px dashed rgba(253, 216, 53, 0.4);
    padding-bottom: 0.5rem;
}

.memo-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.memo-actions {
    display: flex;
    gap: 0.25rem;
}

.add-note-btn {
    background: var(--bg-main);
    border: 1px solid var(--primary);
    color: var(--secondary);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.add-note-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05);
}

.postit-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    padding-bottom: 2rem;
}

/* Individual Post-it */
.post-it {
    background-color: var(--primary-light);
    width: 100%;
    min-height: 180px;
    padding: 1.25rem 1rem 1rem;
    box-shadow: 2px 4px 12px rgba(0,0,0,0.06), 0 10px 20px rgba(0,0,0,0.03);
    position: relative;
    transform: rotate(-1deg);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    border-bottom-right-radius: 24px 4px;
}
.post-it.color-1 {
    transform: rotate(1.5deg);
    background-color: var(--primary-light);
}
.post-it.color-2 {
    transform: rotate(-1.5deg);
    background-color: var(--secondary-light);
}
.post-it:hover {
    transform: scale(1.02) rotate(0deg);
    box-shadow: 4px 8px 15px rgba(0,0,0,0.1);
    z-index: 10;
}

/* Tape effect */
.post-it::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 80px;
    height: 22px;
    background-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.post-it-actions {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s;
}
.post-it:hover .post-it-actions {
    opacity: 1;
}
.post-it-btn {
    background: transparent;
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0,0,0,0.3);
    font-size: 0.8rem;
    transition: all 0.15s;
}
.post-it-btn:hover {
    background: rgba(0,0,0,0.08);
    color: #e53935;
}

.post-it-title {
    width: 100%;
    border: none;
    background: transparent;
    font-family: 'Pretendard', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--secondary);
    outline: none;
    padding-bottom: 4px;
    margin-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}
.post-it-title::placeholder {
    color: rgba(255, 179, 0, 0.4);
}

.post-it-content {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
    outline: none;
    white-space: pre-wrap;
    word-break: break-all;
    margin-top: 0.5rem;
}
.post-it-content:empty::before {
    content: "메모 입력...";
    color: rgba(0,0,0,0.3);
}

/* Checklist Styles */
.checklist-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    margin-top: 0.5rem;
}
.check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.check-item input[type="checkbox"] {
    margin-top: 0.35rem;
    accent-color: var(--accent);
    cursor: pointer;
}
.check-item-text {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Pretendard', sans-serif;
    font-size: 0.95rem;
    color: var(--text-main);
    outline: none;
    border-bottom: 1px dashed rgba(0,0,0,0.15);
    padding-bottom: 2px;
    white-space: pre-wrap;
    word-break: break-all;
    min-height: 20px;
    line-height: 1.4;
}
.check-item-text:empty::before {
    content: attr(data-placeholder);
    color: rgba(0,0,0,0.3);
}
.check-item-text:focus {
    border-bottom: 1px solid rgba(0,0,0,0.3);
}
.check-item.done .check-item-text {
    text-decoration: line-through;
    color: var(--text-muted);
}
.add-check-btn {
    background: transparent;
    border: none;
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    margin-top: 0.5rem;
    padding: 0.25rem 0;
    transition: color 0.15s;
}
.add-check-btn:hover {
    color: var(--accent);
}

/* 드래그 앤 드롭: 남겨진 빈 자리 */
.sortable-ghost {
    opacity: 0.1 !important;
    border: 2px dashed rgba(0,0,0,0.3) !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* 드래그 앤 드롭: 떼어내서 들고 있는 객체 (forceFallback: true) */
.sortable-fallback {
    opacity: 1 !important;
    box-shadow: 10px 15px 25px rgba(0,0,0,0.2) !important;
    z-index: 9999 !important;
    cursor: grabbing !important;
    transition: none !important; /* 마우스 추적 시 애니메이션 지연(lag) 완전 제거 */
}

.sortable-drag {
    cursor: grabbing !important;
}

/* Calendar Grid */
.calendar-grid, .monthly-grid {
    display: none;
    width: 100%;
}

.calendar-grid.active {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.monthly-grid.active {
    display: block;
}

/* View Switcher */
.view-switcher {
    display: flex;
    gap: 0.25rem;
    background-color: var(--bg-switcher);
    padding: 0.25rem;
    border-radius: 30px;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}

.switch-btn {
    border: none;
    background: transparent;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.switch-btn.active {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(253, 216, 53, 0.4);
}

/* Calendar Day Cell */
.calendar-cell {
    background-color: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    padding: 1.25rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 180px;
    transition: var(--transition);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.calendar-cell.has-memo::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 16px 16px 0;
    border-color: transparent #ef4444 transparent transparent;
    z-index: 5;
}

.calendar-cell:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    border-color: var(--text-main);
}

.cell-day-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.cell-date-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.cell-badge {
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    margin-bottom: auto;
    text-transform: uppercase;
}

.cell-badge.on {
    background-color: var(--bg-badge-on);
    color: var(--text-badge-on);
}

.cell-badge.off {
    background-color: var(--bg-badge-off);
    color: var(--text-badge-off);
}

.cell-time {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

.cell-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-muted);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Today Cell Highlight */
.calendar-cell.today {
    background-color: rgba(253, 216, 53, 0.12);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 15px rgba(253, 216, 53, 0.2);
}

.calendar-cell.today .cell-day-label {
    color: #f57f17;
}

.calendar-cell.today .cell-title {
    color: var(--text-main);
}

/* Monthly Calendar Cells */
.monthly-header-cell {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    text-align: center;
    color: var(--text-muted);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-dark);
}

.monthly-cell {
    background-color: var(--bg-card);
    border: 1px dashed var(--border-dark); /* 딱딱한 실선 대신 귀여운 점선 */
    border-radius: 16px; /* 둥글게 */
    padding: 0.5vw;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.monthly-grid.has-bg .monthly-cell {
    background-color: color-mix(in srgb, var(--bg-card) 75%, transparent);
    backdrop-filter: blur(6px);
    border-color: color-mix(in srgb, var(--border-dark) 50%, transparent);
}

.monthly-cell:not(.empty):hover {
    box-shadow: var(--shadow-soft);
    border-color: var(--primary);
    background-color: var(--bg-main);
    transform: translateY(-2px); /* 살짝 떠오르는 효과 */
}

.monthly-cell.empty {
    background-color: transparent;
    border-color: transparent;
    opacity: 0.5;
}

.monthly-cell.today {
    background-color: rgba(253, 216, 53, 0.1);
    border: 2px solid var(--primary);
}

.monthly-date-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    text-align: left;
}

.monthly-cell.today .monthly-date-num {
    color: #f57f17;
}

.monthly-cell-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.35rem;
}

.event-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.4rem;
    font-family: 'Pretendard', sans-serif;
    transition: var(--transition);
    overflow: hidden;
    white-space: normal;
    min-height: 24px;
    height: max-content;
    align-self: start;
    position: relative;
}

.event-block.has-memo::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 10px 0;
    border-color: transparent #ef4444 transparent transparent;
    z-index: 5;
}

.event-block:hover {
    filter: brightness(0.95);
}

.event-time {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.6rem, 0.7vw, 0.7rem);
    font-weight: 800;
    color: #4b5563; /* Dark gray for time */
    background: rgba(255, 255, 255, 0.6); /* 더 투명하게 둥글게 */
    padding: 0.2rem 0.4rem;
    border-radius: 12px;
    flex-shrink: 0;
}

.event-title {
    font-size: clamp(0.65rem, 0.8vw, 0.85rem);
    font-weight: 700;
    color: #1f2937;
    white-space: normal;
    word-break: keep-all;
    line-height: 1.25;
}

.event-block.off-event {
    opacity: 0.8;
}

.event-block.off-event .event-time {
    color: #b91c1c; /* Red text for off */
    background: rgba(255, 255, 255, 0.6);
}

.poster-footer {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.last-updated {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ==========================================
   3. LINKS TREE SECTION (beadyo.com Style)
   ========================================== */
.links-tree-section {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.section-heading {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
    text-transform: uppercase;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: var(--text-main);
}

.links-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.link-btn {
    display: flex;
    align-items: center;
    padding: 1.1rem 2rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 40px; /* Rounded Pill-shape */
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    position: relative;
}

.btn-icon {
    font-size: 1.25rem;
    width: 30px;
    display: flex;
    align-items: center;
}

.btn-text {
    flex-grow: 1;
    font-size: 0.95rem;
    letter-spacing: -0.2px;
}

/* Hover Inverse Color Animations for beadyo style */
.link-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    border-color: transparent;
}

.link-soop:hover { background-color: #2196f3; color: #ffffff; }
.link-youtube:hover { background-color: #ff0000; color: #ffffff; }
.link-cafe:hover { background-color: #2db400; color: #ffffff; }
.link-fancim:hover { background-color: #e91e63; color: #ffffff; }

/* Page Footer styling */
.page-footer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    width: 100%;
    padding-top: 2rem;
    margin-top: 2rem;
}

/* ==========================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================== */
@media (max-width: 1024px) {
    .calendar-grid {
        grid-template-columns: repeat(4, 1fr); /* Wrap grid on tablet */
    }
    
    .poster-container {
        grid-template-columns: 10px 1fr 10px; /* Narrower rails */
    }
    
    .poster-main {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    }
    
    .monthly-cell {
        min-height: 70px;
        padding: 0.35rem;
    }
    
    .monthly-cell-title {
        font-size: 0.6rem;
    }
    
    .page-wrapper {
        padding: 3rem 1rem;
    }
}

@media (max-width: 480px) {
    .calendar-grid {
        grid-template-columns: 1fr; /* 1 column lists on tiny screen */
    }
    
    .calendar-cell {
        min-height: auto;
        flex-direction: row;
        padding: 1rem;
        gap: 1rem;
        align-items: center;
    }
    
    .cell-date-num {
        margin-bottom: 0;
        font-size: 1.3rem;
        width: 30px;
        text-align: center;
    }
    
    .cell-badge {
        margin-bottom: 0;
    }
    
    .cell-title {
        text-align: left;
        -webkit-line-clamp: 1;
        margin-left: auto;
    }
    
    .monthly-cell {
        min-height: 50px;
        padding: 0.25rem;
    }
    
    .monthly-cell-title {
        display: none; /* Hide text, just show status dot on micro screens */
    }
}

/* ==========================================
   Modal Styles
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-card);
    width: 90%;
    max-width: 400px;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: modalPop 0.2s ease-out;
}

@keyframes modalPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.modal-header h3 {
    font-size: 1.2rem;
    color: var(--text-main);
}
.modal-close {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
}
.modal-close:hover { color: #e53935; }

.modal-field {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.modal-field label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
}
.modal-field input, .modal-field select {
    padding: 0.75rem;
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}
.modal-field input:focus, .modal-field select:focus {
    border-color: var(--primary);
}

.modal-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.5rem;
}
.modal-actions button {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary {
    background: var(--primary);
    color: var(--text-main);
}
.btn-primary:hover { background: var(--secondary); color: #fff; }

.btn-danger {
    background: #fee2e2;
    color: #ef4444;
}
.btn-danger:hover { background: #ef4444; color: #fff; }

.edit-day-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.05);
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    z-index: 5;
}
.monthly-cell { position: relative; }
body.admin-mode .monthly-cell:hover .edit-day-btn { display: flex; }
.edit-day-btn:hover { background: var(--primary); color: #fff; }

.existing-event-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #f9fafb;
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}
.existing-event-item button {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 4px;
}
.existing-event-item button:hover {
    background: #fee2e2;
}

/* ==========================================
   Holiday Styles
   ========================================== */
.monthly-cell.is-holiday .monthly-date-num {
    color: #ef4444 !important; /* 날짜 번호를 빨갛게 */
}
.holiday-name {
    display: block; /* 날짜 숫자 밑으로 줄바꿈 */
    font-size: 0.7rem; /* 작은 글씨 */
    color: #ef4444; /* 빨간색 */
    margin-top: 2px;
    font-weight: 500;
}

/* ==========================================
   Admin Mode Restrictions for Post-its
   ========================================== */
body:not(.admin-mode) .memo-actions,
body:not(.admin-mode) .post-it-actions,
body:not(.admin-mode) .add-check-btn {
    display: none !important;
}

body:not(.admin-mode) .post-it-title,
body:not(.admin-mode) .post-it-content,
body:not(.admin-mode) .check-item input {
    pointer-events: none;
}

/* Checklist item styles */
.check-item {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    width: 100%;
}

.check-item-del-btn {
    background: transparent;
    border: none;
    color: #ef4444; /* red */
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.2s;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-item:hover .check-item-del-btn {
    opacity: 1;
}

body:not(.admin-mode) .check-item-del-btn {
    display: none !important;
}

/* ==========================================
   3. YOUTUBE SECTION
   ========================================== */
.youtube-section {
    width: 100%;
    max-width: 1200px;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.youtube-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.youtube-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.youtube-header img {
    width: 32px;
    height: 32px;
}

.youtube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.youtube-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-dark);
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

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

.youtube-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background-color: var(--border);
}

.youtube-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.youtube-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.youtube-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}
