/* =============================================
   NOBRE PIZZA DELIVERY - Link in Bio
   Design System & Styles
   ============================================= */

/* --- CSS Variables --- */
:root {
    --red: #d9242a;
    --red-dark: #b01e23;
    --red-glow: rgba(217, 36, 42, 0.4);
    --yellow: #ede937;
    --yellow-dark: #d4d030;
    --yellow-glow: rgba(237, 233, 55, 0.3);
    --bg: #1d1d1b;
    --bg-card: rgba(255, 255, 255, 0.06);
    --bg-card-hover: rgba(255, 255, 255, 0.1);
    --white: #ffffff;
    --white-soft: rgba(255, 255, 255, 0.85);
    --white-muted: rgba(255, 255, 255, 0.5);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    --shadow-glow-red: 0 0 30px rgba(217, 36, 42, 0.3);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Video Background --- */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%) scale(1.1);
    object-fit: cover;
    filter: blur(2px) brightness(0.55) saturate(0.8);
    will-change: transform;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, rgba(29, 29, 27, 0.25) 0%, rgba(29, 29, 27, 0.45) 70%, rgba(29, 29, 27, 0.75) 100%),
        linear-gradient(180deg, rgba(29, 29, 27, 0.5) 0%, transparent 30%, transparent 70%, rgba(29, 29, 27, 0.7) 100%);
}

/* --- Main Container --- */
.container {
    position: relative;
    z-index: 1;
    max-width: 440px;
    margin: 0 auto;
    padding: 40px 20px 32px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Header --- */
.header {
    text-align: center;
    margin-bottom: 24px;
    animation: fadeInDown 0.8s ease-out;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--red);
    box-shadow: var(--shadow-glow-red);
    transition: var(--transition-smooth);
}

.logo:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 0 40px rgba(217, 36, 42, 0.5);
}

.logo-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--red), var(--yellow), var(--red));
    z-index: -1;
    opacity: 0.4;
    filter: blur(12px);
    animation: rotateGlow 6s linear infinite;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.brand-name {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--white) 0%, var(--white-soft) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.brand-location {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--white-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.location-icon {
    font-size: 0.9rem;
}

/* --- Brand Hours --- */
.brand-hours {
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--yellow);
    font-weight: 500;
    letter-spacing: 0.02em;
    animation: fadeInUp 0.6s ease-out 0.15s both;
}

/* --- Links Section --- */
.links-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

/* --- Link Buttons --- */
.link-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 20px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--white);
    transition: all var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.link-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.03) 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.link-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.link-btn:hover::before {
    opacity: 1;
}

.link-btn:active {
    transform: translateY(0);
}

