:root {
    --main: #FF7096;
    --soft-pink: #FFF0F5;
    --deep-pink: #FFDDE2;
    --gold: #D4AF37;
    --border: #F0F0F0;
    --dark: #000000;
    --white: #FFFFFF;
    --shadow: 0 10px 30px -5px rgba(255,112,150,0.15);
}

body {
    background-color: #FFF5F7;
    color: #000;
    font-family: 'Pretendard', sans-serif;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

@media (min-width: 768px) {
    body {
        padding: 40px;
    }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 120px;
}

.nav-back {
    color: #888 !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 15px;
}

/* [헤더 섹션] */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.title-area h1 {
    font-size: 24px;
    font-weight: 900;
    margin: 0;
}

@media (min-width: 768px) {
    .title-area h1 {
        font-size: 32px;
    }
}

.main-year-select {
    border: 2px solid var(--main);
    padding: 8px 12px;
    font-weight: 900;
    font-size: 14px;
    background: #fff;
    border-radius: 12px;
    color: var(--main);
    outline: none;
    box-shadow: var(--shadow);
}

.lock-icon {
    font-size: 24px;
    cursor: pointer;
    margin-left: 10px;
}

#secretOverlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 20, 0.98);
    display: none;
    z-index: 9999;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 24px;
}

/* [토글 스위치] */
.toggle-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.toggle-box {
    background: #fff;
    border-radius: 50px;
    display: inline-flex;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.t-btn {
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 800;
    cursor: pointer;
    background: transparent;
    transition: 0.3s;
    font-size: 13px;
}

.t-btn.active {
    background: var(--main);
    color: #fff;
    box-shadow: 0 5px 12px rgba(255, 112, 150, 0.3);
}

/* [게시판 그리드] */
.memo-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
    .memo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card {
    background: #fff;
    background-image: repeating-linear-gradient(#fff, #fff 30px, #f4f4f4 31px);
    border: 1px solid #eee;
    padding: 25px;
    position: relative;
    box-shadow: 10px 10px 20px rgba(0,0,0,0.03);
    min-height: 250px;
    border-radius: 15px;
    overflow: hidden;
    animation: popIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    border-width: 25px 25px 0 0;
    border-style: solid;
    border-color: #ddd #FFF5F7 #FFF5F7 #ddd;
}

.card.csat {
    background: linear-gradient(135deg, #FFF9E3, #F3D99F);
    border: none;
}

.card.csat::after {
    border-color: #D4AF37 #FFF5F7 #FFF5F7 #D4AF37;
}

.edit-label {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 12px;
    font-weight: 900;
    color: #CCC;
    cursor: pointer;
    z-index: 10;
    padding: 5px;
}

.edit-label:hover {
    color: var(--main);
}

.subject-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 20px;
}

.subj-tag {
    background: rgba(248, 248, 248, 0.8);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #eee;
}

.grade-num {
    font-size: 24px;
    font-weight: 900;
    color: #000;
    line-height: 1;
}

.pink-txt {
    color: var(--main) !important;
}

.hashtag-area {
    margin-top: 20px;
    font-size: 12px;
    color: var(--main);
    font-weight: 800;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 12px;
}

/* [하단 메뉴] */
.floating-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    background: #fff;
    border-top: 1.5px solid #eee;
    z-index: 1000;
}

.nav-btn {
    flex: 1;
    border: none;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--main);
    background: transparent;
}

.nav-btn.active {
    background: var(--main);
    color: white !important;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pop-fade {
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
