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

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    background: #e5e7eb;
    min-height: 100vh;
    overflow: hidden;
    user-select: none;
}

.container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* 헤드 메시지 */
.header-message {
    position: absolute;
    top: 30px;
    left: 40px;
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
    z-index: 10;
    letter-spacing: -0.02em;
}

.board {
    width: 100%;
    height: 100%;
    position: relative;
    padding: 40px;
}

/* 포스트잇 스타일 */
.note {
    position: absolute;
    width: 340px;
    height: 280px;
    padding: 30px;
    border-radius: 2px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 17px;
    line-height: 1.5;
    color: #333;
    font-weight: 500;
    word-wrap: break-word;
    overflow: hidden;
    z-index: 1;
}

.note .note-summary {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.note .note-category {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.note .note-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
    line-height: 1.3;
}

.note .note-text {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    font-weight: 400;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.note:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* 포스트잇 색상 */
.note-yellow {
    background: #fef3c7;
    background-image: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.note-green {
    background: #dcfce7;
    background-image: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

.note-blue {
    background: #dbeafe;
    background-image: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
}

.note-pink {
    background: #fce7f3;
    background-image: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
}

.note-purple {
    background: #e9d5ff;
    background-image: linear-gradient(135deg, #e9d5ff 0%, #d8b4fe 100%);
}

.note-orange {
    background: #fed7aa;
    background-image: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
}

/* 포스트잇 기울기 */
.note-rotate-1 { transform: rotate(-3deg); }
.note-rotate-2 { transform: rotate(2deg); }
.note-rotate-3 { transform: rotate(-2deg); }
.note-rotate-4 { transform: rotate(4deg); }
.note-rotate-5 { transform: rotate(-4deg); }

/* 읽은 포스트잇 (회색) */
.note-read {
    background: #d1d5db !important;
    background-image: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%) !important;
}

.note-read .note-category,
.note-read .note-title,
.note-read .note-text {
    color: #6b7280 !important;
}

/* 확대된 포스트잇 */
.expanded-note {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 1170px;
    min-height: 780px;
    padding: 78px;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 47px;
    line-height: 1.6;
    color: #333;
    font-weight: 500;
}

.expanded-note .note-content {
    max-height: 975px;
    overflow-y: auto;
}

.expanded-note h3 {
    font-size: 55px;
    font-weight: bold;
    margin-bottom: 39px;
    color: #1f2937;
}

.expanded-note p {
    font-size: 43px;
    line-height: 1.7;
    color: #374151;
}

/* 오버레이 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 999;
    cursor: pointer;
}

.overlay.hidden {
    display: none;
}

/* 확대 애니메이션 */
.note.expanding {
    position: fixed !important;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .note {
        width: 200px;
        min-height: 160px;
        padding: 18px;
        font-size: 15px;
    }
    
    .expanded-note {
        width: 80%;
        max-width: 500px;
        min-height: 300px;
        padding: 30px;
    }
    
    .expanded-note h3 {
        font-size: 24px;
    }
    
    .expanded-note p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .board {
        padding: 20px;
    }
    
    .note {
        width: 160px;
        min-height: 130px;
        padding: 15px;
        font-size: 14px;
    }
    
    .expanded-note {
        width: 90%;
        max-width: 400px;
        min-height: 250px;
        padding: 25px;
    }
    
    .expanded-note h3 {
        font-size: 20px;
    }
    
    .expanded-note p {
        font-size: 16px;
    }
}