/**
 * SquidlyDigital - Theme Stylesheet (Inspired by oses.com.tr)
 */

:root {
    --brand-green: #77a60a;
    --brand-green-hover: #638c08;
    --brand-red: #c0262d;
    --brand-red-hover: #a11e24;
    --brand-dark: #1e2229;
    --brand-gray-light: #f6f7f9;
    --brand-border: #e2e8f0;
    --text-primary: #2d3748;
    --text-muted: #718096;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    color: var(--brand-green);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--brand-green-hover);
    text-decoration: none;
}

/* -------------------------------------------------------------
   Top Bar (.account)
   ------------------------------------------------------------- */
.account-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
    padding: 6px 0;
    font-size: 0.85rem;
    color: #555;
}

.account-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-bar a {
    color: #444;
    font-weight: 500;
}

.account-bar a:hover {
    color: var(--brand-red);
}

.hotline-item {
    margin-right: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.hotline-item i {
    color: var(--brand-red);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pos-btn-link {
    background: #e2e8f0;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2d3748 !important;
}

.pos-btn-link:hover {
    background: var(--brand-red);
    color: #fff !important;
}

/* -------------------------------------------------------------
   Sticky Header & Navbar
   ------------------------------------------------------------- */
header.sticky-top {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-red);
    letter-spacing: -0.5px;
    text-decoration: none;
}

.navbar-brand img,
.navbar-logo {
    max-height: 48px;
    height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Accessibility helper for screen readers */
.visually-hidden,
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 1.25rem;
}

.nav-item .nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2b2b2b;
    padding: 0.5rem 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-item .nav-link:hover,
.nav-item .nav-link.active {
    color: var(--brand-green);
}

.nav-item .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-green);
    border-radius: 2px;
}

.nav-btn-order {
    background: var(--brand-green);
    color: #fff !important;
    padding: 8px 18px !important;
    border-radius: 25px;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(119, 166, 10, 0.25);
}

.nav-btn-order:hover {
    background: var(--brand-green-hover);
    transform: translateY(-1px);
}

/* Mobile Toggle */
.navbar-toggler {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.4rem;
    color: #333;
    cursor: pointer;
    padding: 4px 8px;
}

/* -------------------------------------------------------------
   Hero Promo Slider
   ------------------------------------------------------------- */
.hero-slider-wrapper {
    position: relative;
    background: #111;
    overflow: hidden;
    width: 100%;
}

.hero-slider {
    position: relative;
    min-height: 440px;
    display: flex;
    align-items: center;
}

.slide-item {
    display: none;
    width: 100%;
    min-height: 440px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.slide-item.active {
    display: flex;
    align-items: center;
}

.slide-item::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.1) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 650px;
    padding: 3rem 1.5rem;
}

.slide-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.slide-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1.75rem;
    color: #e2e8f0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.slider-btn {
    display: inline-block;
    background: var(--brand-green);
    color: #fff;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.slider-btn:hover {
    background: var(--brand-green-hover);
    color: #fff;
    transform: translateY(-2px);
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    right: 30px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s;
}

.slider-dot.active {
    background: var(--brand-green);
    width: 28px;
    border-radius: 6px;
}

/* -------------------------------------------------------------
   Delivery & Quick Actions
   ------------------------------------------------------------- */
.delivery-row {
    margin-top: 2rem;
}

.delivery-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid #f0f0f0;
}

.delivery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.delivery-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.quick-action-card {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
    border: 1px solid #f0f0f0;
}

.quick-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.quick-action-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.quick-action-overlay {
    padding: 1rem;
    background: #fff;
    text-align: center;
}

.quick-action-overlay h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-dark);
}

/* -------------------------------------------------------------
   Franchise Forward Banner (.franchiseFwrd)
   ------------------------------------------------------------- */
