@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Pirata+One&display=swap');

:root {
    --ocean-abyss: #050b14;
    --ocean-deep: #0a1422;
    --ocean-mid: #102135;
    --ocean-light: #183350;
    --gold-aged: #cca324;
    --gold-glow: #f0c242;
    --gold-dark: #8f6f1c;
    --gold-border: rgba(204, 163, 36, 0.35);
    --cream: #f4f0e6;
    --cream-muted: #a6b4c9;
    --glass-bg: rgba(16, 33, 53, 0.7);
    --glass-border: rgba(204, 163, 36, 0.25);
    --font-pirate: 'Pirata One', cursive;
    --font-body: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--ocean-abyss);
    background: radial-gradient(ellipse at center top, #11253a 0%, #060e18 70%),
                radial-gradient(ellipse at center bottom, #0e1f30 0%, #03070d 80%);
    background-attachment: fixed;
    color: var(--cream);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography Helpers */
.font-pirate { font-family: var(--font-pirate); }
.font-body { font-family: var(--font-body); }
.text-gold { color: var(--gold-glow); }
.text-cream { color: var(--cream); }
.text-cream-muted { color: var(--cream-muted); }

/* Tentacle Artwork Header */
.tentacle-hero-wrapper {
    position: relative;
    width: 100%;
    min-height: 280px;
    overflow: hidden;
    background-color: #060d17;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 40px 16px 24px;
}

.tentacle-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: url('../images/tentacle-top.webp');
    background-size: cover;
    background-position: center top;
    opacity: 0.65;
    pointer-events: none;
}

.tentacle-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(5, 11, 20, 0.2) 0%, rgba(5, 11, 20, 0.95) 100%);
    pointer-events: none;
}

.restaurant-badge-logo {
    position: relative;
    z-index: 5;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid var(--gold-glow);
    box-shadow: 0 0 25px rgba(240, 194, 66, 0.35), 0 8px 24px rgba(0, 0, 0, 0.8);
    object-fit: cover;
    background-color: var(--ocean-deep);
    margin-bottom: 12px;
}

.restaurant-main-title {
    position: relative;
    z-index: 5;
    font-family: var(--font-pirate);
    font-size: 3rem;
    line-height: 1.1;
    letter-spacing: 0.06em;
    margin: 0;
    text-align: center;
    background: linear-gradient(180deg, #fff3c4 0%, #f0c242 50%, #cca324 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

@media (min-width: 768px) {
    .restaurant-main-title { font-size: 4rem; }
    .tentacle-hero-wrapper { min-height: 340px; }
}

.nautical-subtitle-divider {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
}

.nautical-subtitle-divider .line {
    height: 1px;
    width: 60px;
    background: linear-gradient(90deg, transparent, var(--gold-border));
}

.nautical-subtitle-divider .line.right {
    background: linear-gradient(90deg, var(--gold-border), transparent);
}

.nautical-subtitle-divider span {
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--cream-muted);
}

.restaurant-desc {
    position: relative;
    z-index: 5;
    font-size: 0.9rem;
    color: var(--cream-muted);
    max-width: 520px;
    text-align: center;
    margin: 12px auto 0;
    line-height: 1.5;
}

.restaurant-meta-bar {
    position: relative;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.restaurant-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--cream-muted);
    background: rgba(16, 33, 53, 0.6);
    padding: 6px 14px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.restaurant-meta-item i {
    color: var(--gold-glow);
}

.btn-waiter-nautical {
    background: linear-gradient(180deg, rgba(204, 163, 36, 0.25), rgba(143, 111, 28, 0.35));
    border: 1px solid var(--gold-glow);
    color: var(--gold-glow);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-waiter-nautical:hover {
    background: var(--gold-glow);
    color: #060d17;
    box-shadow: 0 0 15px rgba(240, 194, 66, 0.4);
}

/* Sticky Category Navigation */
.kraken-nav-sticky {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(6, 13, 23, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gold-border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

.kraken-nav-scroll {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.kraken-nav-scroll::-webkit-scrollbar {
    display: none;
}

.category-pill {
    flex-shrink: 0;
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none !important;
    color: var(--cream-muted);
    background: rgba(16, 33, 53, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
    cursor: pointer;
}

.category-pill:hover,
.category-pill.active {
    background: linear-gradient(180deg, #f0c242 0%, #cca324 100%);
    color: #060d17 !important;
    font-weight: 700;
    border-color: var(--gold-glow);
    box-shadow: 0 0 18px rgba(240, 194, 66, 0.45);
    transform: translateY(-1px);
}

/* Main Container */
.menu-main-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 24px 16px 120px;
}

/* Glass Card */
.glass-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(16, 33, 53, 0.75), rgba(10, 20, 34, 0.6));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--gold-border);
    border-radius: 1.25rem;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: inset 0 20px 60px rgba(4, 9, 16, 0.6), 0 12px 40px rgba(0, 0, 0, 0.5);
    scroll-margin-top: 80px;
}

.glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(240, 194, 66, 0.5) 50%, transparent 100%);
}

@media (min-width: 768px) {
    .glass-card { padding: 32px; }
}

/* Category Title */
.category-title {
    font-family: var(--font-pirate);
    font-size: 2.25rem;
    line-height: 1.1;
    letter-spacing: 0.05em;
    color: var(--gold-glow);
    text-shadow: 0 2px 4px rgba(4, 9, 16, 0.9), 0 0 35px rgba(204, 163, 36, 0.3);
    text-align: center;
    margin: 0 0 8px;
}

.category-subtitle {
    font-size: 0.85rem;
    color: var(--cream-muted);
    text-align: center;
    margin: 0 0 24px;
    letter-spacing: 0.05em;
}

/* Section Divider with Anchor */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 36px 0;
    gap: 16px;
}

