/*
Theme Name: Tokyo Pop
Theme URI: https://tokyopop.eat
Author: Tokyo Pop
Author URI: https://tokyopop.eat
Description: Official WordPress theme for Tokyo Pop – fresh sushi, street vibes. Grab, Love & Eat.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tokyopop
Tags: restaurant, food, one-page, custom-colors, custom-menu, full-width-template
*/

/* =========================================================
   BASE
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0B0F10;
    color: #EDE8DE;
    margin: 0;
    padding: 0;
}

/* =========================================================
   BRAND LOGO "O" ELEMENT
   ========================================================= */
.brand-o {
    display: inline-block;
    position: relative;
    width: 0.8em;
    height: 0.8em;
    border: 3px solid currentColor;
    border-radius: 4px;
    margin: 0 2px;
    vertical-align: middle;
}
.brand-o::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    height: 40%;
    background-color: #EE2A24;
    border-radius: 50%;
}

/* =========================================================
   MENU CARD HOVER — image animation
   Effect choice and :hover transforms are output by the
   Customizer PHP (tokyopop_theme_css). This block only
   provides the shared base: transition + tilt prerequisites.
   ========================================================= */
.menu-card {
    cursor: pointer;
}
.menu-card-img-wrap {
    transition: transform 0.2s ease, box-shadow 0.25s ease;
    will-change: transform;
    transform-style: preserve-3d;
}
/* Guard: the <img> tag itself is never transformed */
.menu-card .card-img {
    transform: none;
}

/* =========================================================
   MARQUEE ANIMATION
   ========================================================= */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
}
.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================================
   PHONE FRAME MOCKUP
   ========================================================= */
.phone-frame {
    border: 8px solid #333;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* ── Phone frame style variants ──────────────────────────────────────── */

/* Modern — thin ring + Dynamic Island pill notch */
.phone-frame.phone-style-modern {
    border: 3px solid #555;
    border-radius: 50px;
    box-shadow: 0 0 0 2px #111, 0 30px 60px rgba(0, 0, 0, 0.75);
}
.phone-frame.phone-style-modern::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 92px;
    height: 26px;
    background: #111;
    border-radius: 14px;
    z-index: 20;
    pointer-events: none;
}

/* Floating — no border, deep layered shadow */
.phone-frame.phone-style-floating {
    border: none;
    border-radius: 44px;
    box-shadow: 0 60px 120px rgba(0, 0, 0, 0.9), 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Noir — chunky matte-black bezel with hard offset shadow */
.phone-frame.phone-style-noir {
    border: 16px solid #0d0d0d;
    border-radius: 28px;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.8), 16px 16px 0 rgba(0, 0, 0, 0.35);
}

/* Glass — paper-thin frosted ring */
.phone-frame.phone-style-glass {
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    border-radius: 46px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8),
                inset 0 1px 0 rgba(255, 255, 255, 0.18),
                inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

/* Outlined — cream glow ring */
.phone-frame.phone-style-outlined {
    border: 2px solid rgba(237, 232, 222, 0.55);
    border-radius: 42px;
    box-shadow: 0 0 0 10px rgba(237, 232, 222, 0.06), 0 24px 48px rgba(0, 0, 0, 0.55);
}

/* =========================================================
   CUSTOM SCROLLBAR
   ========================================================= */
::-webkit-scrollbar         { width: 10px; }
::-webkit-scrollbar-track   { background: #0B0F10; }
::-webkit-scrollbar-thumb   { background: #EE2A24; border-radius: 5px; }

/* =========================================================
   WORDPRESS ADMIN BAR COMPATIBILITY
   The admin bar is position:fixed on desktop (32px tall) and
   position:absolute on mobile ≤782px (46px tall, scrolls with page).
   ========================================================= */
#site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

/* Desktop – nudge nav below the fixed admin bar */
.admin-bar #site-nav {
    top: 32px;
}

/* Mobile ≤782px – admin bar scrolls with the page, so nav stays at top:0 */
@media screen and (max-width: 782px) {
    .admin-bar #site-nav {
        top: 0;
    }
}

/* =========================================================
   WORDPRESS ALIGNMENT HELPERS
   ========================================================= */
img { max-width: 100%; height: auto; }

.alignleft  { float: left;  margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   POSTS PAGINATION (the_posts_pagination)
   ========================================================= */
.nav-links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}
.nav-links a,
.nav-links span.current {
    padding: 0.5rem 1rem;
    border: 2px solid #EE2A24;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 0.375rem;
    transition: background-color .2s, color .2s;
    color: #EDE8DE;
    text-decoration: none;
}
.nav-links a:hover,
.nav-links span.current {
    background-color: #EE2A24;
    color: #fff;
}

/* =========================================================
   POST NAVIGATION (single posts)
   ========================================================= */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #1f2937;
}
.post-navigation a {
    color: #EE2A24;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: color .2s;
}
.post-navigation a:hover { color: #EDE8DE; }

/* =========================================================
   PROSE / EDITOR CONTENT
   ========================================================= */
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: #EDE8DE;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.entry-content a        { color: #EE2A24; }
.entry-content a:hover  { color: #EDE8DE; }
.entry-content p        { line-height: 1.8; margin-bottom: 1.25rem; }
.entry-content ul,
.entry-content ol       { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.entry-content blockquote {
    border-left: 4px solid #EE2A24;
    padding-left: 1rem;
    color: #9ca3af;
    font-style: italic;
    margin: 1.5rem 0;
}

/* =========================================================
   NAV DARK TEXT (for light / cream backgrounds)
   ========================================================= */
#site-nav.nav-text-dark a {
    color: #0B0F10 !important;
}
#site-nav.nav-text-dark a:hover,
#site-nav.nav-text-dark a:focus {
    color: #EE2A24 !important;
}
#site-nav.nav-text-dark button {
    color: #0B0F10 !important;
}
#site-nav.nav-text-dark button:hover {
    color: #374151 !important;
}
/* Keep active / current menu item highlighted */
#site-nav.nav-text-dark .current-menu-item a,
#site-nav.nav-text-dark .current-menu-ancestor a {
    color: #EE2A24 !important;
}
