@charset "utf-8";

/* ============================================
   텔레그램 미디어 앨범 가이드
   접두사: tg-alb- (기존 사이트 오염 방지)
   CSS 변수 접두사: --tgal-
   컬러 톤: 에메랄드 그린(Emerald) + 앰버 골드(Amber)
============================================ */

:root {
    --tgal-emerald: #059669;
    --tgal-emerald-dark: #047857;
    --tgal-emerald-deep: #064e3b;
    --tgal-emerald-light: #ecfdf5;
    --tgal-emerald-border: #6ee7b7;
    --tgal-amber: #d97706;
    --tgal-amber-dark: #b45309;
    --tgal-amber-light: #fffbeb;
    --tgal-amber-border: #fcd34d;
    --tgal-slate-900: #0f172a;
    --tgal-slate-700: #334155;
    --tgal-slate-500: #64748b;
    --tgal-slate-300: #cbd5e1;
    --tgal-slate-200: #e2e8f0;
    --tgal-slate-100: #f1f5f9;
    --tgal-bg: #f7fdf9;
    --tgal-white: #ffffff;
    --tgal-red: #ef4444;
    --tgal-radius: 14px;
}

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

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

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

.tg-alb-wrapper mark {
    background: linear-gradient(120deg, var(--tgal-emerald-light) 0%, #a7f3d0 100%);
    color: #065f46;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ─── 히어로 ─── */
.tg-alb-hero {
    background: linear-gradient(145deg, #064e3b 0%, #047857 30%, #059669 60%, #34d399 100%);
    color: var(--tgal-white);
    padding: 60px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tg-alb-hero::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border: 60px solid rgba(5, 150, 105, 0.06);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.tg-alb-hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border: 40px solid rgba(110, 231, 183, 0.04);
    border-radius: 50%;
    bottom: -60px;
    left: -50px;
}

.tg-alb-hero__floating {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.tg-alb-hero__float-icon {
    position: absolute;
    font-size: 28px;
    opacity: 0.18;
    animation: tg-alb-float 6s ease-in-out infinite;
}

.tg-alb-hero__float-icon i {
    color: rgba(255, 255, 255, 0.9);
}

.tg-alb-hero__float-icon--1 {
    top: 14%;
    left: 8%;
    animation-delay: 0s;
}

.tg-alb-hero__float-icon--2 {
    top: 20%;
    right: 12%;
    animation-delay: 1s;
    font-size: 24px;
}

.tg-alb-hero__float-icon--3 {
    bottom: 22%;
    left: 15%;
    animation-delay: 2s;
}

.tg-alb-hero__float-icon--4 {
    bottom: 16%;
    right: 8%;
    animation-delay: 3s;
    font-size: 22px;
}

.tg-alb-hero__float-icon--5 {
    top: 55%;
    left: 4%;
    animation-delay: 4s;
    font-size: 20px;
}

.tg-alb-hero__float-icon--6 {
    top: 10%;
    right: 30%;
    animation-delay: 5s;
    font-size: 18px;
}

@keyframes tg-alb-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(8deg);
    }
}

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

.tg-alb-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(217, 119, 6, 0.2);
    color: var(--tgal-amber-border);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 22px;
    border: 1px solid rgba(252, 211, 77, 0.25);
    backdrop-filter: blur(4px);
}

.tg-alb-hero__badge i {
    font-size: 16px;
}

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

.tg-alb-hero__desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 620px;
    margin: 0 auto;
}

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

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

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

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

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

.tg-alb-section--accent {
    background: linear-gradient(135deg, var(--tgal-emerald-light) 0%, #a7f3d040 100%);
    border-color: var(--tgal-emerald-border);
}

.tg-alb-section--dark {
    background: linear-gradient(135deg, var(--tgal-slate-900) 0%, #1e293b 100%);
    border-color: var(--tgal-slate-700);
    color: var(--tgal-slate-300);
}

.tg-alb-section--compare {
    background: linear-gradient(135deg, var(--tgal-amber-light) 0%, #fde68a30 50%, #fef3c730 100%);
    border-color: var(--tgal-amber-border);
}

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

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

.tg-alb-section__num--accent {
    opacity: 0.25;
}

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

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

.tg-alb-section__title--light {
    color: var(--tgal-white);
}

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

/* ─── 특징 카드 ─── */
.tg-alb-feature-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.tg-alb-feature-card {
    padding: 22px;
    border-radius: 12px;
    background-color: var(--tgal-white);
    border: 1px solid var(--tgal-emerald-border);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tg-alb-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.1);
}

.tg-alb-feature-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--tgal-emerald) 0%, var(--tgal-emerald-dark) 100%);
    color: var(--tgal-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin: 0 auto 10px;
}