.franchiseFwrd {
    margin: 3.5rem 0;
    background: linear-gradient(135deg, #1a1e24 0%, #2c323d 100%);
    padding: 3.5rem 1.5rem;
    border-radius: 12px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.franchiseFwrd::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(119,166,10,0.25) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
}

.franchiseFwrd .box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.title32 {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.title24 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.txt_green {
    color: var(--brand-green) !important;
}

.txt_red {
    color: var(--brand-red) !important;
}

.txt_white {
    color: #ffffff !important;
}

.btn_box_green {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--brand-green);
    color: #ffffff !important;
    font-size: 1.05rem;
    font-weight: 800;
    padding: 14px 34px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(119, 166, 10, 0.4);
    transition: all 0.25s;
}

.btn_box_green:hover {
    background: var(--brand-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(119, 166, 10, 0.6);
}

/* -------------------------------------------------------------
   Card Deck (4 Pillars)
   ------------------------------------------------------------- */
.card-deck {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.card-deck .card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}

.card-deck .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.card-deck .card-img-top {
    height: 140px;
    width: 100%;
    object-fit: contain;
    background: #fdfdfd;
    padding: 1rem;
}

.card-deck .card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-deck .card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-deck .card-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 1rem;
}

.card-deck .card-link {
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* -------------------------------------------------------------
   Digital Menu UI (urunler.php)
   ------------------------------------------------------------- */
.menu-controls {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #eaeaea;
}

.category-nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.cat-btn {
    padding: 8px 16px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #dcdcdc;
    font-weight: 600;
    font-size: 0.9rem;
    color: #444;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.cat-btn.active,
.cat-btn:hover {
    background: var(--brand-green);
    color: #fff;
    border-color: var(--brand-green);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.menu-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.menu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.menu-card-img {
    height: 180px;
    width: 100%;
    object-fit: cover;
    background: #f4f4f4;
}

.menu-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.menu-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.4rem 0;
    color: #222;
}

.menu-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 1rem;
}

.menu-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f0f0f0;
    padding-top: 0.75rem;
}

.menu-card-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--brand-red);
}

.badge-stock {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.badge-in-stock { background: #e6f4ea; color: #137333; }
.badge-out-stock { background: #fce8e6; color: #c5221f; }

/* -------------------------------------------------------------
   Footer
   ------------------------------------------------------------- */
footer {
    background: #191c22;
    color: #a0aec0;
    padding: 3.5rem 0 1.5rem 0;
    margin-top: 4rem;
    border-top: 4px solid var(--brand-green);
    font-size: 0.92rem;
}

footer a {
    color: #cbd5e0;
}

footer a:hover {
    color: #ffffff;
}

.footer-hotline {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0.5rem 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-links a {
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2d3748;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.social-btn:hover {
    background: var(--brand-green);
    transform: translateY(-2px);
}

.app-badges {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.app-badges img {
    height: 38px;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #2d3748;
    text-align: center;
    font-size: 0.85rem;
}

/* -------------------------------------------------------------
   Modals & KVKK Banner
   ------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

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

.modal-box {
    background: #ffffff;
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    padding: 2rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    animation: modalIn 0.25s ease-out;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #888;
}

.kvkk-alert {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff3cd;
    color: #856404;
    border-top: 1px solid #ffeeba;
    padding: 1rem;
    font-size: 0.85rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.kvkk-alert.hidden {
    display: none;
}

/* -------------------------------------------------------------
   Responsive Queries
   ------------------------------------------------------------- */
@media (max-width: 991px) {
    .card-deck {
        grid-template-columns: repeat(2, 1fr);
    }
    .navbar-toggler {
        display: block;
    }
    .navbar-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        gap: 0.75rem;
    }
    .navbar-nav.show {
        display: flex;
    }
}

@media (max-width: 600px) {
    .card-deck {
        grid-template-columns: 1fr;
    }
    .slide-title {
        font-size: 1.8rem;
    }
    .title32 {
        font-size: 1.6rem;
    }
}
