/* ===========================================
   PUBLIC PAGES — Shared Styles
   (navbar, footer, design tokens, base reset)
   =========================================== */

:root {
    --pink: #ff99c2;
    --pink-hover: #f085b3;
    --purple: #937cb3;
    --purple-dark: #6e5b7b;
    --light-pink: #f5d3dd;
    --bg-warm: #fff9f9;
    --bg-blush: #fff0f5;
    --bg-cream: rgba(255, 249, 245, 0.7);
    --shadow-pink: rgba(237, 123, 171, 0.2);
    --shadow-pink-subtle: rgba(237, 123, 171, 0.1);
    --font: 'Shantell Sans', cursive;
}

/* === Reset === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--purple);
    line-height: 1.6;
    background: linear-gradient(135deg, var(--bg-warm) 0%, #ffffff 50%, var(--bg-blush) 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--pink);
}

img {
    max-width: 100%;
    height: auto;
}

/* === Navbar === */
.public-navbar {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px var(--shadow-pink-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-logo {
    flex-shrink: 0;
}

.navbar-logo img {
    height: 33px;
    width: auto;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
    margin-right: 32px;
}

.navbar-link {
    font-size: 14px;
    font-weight: 400;
    color: var(--purple);
    white-space: nowrap;
    position: relative;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--pink);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.navbar-link:hover::after,
.navbar-link.active::after {
    width: 100%;
}

.navbar-link.active {
    font-weight: 600;
    color: var(--pink);
}

.navbar-avatar {
    flex-shrink: 0;
}

.navbar-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.navbar-avatar:hover img {
    opacity: 0.7;
}

/* Hamburger */
.navbar-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
    margin-right: 16px;
}

.navbar-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--purple);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.navbar-hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* === Main === */
.public-main {
    min-height: calc(100vh - 60px - 300px);
}

/* === Footer === */
.public-footer {
    background: white;
    border-top: 1px solid rgba(237, 123, 171, 0.1);
    margin-top: 80px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.footer-brand-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--pink);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--purple);
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 14px;
    font-weight: 400;
    color: var(--purple);
}

.footer-col a:hover {
    color: var(--pink);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid rgba(237, 123, 171, 0.1);
}

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

.footer-social span {
    font-size: 14px;
    color: var(--purple);
}

.footer-social img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.footer-social a:hover img {
    transform: scale(1.15);
}

.footer-copyright {
    font-size: 14px;
    color: #afb5c0;
}

/* === Gradient text utility === */
.gradient-text {
    background: linear-gradient(
        90deg,
        rgba(255, 153, 194, 1) 9%,
        rgba(254, 232, 216, 1) 34%,
        rgba(205, 192, 217, 1) 53%,
        rgba(147, 124, 179, 1) 69%,
        rgba(255, 153, 194, 1) 89%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* === Responsive: Tablet === */
@media (max-width: 768px) {
    .navbar-hamburger {
        display: flex;
    }

    .navbar-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        margin: 0;
        background: white;
        box-shadow: 0 8px 24px var(--shadow-pink);
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
    }

    .navbar-links.open {
        display: flex;
    }

    .navbar-link {
        padding: 14px 24px;
        font-size: 16px;
        border-bottom: 1px solid rgba(237, 123, 171, 0.08);
    }

    .navbar-link::after {
        display: none;
    }

    .navbar-link:last-child {
        border-bottom: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .public-footer {
        margin-top: 48px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .public-navbar {
        padding: 10px 16px;
    }
}
