/* css/layout.css - Layouts Estruturais e Shell ViziM */

/* === Top Header / Navbar (Apple Liquid Glass) === */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: 
        background 0.25s ease,
        padding 0.2s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

/* Liquid Glass State ao Rolar a Página (Apple Frosted Glass) */
.app-header.scrolled,
.app-header.solid {
    position: fixed;
    background: rgba(255, 255, 255, 0.76) !important;
    backdrop-filter: blur(24px) saturate(190%) contrast(100%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(190%) contrast(100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6) !important;
    padding: 13px 0 !important;
    box-shadow: 
        0 10px 30px -10px rgba(15, 23, 42, 0.08),
        0 1px 3px rgba(15, 23, 42, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

[data-theme="light"] .app-header.scrolled .logo,
[data-theme="light"] .app-header.scrolled .nav-links a,
[data-theme="light"] .app-header.scrolled .nav-icon-btn,
[data-theme="light"] .app-header.scrolled .login-link {
    color: var(--taki-text);
}

.app-header.light-solid {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(24px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85) !important;
    padding: 14px 0;
    box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .app-header.scrolled,
[data-theme="dark"] .app-header.solid {
    background: rgba(15, 23, 42, 0.78) !important;
    backdrop-filter: blur(24px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .app-header.light-solid {
    background: rgba(15, 23, 42, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Botão Alternador de Tema Desativado (Apenas Modo Claro) */
.btn-theme-toggle,
.btn-theme-toggle-modern {
    display: none !important;
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand Logo Oficial */
.logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    height: 48px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-brand-img {
    height: 48px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    display: block;
    transition: 
        opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Header Transparente da Home (fundo hero escuro com mais destaque) */
.app-header:not(.scrolled):not(.solid):not(.light-solid) .logo-brand-img {
    height: 54px;
    max-width: 270px;
}

/* Suporte aos seletores de logo de tema */
.logo-light-mode {
    display: block !important;
}
.logo-dark-mode {
    display: none !important;
}

[data-theme="dark"] .logo-light-mode {
    display: none !important;
}
[data-theme="dark"] .logo-dark-mode {
    display: block !important;
}

/* Header Transparente da Home (fundo hero escuro) */
.app-header:not(.scrolled):not(.solid):not(.light-solid) .logo-brand-img.logo-hero-nav {
    display: block !important;
    opacity: 1;
    transform: scale(1);
}
.app-header:not(.scrolled):not(.solid):not(.light-solid) .logo-brand-img.logo-scrolled-nav {
    display: none !important;
    opacity: 0;
}

/* Header Scrolled ou Light Solid */
.app-header.scrolled .logo-brand-img.logo-hero-nav,
.app-header.light-solid .logo-brand-img.logo-hero-nav {
    display: none !important;
    opacity: 0;
}
.app-header.scrolled .logo-brand-img.logo-scrolled-nav,
.app-header.light-solid .logo-brand-img.logo-scrolled-nav {
    display: block !important;
    opacity: 1;
    transform: scale(1);
    height: 44px;
}

/* Modo Escuro */
[data-theme="dark"] .logo-brand-img.logo-scrolled-nav {
    display: none !important;
}
[data-theme="dark"] .logo-brand-img.logo-hero-nav {
    display: block !important;
}

/* Nav Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14.5px;
    font-weight: 500;
    opacity: 0.92;
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.light-solid .nav-links a,
.app-header.scrolled .nav-links a {
    color: var(--taki-text) !important;
    opacity: 0.88;
    text-shadow: none;
}

.nav-links a:hover,
.nav-links a.active,
.light-solid .nav-links a:hover,
.app-header.scrolled .nav-links a:hover {
    opacity: 1;
    color: var(--taki-yellow-pressed) !important;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-icon-btn,
a.nav-icon-btn {
    background: none;
    border: none;
    color: #ffffff !important;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.92;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s, transform 0.2s ease;
    text-decoration: none !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-icon-btn:hover,
a.nav-icon-btn:hover {
    transform: scale(1.08);
}

.light-solid .nav-icon-btn,
.app-header.scrolled .nav-icon-btn {
    color: var(--taki-text) !important;
    text-shadow: none;
}

.nav-icon-btn:hover,
a.nav-icon-btn:hover {
    opacity: 1;
    color: var(--taki-yellow-pressed) !important;
}

.login-link,
a.login-link {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.95;
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.light-solid .login-link,
.app-header.scrolled .login-link {
    color: var(--taki-text) !important;
    text-shadow: none;
}

.login-link:hover,
a.login-link:hover {
    opacity: 1;
    color: var(--taki-yellow-pressed) !important;
}

.nav-cta-btn,
a.nav-cta-btn {
    background-color: var(--taki-yellow) !important;
    color: #111827 !important;
    font-weight: 700 !important;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: var(--r-pill);
    text-decoration: none !important;
    transition: background-color 0.25s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
    box-shadow: 0 4px 14px rgba(255, 184, 28, 0.3);
    display: inline-flex;
    align-items: center;
    border: none;
    cursor: pointer;
}

.nav-cta-btn:hover,
a.nav-cta-btn:hover {
    background-color: var(--taki-yellow-hover) !important;
    transform: translateY(-1.5px) scale(1.02);
    box-shadow: 0 8px 24px rgba(255, 184, 28, 0.45);
}

/* Container Utilities */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-small {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Footer === */
.footer {
    background-color: var(--taki-ink);
    color: #ffffff;
    padding: 72px 0 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.8fr;
    gap: 48px;
    margin-bottom: 56px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--taki-muted);
    font-size: 14px;
    line-height: 1.6;
    max-width: 320px;
}

.footer-links h4 {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.footer-links a {
    color: var(--taki-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--taki-yellow);
}

.footer-app h4 {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
}

.app-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.app-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r-sm);
    padding: 8px 16px;
    text-decoration: none;
    color: #ffffff;
    transition: background 0.2s, border-color 0.2s;
}

.app-badge-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.app-badge-btn i {
    font-size: 24px;
}

.app-badge-btn div {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.app-badge-btn span {
    font-size: 10px;
    opacity: 0.7;
    text-transform: uppercase;
}

.app-badge-btn strong {
    font-size: 13px;
    font-weight: 600;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.social-circle:hover {
    background: var(--taki-yellow);
    color: var(--taki-ink);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    color: var(--taki-muted);
}

.footer-tagline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-tagline span {
    color: var(--taki-yellow);
}

/* Explore Page Navbar */
.explore-nav-container {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    padding: 0 24px;
}

.explore-search {
    flex: 1;
    max-width: 480px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--taki-bg);
    border: 1px solid var(--taki-border);
    padding: 10px 18px;
    border-radius: var(--r-pill);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.explore-search:focus-within {
    border-color: var(--taki-yellow);
    box-shadow: 0 0 0 3px rgba(255, 184, 28, 0.15);
}

.explore-search i {
    color: var(--taki-muted);
    font-size: 18px;
}

.explore-search input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--taki-text);
}

.explore-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-left: auto;
    color: var(--taki-text);
}

.explore-location select {
    border: 1px solid var(--taki-border);
    outline: none;
    background: var(--taki-bg);
    color: var(--taki-text);
    padding: 6px 12px;
    border-radius: var(--r-sm);
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    font-size: 13.5px;
}

/* === Bottom Tab Bar (Mobile) === */
.mobile-tab-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--taki-surface);
    border-top: 1px solid var(--taki-border);
    padding: 8px 16px 12px;
    z-index: 2000;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    justify-content: space-around;
}

.tab-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--taki-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    transition: color 0.2s;
}

.tab-link i {
    font-size: 22px;
}

.tab-link.active,
.tab-link:hover {
    color: var(--taki-yellow-pressed);
}
