@charset "utf-8";

/* ============================================
   텔레그램 뽀모도로 봇 가이드
   접두사: tg-pomo- (기존 사이트 오염 방지)
   컬러 톤: 토마토 레드(Tomato Red) + 웜 오렌지
============================================ */

:root {
    --tgpo-red: #dc2626;
    --tgpo-red-dark: #b91c1c;
    --tgpo-red-deep: #7f1d1d;
    --tgpo-red-light: #fef2f2;
    --tgpo-red-border: #fca5a5;
    --tgpo-orange: #ea580c;
    --tgpo-orange-light: #fff7ed;
    --tgpo-amber: #f59e0b;
    --tgpo-amber-light: #fffbeb;
    --tgpo-amber-border: #fde68a;
    --tgpo-green: #059669;
    --tgpo-green-light: #ecfdf5;
    --tgpo-slate-900: #0f172a;
    --tgpo-slate-700: #334155;
    --tgpo-slate-500: #64748b;
    --tgpo-slate-200: #e2e8f0;
    --tgpo-slate-100: #f1f5f9;
    --tgpo-bg: #fdf8f6;
    --tgpo-white: #ffffff;
    --tgpo-radius: 14px;
}

/* ─── 래퍼 ─── */
.tg-pomo-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color: var(--tgpo-slate-500);
    background-color: var(--tgpo-bg);
    box-sizing: border-box;
    line-height: 1.7;
    overflow: hidden;
    padding-bottom: 60px;
}

.tg-pomo-wrapper *,
.tg-pomo-wrapper *::before,
.tg-pomo-wrapper *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

.tg-pomo-wrapper strong {
    font-weight: 700;
    color: var(--tgpo-slate-900);
}

.tg-pomo-wrapper mark {
    background: linear-gradient(120deg, var(--tgpo-red-light) 0%, #fee2e2 100%);
    color: var(--tgpo-red-deep);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.tg-pomo-wrapper code {
    font-family: 'Consolas', 'Courier New', monospace;
    background-color: var(--tgpo-slate-100);
    color: var(--tgpo-red-dark);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 600;
    border: 1px solid var(--tgpo-slate-200);
}

/* ─── 히어로 헤더 ─── */
.tg-pomo-hero {
    background: linear-gradient(145deg, #0f172a 0%, #7f1d1d 35%, #dc2626 75%, #f87171 100%);
    color: var(--tgpo-white);
    padding: 60px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tg-pomo-hero::before {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    border: 55px solid rgba(220, 38, 38, 0.08);
    border-radius: 50%;
    top: -90px;
    right: -90px;
}

.tg-pomo-hero::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    border: 35px solid rgba(234, 88, 12, 0.06);
    border-radius: 50%;
    bottom: -50px;
    left: -40px;
}

.tg-pomo-hero__inner {
    position: relative;
    z-index: 1;
}

.tg-pomo-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--tgpo-white);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
}

.tg-pomo-hero__badge i {
    font-size: 16px;
    color: var(--tgpo-amber);
}

.tg-pomo-hero__title {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 18px;
    color: var(--tgpo-white);
}

.tg-pomo-hero__desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* ─── 메인 ─── */
.tg-pomo-main {
    padding: 30px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ─── 도입부 ─── */
.tg-pomo-intro {
    background-color: var(--tgpo-white);
    padding: 28px 24px;
    border-radius: var(--tgpo-radius);
    border-left: 4px solid var(--tgpo-red);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.tg-pomo-intro p {
    font-size: 16px;
    margin-bottom: 14px;
}

.tg-pomo-intro p:last-child {
    margin-bottom: 0;
}

/* ─── 섹션 공통 ─── */
.tg-pomo-section {
    background-color: var(--tgpo-white);
    padding: 34px 24px;
    border-radius: var(--tgpo-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--tgpo-slate-200);
}

.tg-pomo-section--tip {
    background-color: var(--tgpo-amber-light);
    border-color: var(--tgpo-amber-border);
}

.tg-pomo-section__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.tg-pomo-section__num {
    font-size: 38px;
    font-weight: 900;
    color: var(--tgpo-red);
    opacity: 0.2;
    line-height: 1;
    flex-shrink: 0;
}

.tg-pomo-section__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--tgpo-amber) 0%, #fbbf24 100%);
    color: var(--tgpo-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.tg-pomo-section__title {
    font-size: 20px;
    font-weight: 800;
    color: var(--tgpo-slate-900);
    line-height: 1.35;
    padding-top: 6px;
}

.tg-pomo-section__desc {
    font-size: 16px;
    margin-bottom: 24px;
}

/* ─── 스텝 리스트 ─── */
.tg-pomo-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tg-pomo-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background-color: var(--tgpo-slate-100);
    padding: 16px 18px;
    border-radius: 10px;
    border-left: 3px solid var(--tgpo-red-border);
    transition: border-left-color 0.2s ease;
}

.tg-pomo-step:hover {
    border-left-color: var(--tgpo-red);
}

.tg-pomo-step__marker {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--tgpo-red) 0%, var(--tgpo-red-dark) 100%);
    color: var(--tgpo-white);
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-top: 1px;
}