.tg-alb-feature-card__title {
    font-size: 15px;
    font-weight: 800;
    color: var(--tgal-slate-900);
    margin-bottom: 4px;
}

.tg-alb-feature-card__desc {
    font-size: 13px;
    line-height: 1.6;
}

/* ─── 스텝 ─── */
.tg-alb-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tg-alb-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background-color: var(--tgal-white);
    border: 1px solid var(--tgal-slate-200);
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tg-alb-step:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.1);
}

.tg-alb-step__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--tgal-emerald) 0%, var(--tgal-emerald-dark) 100%);
    color: var(--tgal-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.tg-alb-step__body {
    flex: 1;
}

.tg-alb-step__num {
    font-size: 11px;
    font-weight: 800;
    color: var(--tgal-amber);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.tg-alb-step__title {
    font-size: 16px;
    font-weight: 800;
    color: var(--tgal-slate-900);
    margin-bottom: 4px;
}

.tg-alb-step__text {
    font-size: 14px;
    line-height: 1.6;
}

/* ─── 데모: 개별 vs 앨범 ─── */
.tg-alb-demo {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tg-alb-demo__gallery {
    background-color: var(--tgal-white);
    padding: 18px;
    border-radius: 12px;
    border: 1px solid var(--tgal-amber-border);
}

.tg-alb-demo__gallery-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--tgal-slate-700);
    margin-bottom: 10px;
}

.tg-alb-demo__gallery-title i {
    color: var(--tgal-emerald);
    margin-right: 4px;
}

.tg-alb-demo__count {
    color: var(--tgal-amber);
}

.tg-alb-demo__photos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.tg-alb-demo__photo {
    aspect-ratio: 1;
    border-radius: 8px;
    background-color: var(--tgal-slate-100);
    border: 2px solid var(--tgal-slate-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 22px;
    color: var(--tgal-slate-300);
    position: relative;
}

.tg-alb-demo__photo span {
    font-size: 9px;
    font-weight: 600;
    color: var(--tgal-slate-500);
}

.tg-alb-demo__photo:hover {
    border-color: var(--tgal-emerald-border);
    transform: scale(1.04);
}

.tg-alb-demo__photo--selected {
    border-color: var(--tgal-emerald);
    background-color: var(--tgal-emerald-light);
    color: var(--tgal-emerald);
}

.tg-alb-demo__photo--selected::after {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 14px;
    color: var(--tgal-emerald);
}

/* 비교 영역 */
.tg-alb-demo__compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tg-alb-demo__chat {
    background-color: var(--tgal-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--tgal-slate-200);
}

.tg-alb-demo__chat--individual {
    border-color: var(--tgal-red);
}

.tg-alb-demo__chat--album {
    border-color: var(--tgal-emerald);
}

.tg-alb-demo__chat-title {
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.tg-alb-demo__chat--individual .tg-alb-demo__chat-title {
    background-color: #fef2f2;
    color: var(--tgal-red);
}

.tg-alb-demo__chat--album .tg-alb-demo__chat-title {
    background-color: var(--tgal-emerald-light);
    color: var(--tgal-emerald);
}

.tg-alb-demo__messages,
.tg-alb-demo__album-preview {
    padding: 10px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tg-alb-demo__album-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    align-content: start;
}

.tg-alb-demo__empty {
    text-align: center;
    font-size: 11px;
    color: var(--tgal-slate-300);
    padding: 40px 8px;
    grid-column: 1 / -1;
}

/* 개별 메시지 */
.tg-alb-demo__msg {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: tg-alb-msg-in 0.3s ease;
}

@keyframes tg-alb-msg-in {
    from {
        opacity: 0;
        transform: translateX(-6px);
    }

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

.tg-alb-demo__msg i {
    font-size: 12px;
}

/* 앨범 아이템 */
.tg-alb-demo__album-item {
    aspect-ratio: 1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    animation: tg-alb-album-in 0.3s ease;
}

@keyframes tg-alb-album-in {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tg-alb-demo__chat-footer {
    padding: 6px 12px;
    background-color: var(--tgal-slate-100);
    text-align: center;
}

.tg-alb-demo__alert-count {
    font-size: 10px;
    font-weight: 700;
    color: var(--tgal-red);
}

.tg-alb-demo__alert-count--good {
    color: var(--tgal-emerald);
}

.tg-alb-demo__reset {
    width: 100%;
    padding: 10px;
    background-color: var(--tgal-slate-100);
    color: var(--tgal-slate-500);
    border: 1px solid var(--tgal-slate-200);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tg-alb-demo__reset:hover {
    background-color: var(--tgal-slate-200);
    color: var(--tgal-slate-700);
}

/* ─── 모바일 스텝 ─── */
.tg-alb-mobile-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tg-alb-mobile-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 10px;
    background-color: var(--tgal-emerald-light);
    border: 1px solid var(--tgal-emerald-border);
}

.tg-alb-mobile-step__num {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--tgal-emerald) 0%, var(--tgal-emerald-dark) 100%);
    color: var(--tgal-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
}

.tg-alb-mobile-step p {
    font-size: 14px;
    flex: 1;
}

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

.tg-alb-tip {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(110, 231, 183, 0.12);
    padding: 22px;
    border-radius: 10px;
    position: relative;
}

.tg-alb-tip__number {
    position: absolute;
    top: -10px;
    left: 18px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--tgal-amber) 0%, #fbbf24 100%);
    color: var(--tgal-white);
    font-weight: 900;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.tg-alb-tip__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--tgal-white);
    margin-bottom: 8px;
    padding-top: 6px;
}

.tg-alb-tip__title i {
    color: var(--tgal-emerald-border);
    margin-right: 4px;
}

.tg-alb-tip__text {
    font-size: 14px;
    color: var(--tgal-slate-300);
}

.tg-alb-tip__text strong {
    color: var(--tgal-white);
}

/* ─── 결론 ─── */
.tg-alb-summary {
    background: linear-gradient(135deg, #064e3b 0%, #047857 50%, var(--tgal-emerald-dark) 100%);
    color: var(--tgal-white);
    padding: 44px 28px;
    border-radius: var(--tgal-radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(6, 78, 59, 0.4);
}

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

.tg-alb-summary__body p {
    font-size: 16px;
    margin-bottom: 14px;
    color: var(--tgal-emerald-border);
}

.tg-alb-summary strong {
    color: var(--tgal-white);
}

.tg-alb-summary__highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 24px 0;
}

.tg-alb-summary__highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(110, 231, 183, 0.12);
    border-radius: 10px;
}

.tg-alb-summary__highlight-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--tgal-amber) 0%, #fbbf24 100%);
    color: var(--tgal-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.tg-alb-summary__highlight strong {
    font-size: 13px;
    color: var(--tgal-white);
}

.tg-alb-summary__highlight span {
    font-size: 11px;
    color: var(--tgal-emerald-border);
    text-align: center;
}

.tg-alb-summary__checklist {
    list-style: none;
    display: inline-block;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 24px 32px;
    border-radius: 12px;
    margin: 0 0 24px;
}

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

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

.tg-alb-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(--tgal-amber-border);
}

.tg-alb-summary__checklist strong {
    color: var(--tgal-white);
}

.tg-alb-summary__footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
    color: var(--tgal-emerald-border);
    line-height: 1.8;
}

.tg-alb-summary__footer strong {
    color: var(--tgal-white);
}

/* ============================================
   반응형
============================================ */
@media (min-width: 768px) {
    .tg-alb-hero {
        padding: 80px 40px;
    }

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

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

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

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

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

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

    .tg-alb-feature-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .tg-alb-tips {
        grid-template-columns: repeat(3, 1fr);
    }

    .tg-alb-demo__photos {
        grid-template-columns: repeat(4, 1fr);
    }

    .tg-alb-summary__highlights {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

    .tg-alb-demo {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .tg-alb-demo__gallery {
        flex: 1 1 100%;
    }

    .tg-alb-demo__compare {
        flex: 1 1 100%;
    }
}

/* ============================================
   스크롤 등장 애니메이션
============================================ */
.tg-alb-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-alb-motion.is-visible {
    opacity: 1;
    transform: translateY(0);
}