/* Primary button (iFood - Red) */
.link-btn-ifood,
.link-btn-primary {
    background: linear-gradient(135deg, #ea1d2c 0%, #b8121f 100%);
    border-color: rgba(234, 29, 44, 0.5);
    box-shadow: 0 0 30px rgba(234, 29, 44, 0.35);
}

.link-btn-ifood:hover,
.link-btn-primary:hover {
    background: linear-gradient(135deg, #ff2a3a 0%, #ea1d2c 100%);
    border-color: rgba(234, 29, 44, 0.8);
    box-shadow: 0 0 40px rgba(234, 29, 44, 0.5), var(--shadow-md);
    transform: translateY(-3px);
}

.link-btn-ifood .link-btn-subtitle,
.link-btn-primary .link-btn-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.link-btn-ifood .link-btn-icon,
.link-btn-primary .link-btn-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* 99Food button (Yellow) */
.link-btn-99food {
    background: linear-gradient(135deg, #ede937 0%, #d8d428 100%);
    border-color: rgba(237, 233, 55, 0.6);
    color: #1d1d1b;
    box-shadow: 0 0 25px rgba(237, 233, 55, 0.25);
}

.link-btn-99food:hover {
    background: linear-gradient(135deg, #fff94d 0%, #ede937 100%);
    border-color: rgba(237, 233, 55, 0.9);
    box-shadow: 0 0 35px rgba(237, 233, 55, 0.4), var(--shadow-md);
    transform: translateY(-3px);
}

.link-btn-99food .link-btn-title {
    color: #1d1d1b;
    font-weight: 700;
}

.link-btn-99food .link-btn-subtitle {
    color: rgba(29, 29, 27, 0.8);
    font-weight: 500;
}

.link-btn-99food .link-btn-icon {
    background: rgba(29, 29, 27, 0.12);
    color: #1d1d1b;
}

.link-btn-99food .link-btn-arrow {
    color: #1d1d1b;
}

.link-btn-99food:hover .link-btn-arrow {
    color: #000000;
}

/* Link button icons */
.link-btn-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.link-btn:hover .link-btn-icon {
    transform: scale(1.05);
}

.link-icon-site {
    background: rgba(217, 36, 42, 0.15) !important;
    color: #d9242a !important;
}

.link-btn-ifood .link-icon-ifood,
.link-btn-primary .link-icon-ifood {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.link-icon-whatsapp {
    background: rgba(37, 211, 102, 0.15) !important;
    color: #25d366;
}

.link-icon-maps {
    background: rgba(66, 133, 244, 0.15) !important;
    color: #4285f4;
}

.link-icon-instagram {
    background: linear-gradient(135deg, rgba(131, 58, 180, 0.15), rgba(253, 29, 29, 0.15), rgba(252, 176, 69, 0.15)) !important;
    color: #e1306c;
}

/* Link button content */
.link-btn-content {
    flex: 1;
    min-width: 0;
}

.link-btn-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.link-btn-subtitle {
    display: block;
    font-size: 0.75rem;
    color: var(--white-muted);
    margin-top: 2px;
    line-height: 1.3;
}

.link-btn-primary .link-btn-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.link-btn-arrow {
    flex-shrink: 0;
    color: var(--white-muted);
    transition: var(--transition-smooth);
}

.link-btn:hover .link-btn-arrow {
    color: var(--white);
    transform: translateX(3px);
}

/* --- Map Section --- */
.map-section {
    width: 100%;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.map-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white-soft);
    margin-bottom: 12px;
    text-align: center;
}

.map-container {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 220px;
    filter: brightness(0.85) contrast(1.1);
    transition: filter var(--transition-smooth);
}

.map-container:hover iframe {
    filter: brightness(1) contrast(1);
}

/* --- Social Icons --- */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
    margin-bottom: 4px;
    animation: fadeInUp 0.6s ease-out 0.25s both;
}

.social-icon-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    color: var(--white);
    text-decoration: none;
    transition: all var(--transition-smooth);
}

.social-icon-btn:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.social-whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.4);
    color: #25d366;
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.25);
}

.social-instagram:hover {
    background: linear-gradient(135deg, rgba(131, 58, 180, 0.2), rgba(253, 29, 29, 0.2), rgba(252, 176, 69, 0.2));
    border-color: rgba(225, 48, 108, 0.4);
    color: #e1306c;
    box-shadow: 0 0 25px rgba(225, 48, 108, 0.25);
}

/* --- Footer --- */
.footer {
    margin-top: auto;
    padding-top: 20px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.footer-text {
    font-size: 0.78rem;
    color: var(--white-muted);
    font-weight: 500;
}

.footer-subtitle {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 4px;
}

/* --- Animations --- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger link button animations */
.links-section .link-btn:nth-child(1) { animation: fadeInUp 0.6s ease-out 0.3s both; }
.links-section .link-btn:nth-child(2) { animation: fadeInUp 0.6s ease-out 0.4s both; }
.links-section .link-btn:nth-child(3) { animation: fadeInUp 0.6s ease-out 0.5s both; }

/* --- Responsive --- */
@media (max-width: 480px) {
    .container {
        padding: 32px 16px 24px;
    }

    .logo {
        width: 88px;
        height: 88px;
    }

    .brand-name {
        font-size: 1.4rem;
    }

    .link-btn {
        padding: 14px 16px;
        gap: 12px;
    }

    .link-btn-icon {
        width: 38px;
        height: 38px;
    }

    .link-btn-title {
        font-size: 0.88rem;
    }
}

@media (min-width: 768px) {
    .container {
        padding-top: 60px;
    }

    .logo {
        width: 110px;
        height: 110px;
    }

    .brand-name {
        font-size: 1.8rem;
    }
}

/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .video-bg video {
        display: none;
    }

    .logo-glow {
        animation: none;
    }
}

/* Focus styles for keyboard navigation */
.link-btn:focus-visible,
.social-icon-btn:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
}
