/* ============================================================
   LAYOUT.CSS — Platform chrome: global header + global footer
   (Merged from header.css + footer.css for simpler maintenance)
   ============================================================ */


/* ════════════════════════════════════════════════════════════
   PLATFORM HEADER  (.pub-header)
   ════════════════════════════════════════════════════════════ */

.pub-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background var(--transition);
}

.pub-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 68px;
}

/* ── Logo ──────────────────────────────────────────────────── */
.pub-header__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    text-decoration: none;
}

.pub-header__logo-mark {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.05em;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.pub-header__logo-img {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.pub-header__logo-text {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.pub-header__logo-text span {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.03em;
}

/* ── Nav ───────────────────────────────────────────────────── */
.pub-header__nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pub-header__nav-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.pub-header__nav-link:hover,
.pub-header__nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

/* ── Actions ───────────────────────────────────────────────── */
.pub-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* ── Mobile toggle ─────────────────────────────────────────── */
.pub-header__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.pub-header__toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.pub-header__toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.pub-header__toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.pub-header__toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile drawer ─────────────────────────────────────────── */
.pub-header__mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem var(--container-pad);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(15, 23, 42, 0.98);
}

.pub-header__mobile-nav.is-open {
    display: flex;
}

.pub-header__mobile-nav .pub-header__nav-link {
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.pub-header__mobile-nav .pub-header__actions {
    padding-top: 0.75rem;
    flex-direction: column;
    align-items: stretch;
}

.pub-header__mobile-nav .btn {
    justify-content: center;
}


/* ════════════════════════════════════════════════════════════
   PLATFORM FOOTER  (.pub-footer)
   ════════════════════════════════════════════════════════════ */

.pub-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.75);
    padding-top: 4rem;
}

.pub-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Brand column ──────────────────────────────────────────── */
.pub-footer__brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    text-decoration: none;
}

.pub-footer__brand-mark {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--white);
    flex-shrink: 0;
}

.pub-footer__brand-img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.pub-footer__brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
}

.pub-footer__brand-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
    max-width: 280px;
    margin-bottom: 1.5rem;
}

.pub-footer__social {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.pub-footer__social-link {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.pub-footer__social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ── Column ────────────────────────────────────────────────── */
.pub-footer__col-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.pub-footer__col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
}

.pub-footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pub-footer__link {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

.pub-footer__link:hover {
    color: var(--white);
}

.pub-footer__link::before {
    content: '›';
    color: var(--primary);
    font-weight: 700;
}

/* ── Working hours ─────────────────────────────────────────── */
.pub-footer__hours {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pub-footer__hour-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pub-footer__hour-row:last-child {
    border-bottom: none;
}

.pub-footer__hour-label {
    color: rgba(255, 255, 255, 0.55);
}

.pub-footer__hour-value {
    color: var(--white);
    font-weight: 500;
}

/* ── Contact info ──────────────────────────────────────────── */
.pub-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pub-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
}

.pub-footer__contact-icon {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* ── Bottom bar ────────────────────────────────────────────── */
.pub-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-block: 1.25rem;
}

.pub-footer__copyright {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

.pub-footer__legal-links {
    display: flex;
    gap: 1.25rem;
}

.pub-footer__legal-links a {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.pub-footer__legal-links a:hover {
    color: rgba(255, 255, 255, 0.75);
}