.tg-pomo-step__text {
    font-size: 15px;
    padding-top: 3px;
}

.tg-pomo-step__text p {
    margin-bottom: 0;
}

/* ─── 타이머 비주얼 (25분→5분→반복) ─── */
.tg-pomo-timer-visual {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.tg-pomo-timer-visual__block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 20px;
    border-radius: 12px;
    min-width: 90px;
}

.tg-pomo-timer-visual__block--work {
    background-color: var(--tgpo-red-light);
    border: 1px solid var(--tgpo-red-border);
    color: var(--tgpo-red);
}

.tg-pomo-timer-visual__block--work i {
    font-size: 22px;
    color: var(--tgpo-red);
}

.tg-pomo-timer-visual__block--rest {
    background-color: var(--tgpo-green-light);
    border: 1px solid #6ee7b7;
    color: var(--tgpo-green);
}

.tg-pomo-timer-visual__block--rest i {
    font-size: 22px;
    color: var(--tgpo-green);
}

.tg-pomo-timer-visual__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.tg-pomo-timer-visual__time {
    font-size: 18px;
    font-weight: 900;
    color: var(--tgpo-slate-900);
}

.tg-pomo-timer-visual__arrow {
    font-size: 14px;
    color: var(--tgpo-slate-500);
}

.tg-pomo-timer-visual__arrow--repeat {
    color: var(--tgpo-amber);
}

.tg-pomo-timer-visual__repeat {
    font-size: 12px;
    font-weight: 700;
    color: var(--tgpo-amber);
}

/* ─── 꿀팁 카드 ─── */
.tg-pomo-tips {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.tg-pomo-tip {
    background-color: var(--tgpo-white);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--tgpo-amber-border);
}

.tg-pomo-tip__icon {
    font-size: 24px;
    color: var(--tgpo-amber);
    margin-bottom: 10px;
}

.tg-pomo-tip__title {
    font-size: 16px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 8px;
}

.tg-pomo-tip__text {
    font-size: 14px;
    color: #a16207;
}

/* ─── 결론 및 요약 ─── */
.tg-pomo-summary {
    background: linear-gradient(135deg, #0f172a 0%, var(--tgpo-red-deep) 50%, var(--tgpo-red-dark) 100%);
    color: var(--tgpo-white);
    padding: 44px 28px;
    border-radius: var(--tgpo-radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(127, 29, 29, 0.3);
}

.tg-pomo-summary__title {
    font-size: 24px;
    font-weight: 800;
    color: var(--tgpo-white);
    margin-bottom: 20px;
}

.tg-pomo-summary__body p {
    font-size: 16px;
    margin-bottom: 14px;
    color: #fca5a5;
}

.tg-pomo-summary__body p:last-child {
    margin-bottom: 0;
}

.tg-pomo-summary strong,
.tg-pomo-summary__body strong {
    color: var(--tgpo-white);
}

/* 체크리스트 */
.tg-pomo-summary__checklist {
    list-style: none;
    display: inline-block;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.07);
    padding: 24px 32px;
    border-radius: 12px;
    margin: 24px 0;
}

.tg-pomo-summary__checklist li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 15px;
    color: #fee2e2;
}

.tg-pomo-summary__checklist li:last-child {
    margin-bottom: 0;
}

/* FontAwesome 체크마크 */
.tg-pomo-summary__checklist li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 13px;
    color: var(--tgpo-amber);
}

.tg-pomo-summary__checklist strong {
    color: var(--tgpo-white);
}

.tg-pomo-summary__checklist code {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fca5a5;
    border-color: rgba(255, 255, 255, 0.15);
}

.tg-pomo-summary__footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #f87171;
    line-height: 1.8;
}

.tg-pomo-summary__footer strong {
    color: var(--tgpo-white);
}

/* ============================================
   반응형 미디어 쿼리 (모바일 퍼스트)
============================================ */
@media (min-width: 768px) {
    .tg-pomo-hero {
        padding: 80px 40px;
    }

    .tg-pomo-hero__title {
        font-size: 38px;
    }

    .tg-pomo-main {
        padding: 40px 36px 0;
        gap: 40px;
    }

    .tg-pomo-intro {
        padding: 36px 32px;
    }

    .tg-pomo-section {
        padding: 40px 36px;
    }

    .tg-pomo-section__title {
        font-size: 24px;
    }

    .tg-pomo-section__num {
        font-size: 44px;
    }

    /* 꿀팁 2열 */
    .tg-pomo-tips {
        grid-template-columns: repeat(2, 1fr);
    }

    .tg-pomo-summary {
        padding: 56px 44px;
    }
}

@media (min-width: 1024px) {
    .tg-pomo-hero__title {
        font-size: 44px;
    }

    .tg-pomo-main {
        gap: 46px;
    }
}

/* ============================================
   스크롤 등장 애니메이션 (JS 연동)
============================================ */
.tg-pomo-motion {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.tg-pomo-motion.is-visible {
    opacity: 1;
    transform: translateY(0);
}