/**
 * Enliko Platform — Unified Brand Component
 * Consistent logo, back-navigation, and page header across all pages
 * Include AFTER base.css
 */

/* ===== ENLIKO "E" SVG LOGO ICON ===== */
.logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

/* ===== HERO BRAND LOGO ===== */
.hero-brand-logo {
    margin-bottom: 24px;
}
.hero-brand-logo img {
    max-width: 280px;
    height: auto;
}
@media (max-width: 768px) {
    .hero-brand-logo img {
        max-width: 200px;
    }
}

/* ===== LOGO LINK ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary, #fff);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.logo:hover {
    color: var(--text-primary, #fff);
}

.logo-text, .logo span {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary, #fff);
}

/* ===== PAGE BACK HEADER (for secondary pages without bottom nav) ===== */
.page-back-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-back-header .back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary, #9CA3AF);
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.page-back-header .back-btn:hover {
    background: rgba(124, 58, 237, 0.15);
    color: #7C3AED;
}

.page-back-header .back-btn i {
    font-size: 16px;
}

.page-back-header .logo {
    font-size: 16px;
}

.page-back-header .logo-icon {
    width: 28px;
    height: 28px;
}

.page-back-header .page-title {
    margin-left: auto;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted, #6B7280);
}

/* ===== FAVICON META BLOCK (reference for templates) ===== */
/* Include in <head>:
   <link rel="icon" type="image/svg+xml" href="/static/images/favicon.svg">
   <link rel="icon" type="image/png" sizes="180x180" href="/static/images/apple-touch-icon.png">
   <link rel="apple-touch-icon" href="/static/images/apple-touch-icon.png">
*/

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    .page-back-header {
        padding: 10px 12px;
        padding-top: max(10px, env(safe-area-inset-top));
    }
    
    .page-back-header .back-btn {
        width: 32px;
        height: 32px;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
}