.section-divider::before,
.section-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gold-border) 100%);
}

.section-divider::after {
    background: linear-gradient(90deg, var(--gold-border) 0%, transparent 100%);
}

.section-divider-icon {
    color: var(--gold-glow);
    font-size: 1.25rem;
    opacity: 0.85;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
}

/* Menu Item */
.menu-item-row {
    padding: 16px 0;
    border-bottom: 1px solid rgba(204, 163, 36, 0.12);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: background-color 0.2s ease;
}

.menu-item-row:last-child {
    border-bottom: none;
}

.menu-item-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--gold-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
    .menu-item-thumb { width: 88px; height: 88px; }
}

.menu-item-info {
    flex: 1;
    min-width: 0;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.item-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--cream);
    margin: 0;
}

.item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-glow);
    white-space: nowrap;
    text-shadow: 0 0 12px rgba(240, 194, 66, 0.45);
}

.item-description {
    font-size: 0.85rem;
    color: var(--cream-muted);
    margin: 6px 0 0;
    line-height: 1.45;
    font-weight: 300;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-add-kraken {
    background: linear-gradient(180deg, #f0c242 0%, #cca324 100%);
    color: #060d17 !important;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-add-kraken:hover {
    transform: scale(1.04);
    box-shadow: 0 0 14px rgba(240, 194, 66, 0.5);
}

.badge-dietary {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--cream-muted);
}

/* Floating Bottom Order Bar */
.kraken-bottom-bar {
    position: fixed;
    bottom: 20px;
    left: 16px;
    right: 16px;
    max-width: 600px;
    margin: 0 auto;
    z-index: 9999;
    background: linear-gradient(135deg, rgba(16, 33, 53, 0.95), rgba(6, 13, 23, 0.98));
    border: 1px solid var(--gold-glow);
    border-radius: 9999px;
    padding: 10px 18px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(240, 194, 66, 0.25);
    display: none;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(12px);
}

.kraken-bottom-bar.show {
    display: flex;
}

.kraken-bottom-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kraken-item-count-badge {
    background: var(--gold-glow);
    color: #060d17;
    font-weight: 800;
    font-size: 0.85rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kraken-bottom-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-glow);
}

.btn-view-order {
    background: linear-gradient(180deg, #f0c242 0%, #cca324 100%);
    color: #060d17 !important;
    font-weight: 700;
    border: none;
    border-radius: 9999px;
    padding: 8px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(240, 194, 66, 0.35);
}

/* Modals & Overlays */
.kraken-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.kraken-modal.active {
    display: flex;
}

@media (min-width: 640px) {
    .kraken-modal {
        align-items: center;
        padding: 20px;
    }
}

.kraken-modal-content {
    background: #0d1926;
    border: 1px solid var(--gold-border);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    position: relative;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.9);
}

@media (min-width: 640px) {
    .kraken-modal-content {
        border-radius: 20px;
    }
}

.kraken-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(204, 163, 36, 0.2);
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.kraken-modal-title {
    font-family: var(--font-pirate);
    font-size: 1.8rem;
    color: var(--gold-glow);
    margin: 0;
}

.btn-close-modal {
    background: none;
    border: none;
    color: var(--cream-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Form Controls in Modal */
.kraken-form-control {
    width: 100%;
    background: rgba(16, 33, 53, 0.7);
    border: 1px solid var(--gold-border);
    color: var(--cream);
    padding: 10px 14px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.kraken-form-control:focus {
    outline: none;
    border-color: var(--gold-glow);
    box-shadow: 0 0 10px rgba(240, 194, 66, 0.3);
}

/* Quantity Stepper */
.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--gold-border);
    border-radius: 8px;
    background: rgba(16, 33, 53, 0.6);
}

.qty-btn {
    background: none;
    border: none;
    color: var(--gold-glow);
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-num {
    width: 36px;
    text-align: center;
    font-weight: 700;
    color: var(--cream);
}

/* Footer with Tentacle Bottom */
.tentacle-footer-wrapper {
    position: relative;
    width: 100%;
    margin-top: 40px;
    text-align: center;
    padding-bottom: 40px;
}

.tentacle-footer-img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    object-position: top;
    opacity: 0.55;
    pointer-events: none;
    mask-image: linear-gradient(to top, transparent 0%, black 20%, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, transparent 0%, black 20%, black 70%, transparent 100%);
}

.tentacle-footer-text {
    position: relative;
    z-index: 5;
    font-size: 0.8rem;
    color: var(--cream-muted);
    margin-top: -30px;
}
