/**
 * Footer Styles — v42.1 (Compact warm-dark footer)
 *
 * Space-efficient: tight grid, inline brand, compressed nav.
 * Palette: warm dark (#181610), gold (#FFB700).
 */

/* ========================================
   BASE
   ======================================== */
.t2w-footer {
    background: #181610;
    color: rgba(255, 255, 255, 0.7);
    margin-top: auto;
    position: relative;
    font-family: 'Noto Sans KR', -apple-system, sans-serif;
}

.t2w-footer__accent {
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary) 0%, #F59E0B 40%, transparent 100%);
}

.t2w-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 36px 24px 0;
}

/* ========================================
   GRID — 4 columns, tight
   ======================================== */
.t2w-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ========================================
   COLUMN 1: BRAND — compact inline
   ======================================== */
.t2w-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-height: 0;
    margin-bottom: 8px;
    border-radius: 8px;
    transition: opacity 0.2s;
}

.t2w-footer__logo:hover { opacity: 0.85; }

.t2w-footer__logo:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

.t2w-footer__logo .material-symbols-outlined {
    font-size: 24px;
    color: var(--color-primary);
}

.t2w-footer__logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}

.t2w-footer__tagline {
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 14px;
}

/* Social icons — smaller */
.t2w-footer__social {
    display: flex;
    gap: 8px;
}

.t2w-footer__social-btn {
    width: 34px;
    height: 34px;
    min-height: 0;
    min-width: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.t2w-footer__social-btn svg {
    width: 16px;
    height: 16px;
}

.t2w-footer__social-btn:hover {
    transform: translateY(-2px);
    border-color: transparent;
}

.t2w-footer__social-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.t2w-footer__social-btn--ig:hover {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.3);
}

.t2w-footer__social-btn--yt:hover {
    background: #FF0000;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.25);
}

.t2w-footer__social-btn--blog:hover {
    background: #03C75A;
    color: #fff;
    box-shadow: 0 4px 12px rgba(3, 199, 90, 0.25);
}

/* ========================================
   COLUMNS 2-4: NAV + SETTINGS — tight
   ======================================== */
.t2w-footer__heading {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.t2w-footer__nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.t2w-footer__nav a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    cursor: pointer;
    padding: 2px 0;
    min-height: 0;
    line-height: 1.4;
    transition: color 0.2s, padding-left 0.2s;
}

.t2w-footer__nav a:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

.t2w-footer__nav a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========================================
   COLUMN 4: SELECTS — inline row
   ======================================== */
.t2w-footer__settings {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.t2w-footer__select-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.t2w-footer__select-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    cursor: default;
}

.t2w-footer__select-label .material-symbols-outlined {
    font-size: 14px;
}

.t2w-footer__select {
    width: 100%;
    padding: 7px 28px 7px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-family: inherit;
    min-height: 0;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.t2w-footer__select:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.t2w-footer__select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 183, 0, 0.15);
}

.t2w-footer__select option {
    background: #181610;
    color: #fff;
}

/* ========================================
   BOTTOM BAR
   ======================================== */
.t2w-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.t2w-footer__made {
    white-space: nowrap;
}

/* ========================================
   RESPONSIVE — TABLET (≤ 1024px)
   ======================================== */
@media (max-width: 1024px) {
    .t2w-footer__inner {
        padding: 28px 20px 0;
    }

    .t2w-footer__grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 24px;
    }

    .t2w-footer__brand {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        gap: 20px;
        flex-wrap: wrap;
    }

    .t2w-footer__logo { margin-bottom: 0; }
    .t2w-footer__tagline { margin: 0; }
    .t2w-footer__social { margin-left: auto; }
}

/* ========================================
   RESPONSIVE — MOBILE (≤ 768px)
   ======================================== */
@media (max-width: 768px) {
    .t2w-footer__inner {
        padding: 24px 16px 0;
    }

    .t2w-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding-bottom: 20px;
    }

    /* Brand: centered, compact */
    .t2w-footer__brand {
        grid-column: 1 / -1;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        text-align: center;
    }

    .t2w-footer__tagline {
        font-size: 12px;
        margin: 0 0 4px;
    }

    .t2w-footer__social { margin-left: 0; }

    /* Settings: 2 selects side by side */
    .t2w-footer__settings {
        flex-direction: row;
        gap: 8px;
    }

    .t2w-footer__select-wrap {
        flex: 1;
    }

    .t2w-footer__heading {
        margin-bottom: 8px;
        font-size: 11px;
    }

    .t2w-footer__nav { gap: 4px; }

    .t2w-footer__nav a {
        font-size: 12px;
        padding: 1px 0;
    }

    .t2w-footer__nav a:hover { padding-left: 0; }

    .t2w-footer__bottom {
        flex-direction: column;
        gap: 4px;
        text-align: center;
        padding: 12px 0;
        font-size: 10px;
    }

    /* Add bottom padding for bottom nav */
    .t2w-footer {
        padding-bottom: 66px;
    }
}

/* ═══ Mobile Bottom Navigation Bar — 5 tabs + FAB ═══ */
.t2w-bottom-nav {
    display: none;
}
@media (max-width: 768px) {
    .t2w-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid rgba(229, 231, 235, 0.5);
        height: 72px;
        padding-bottom: env(safe-area-inset-bottom, 20px);
        padding-top: 8px;
        z-index: 900;
        justify-content: space-around;
        align-items: flex-start;
    }
    .t2w-bottom-nav__tab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        cursor: pointer;
        text-decoration: none;
        color: #9CA3AF;
        position: relative;
        transition: color 0.3s;
    }
    .t2w-bottom-nav__tab .material-symbols-outlined {
        font-size: 24px;
        font-variation-settings: 'FILL' 0;
        transition: all 0.3s;
    }
    .t2w-bottom-nav__label {
        font-size: 10px;
        font-weight: 600;
    }
    .t2w-bottom-nav__tab--active {
        color: #FFB700;
    }
    .t2w-bottom-nav__tab--active .material-symbols-outlined {
        font-variation-settings: 'FILL' 1;
    }

    /* Planner FAB */
    .t2w-bottom-nav__tab--fab {
        position: relative;
    }
    .t2w-bottom-nav__fab {
        background: #FFB700;
        color: #fff;
        width: 50px;
        height: 50px;
        border-radius: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: -30px;
        left: 50%;
        transform: translateX(-50%);
        box-shadow: 0 6px 16px rgba(255, 183, 0, 0.4);
        transition: transform 0.3s;
    }
    .t2w-bottom-nav__fab .material-symbols-outlined {
        font-size: 24px;
        color: #fff;
        font-variation-settings: 'FILL' 1;
    }
    .t2w-bottom-nav__tab--fab:active .t2w-bottom-nav__fab {
        transform: translateX(-50%) scale(0.95);
    }
    .t2w-bottom-nav__tab--fab .t2w-bottom-nav__label {
        margin-top: 24px;
    }

    /* body padding for nav */
    body { padding-bottom: 72px; }
}
