/* ========================================= */
/* LA VINIA – CLEAN & OPTIMIZED CSS          */
/* Black/Gold Premium Design                 */
/* ========================================= */

:root {
    --bg-main: #050505;
    --bg-panel: #111111;
    --bg-panel-soft: #0b0b0b;
    --gold: #d5a546;
    --gold-soft: #c69937;
    --text-main: #f5f5f5;
    --text-muted: #bbbbbb;
    --border-soft: #262626;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, sans-serif;
    background: radial-gradient(circle at top, #202020 0, #050505 45%);
    color: var(--text-main);
}

a { color: inherit; text-decoration: none; }

/* ========================================= */
/* HEADER / NAVBAR                           */
/* ========================================= */

header {
    background: rgba(0,0,0,0.9);
    border-bottom: 1px solid rgba(213,165,70,0.1);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
}

.logo {
    font-family: "Times New Roman","Georgia",serif;
    letter-spacing: 0.3em;
    font-size: 1.15rem;
    color: var(--gold);
    text-transform: uppercase;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.75rem;
}

.nav-btn {
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    border: 1px solid rgba(213,165,70,0.6);
    background: transparent;
    color: var(--text-main);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.18s ease-out;
    white-space: nowrap;
}

.nav-btn.active {
    background: radial-gradient(circle at top, var(--gold) 0,
                                #8a5b16 65%, #1b1509 100%);
    color: #050505;
    border-color: transparent;
    box-shadow: 0 0 18px rgba(213,165,70,0.4);
}

.nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 16px rgba(213,165,70,0.35);
}

/* ========================================= */
/* HERO – Main Startseite Image Section      */
/* ========================================= */

.hero-container {
    max-width: 1100px;
    margin: 2.5rem auto 0 auto;
    padding: 0 1.25rem;
}

.hero-block {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    margin-bottom: 3.2rem;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 25px 60px rgba(0,0,0,0.85);
    min-height: 420px;
    opacity: 0;
    animation: fadeContainer 1.2s ease-out forwards;
    background: #000;
}

.hero-block::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at bottom,
               rgba(213,165,70,0.18), transparent 60%);
    z-index: 2;
    pointer-events: none;
}

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

.hero-image {
    position: absolute;
    inset: 0;
    background-image: url('../img/hero-pasta.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: brightness(0.45);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 3rem 2.5rem;
    max-width: 750px;
    opacity: 0;
    animation: fadeText 1.5s ease-out forwards;
}

@keyframes fadeText {
    0%   { opacity: 0; transform: translateY(25px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-content h2 {
    font-family: "Times New Roman", serif;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 2.1rem;
    margin-bottom: 0.6rem;

    background: linear-gradient(90deg,
        #a87d2c, #d5a546, #f5e2a6, #d5a546, #a87d2c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 300%;
    animation: goldShine 6s ease-in-out infinite;
}

@keyframes goldShine {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-title-line {
    width: 120px;
    height: 2px;
    margin: 0.6rem 0 1.2rem 0;
    background: linear-gradient(90deg,
                transparent, var(--gold), transparent);
    animation: shineLine 4s infinite ease-in-out;
}

@keyframes shineLine {
    0%   { opacity: 0.2; }
    50%  { opacity: 1; }
    100% { opacity: 0.2; }
}

.hero-content p {
    color: #e8e8e8;
    font-size: 1.1rem;
    line-height: 1.6;
    text-shadow: 0 0 8px rgba(0,0,0,0.7);
}

.hero-cta {
    margin-top: 1.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.cta-btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border-radius: 999px;
    background: linear-gradient(180deg,
                #d5a546 0%, #8a5b16 100%);
    color: #050505;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 0 18px rgba(213,165,70,0.4);
    border: 1px solid rgba(213,165,70,0.7);
    transition: 0.22s ease;
}

.cta-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 26px rgba(213,165,70,0.6);
}
/* ========================================= */
/* CONTENT LAYOUT                            */
/* ========================================= */

main {
    max-width: 1100px;
    margin: 2.5rem auto 3rem auto;
    padding: 0 1.25rem;
}

/* ========================================= */
/* PANEL                                     */
/* ========================================= */

.panel {
    background: radial-gradient(circle at top left, #191919 0, #090909 55%);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 20px 45px rgba(0,0,0,0.75);
    padding: 1.5rem 1.5rem 1.25rem 1.5rem;
    margin: 0 auto 1.75rem auto;
    max-width: 1060px;
    animation: fadePanel 1.1s ease-out 0.3s backwards;
}

.panel-title {
    font-family: "Times New Roman","Georgia",serif;
    font-size: 1.05rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6rem;
}

.panel-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@keyframes fadePanel {
    0%   { opacity: 0; transform: translateY(18px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ========================================= */
/* PREMIUM FEATURES SECTION                  */
/* ========================================= */

.features {
    max-width: 1100px;
    margin: 0 auto 3.2rem auto;
    padding: 0 1.25rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 1.75rem;
    animation: fadeFeatures 1.1s ease-out 0.5s backwards;
}

@keyframes fadeFeatures {
    0%   { opacity: 0; transform: translateY(24px); }
    100% { opacity: 1; transform: translateY(0); }
}

.feature-box {
    background: radial-gradient(circle at top, #181818 0, #090909 55%);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 1.4rem 1.4rem 1.3rem 1.4rem;
    text-align: center;
    box-shadow: 0 16px 36px rgba(0,0,0,0.7);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(0,0,0,0.8);
    border-color: rgba(213,165,70,0.6);
}

.feature-icon {
    margin-bottom: 0.9rem;
}

.feature-icon img {
    width: 42px;
    height: 42px;
    display: inline-block;
}

.feature-box h3 {
    font-size: 0.98rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin: 0 0 0.6rem 0;
}

.feature-box p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}
/* ========================================= */
/* MENÜ TABLE (Speisekarte)                  */
/* ========================================= */

.menu-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.menu-table col:nth-child(1) { width: 10%; }
.menu-table col:nth-child(3) { width: 18%; }

.menu-table thead th {
    text-align: left;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0 0 0.25rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.menu-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.menu-table tbody tr:last-child {
    border-bottom: none;
}

.menu-table td {
    padding: 0.35rem 0;
    vertical-align: top;
}

.menu-no {
    color: var(--text-muted);
    padding-right: 0.75rem;
    white-space: nowrap;
}

.menu-name {
    font-weight: 500;
}

.menu-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.menu-price {
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
    color: var(--gold-soft);
}

/* ========================================= */
/* FOOTER                                    */
/* ========================================= */

footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem 1.25rem 2rem 1.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: linear-gradient(to top, rgba(213,165,70,0.05), transparent);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.footer-brand {
    font-family: "Times New Roman","Georgia",serif;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a:hover {
    color: var(--gold-soft);
}

/* ==========================================================
   ⭐ PDF DOWNLOAD BUTTON
   ========================================================== */

.pdf-download-section {
    margin: 2.5rem 0 3rem 0;
    display: flex;
    justify-content: center;
    animation: pdfFadeInUp 0.9s ease forwards;
}

.pdf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #050505;

    background: radial-gradient(circle at top,
                #d5a546 0%, #8a5b16 60%, #1b1509 100%);
    border: 1px solid rgba(213,165,70,0.7);
    box-shadow: 0 0 18px rgba(213,165,70,0.45);

    opacity: 0;
    animation: pdfFadeInUp 1s ease forwards;
}

.pdf-button:hover {
    transform: scale(1.03);
    box-shadow: 0 0 26px rgba(213,165,70,0.55);
}

@keyframes pdfFadeInUp {
    0% { opacity: 0; transform: translateY(18px); }
    100% { opacity: 1; transform: translateY(0); }
}
/* ==========================================================
   📱 GLOBAL MOBILE OPTIMIZATION (NAV + FRONT)
   ========================================================== */

@media (max-width: 900px) {

    .nav-inner {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    nav ul {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.6rem;
    }

    nav ul li {
        width: calc(50% - 0.6rem);
        display: flex;
        justify-content: center;
    }

    nav ul li button {
        width: 100%;
        padding: 0.9rem 0.4rem;
        font-size: 1rem;
    }

    .hero-container {
        margin-top: 1.8rem;
        padding: 0 1rem;
    }

    .hero-content {
        padding: 2rem 1.4rem;
        text-align: center;
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .feature-box {
        text-align: center;
    }

    .panel {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 👉 iPhone SE – Çok küçük ekranlar */
@media (max-width: 480px) {

    nav ul li {
        width: 100%;
    }

    nav ul li button {
        font-size: 1.05rem;
        padding: 1rem 0.6rem;
    }

    .hero-content h2 {
        font-size: 1.6rem;
        letter-spacing: 0.18em;
    }

    .hero-content p {
        font-size: 0.98rem;
    }
}

/* ========================================= */
/* LA VINIA – ACCOUNT MODAL POPUP           */
/* ========================================= */

.lv-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 1rem;
}

.lv-modal.open {
    display: flex;
}

.lv-modal-box {
    background: radial-gradient(circle at top left, #1a1a1a 0, #090909 55%);
    border: 1px solid rgba(213,165,70,0.35);
    border-radius: 18px;
    padding: 2rem 2rem 1.5rem 2rem;
    width: 95%;
    max-width: 420px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.9);
    position: relative;
    animation: modalUp 0.3s ease-out;
}

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

.lv-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 1.7rem;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
}

.lv-modal-close:hover {
    color: #d5a546;
}

.lv-modal-title {
    font-family:"Times New Roman",serif;
    letter-spacing:0.18em;
    color:#d5a546;
    text-align:center;
    text-transform:uppercase;
    margin-bottom:1.4rem;
}

.lv-modal-box label {
    font-size:0.85rem;
    color:#bbb;
    margin-top:0.6rem;
    display:block;
}

.lv-modal-box input {
    width:100%;
    padding:0.6rem 0.7rem;
    margin:0.35rem 0 0.8rem 0;
    border-radius:8px;
    border:1px solid #333;
    background:#050505;
    color:#f5f5f5;
}

.lv-btn {
    width:100%;
    border-radius:999px;
    border:1px solid rgba(213,165,70,0.8);
    background: radial-gradient(circle at top,#d5a546 0,#8a5b16 60%,#1c140a 100%);
    padding:0.7rem 1rem;
    margin-top:0.7rem;
    text-transform:uppercase;
    cursor:pointer;
    font-size:0.9rem;
}

.lv-btn:hover {
    transform: scale(1.02);
}

.lv-btn-cancel {
    width:100%;
    margin-top:0.6rem;
    border-radius:999px;
    padding:0.6rem 1rem;
    background:#222;
    border:1px solid #444;
    color:#ddd;
    cursor:pointer;
    font-size:0.85rem;
}

.lv-btn-cancel:hover {
    background:#333;
}

.lv-modal-msg {
    border-radius: 10px;
    padding: 0.9rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-align: center;
    animation: fadeIn 0.3s;
}

.lv-modal-msg.success {
    background: rgba(60,140,60,0.15);
    color: #9eff9e;
    border: 1px solid rgba(60,200,60,0.6);
}

.lv-modal-msg.error {
    background: rgba(200,70,70,0.15);
    color: #ff9999;
    border: 1px solid rgba(255,80,80,0.7);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}
/* ==========================================================
   📱 ADMIN DASHBOARD + MODAL – MOBILE FIX
   ========================================================== */

@media (max-width: 768px) {

    /* Dashboard ana margin/padding */
    .dashboard {
        margin-top: 1rem !important;
        padding: 0 1rem !important;
    }

    /* Dashboard başlık + logout hizalama */
    .header-line {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.6rem !important;
    }

    .header-line h1 {
        font-size: 1.1rem !important;
        width: 100%;
        text-align: left;
    }

    .logout-link {
        font-size: 0.85rem !important;
        width: 100%;
        line-height: 1.3;
    }

    /* Dashboard grid → tek kolon */
    .dashboard-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Kartlar */
    .card {
        padding: 1rem 1rem !important;
        min-height: auto !important;
    }

    .card-title {
        font-size: 1rem !important;
    }

    .card-text {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }

    /* Tablolar taşmasın */
    table {
        width: 100% !important;
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }

    table td,
    table th {
        padding: 0.6rem 0.5rem !important;
        font-size: 0.85rem !important;
    }

    /* Butonlar */
    .btn,
    .action-btn,
    .confirm-btn,
    .delete-btn {
        padding: 0.7rem 1rem !important;
        font-size: 0.85rem !important;
        width: 100% !important;
        text-align: center;
    }

    /* Filtre satırları */
    .filter-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.6rem !important;
    }

    /* Input alanları */
    input, select, textarea {
        width: 100% !important;
        font-size: 1rem !important;
    }

    /* Modal */
    .lv-modal-box {
        max-width: 360px !important;
        width: 100% !important;
        padding: 1.6rem 1.4rem 1.2rem 1.4rem !important;
    }
}

/* ==========================================================
   📱 EXTRA SMALL DEVICES (iPhone SE / Android Mini)
   ========================================================== */

@media (max-width: 420px) {

    header .nav-inner {
        flex-direction: column !important;
        gap: 0.6rem !important;
    }

    nav ul li button {
        padding: 0.8rem !important;
        width: 100% !important;
    }

    .header-line h1 {
        font-size: 1rem !important;
        text-align: center !important;
    }

    .logout-link {
        text-align: center !important;
        width: 100% !important;
        font-size: 0.8rem !important;
    }

    .card-title {
        font-size: 0.95rem !important;
    }

    /* Modal */
    .lv-modal-box {
        max-width: 95% !important;
        padding: 1.2rem !important;
    }

    .lv-modal-title {
        font-size: 1rem !important;
    }

    .lv-btn,
    .lv-btn-cancel {
        padding: 0.7rem !important;
        font-size: 0.85rem !important;
    }
}

/* ==========================================================
   ✔ DOSYA BİTTİ — STYLE.CSS COMPLETED
   ========================================================== */
.online-status {
    background: linear-gradient(90deg, #d5a546, #8a5b16);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    color: #000;
    cursor: pointer;
    margin-top: 6px;
    display: inline-block;
    box-shadow: 0 0 12px rgba(213,165,70,0.6);
    transition: 0.2s;
}

.online-status:hover {
    transform: scale(1.05);
    box-shadow: 0 0 18px rgba(213,165,70,0.8);
}

#visitorsList {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}
@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
}
/* ADMIN PAGE FIX - hero arka planını kapat */
body.admin-page .hero-container,
body.admin-page .hero-block,
body.admin-page .hero-image {
    display: none !important;
}
/* ADMIN PAGE: Frontend HERO + FEATURES + PANELS devre dışı */
body.admin-page .hero-container,
body.admin-page .hero-block,
body.admin-page .hero-image,
body.admin-page .features,
body.admin-page .panel {
    display: none !important;
}
/* ==========================================================
   ✔ FINAL MOBILE FIX FOR ADMIN DASHBOARD
   ========================================================== */

@media (max-width: 900px) {

    .dashboard {
        max-width: 100% !important;
        padding: 0 1rem !important;
        margin-top: 1rem !important;
    }

    /* Başlık bölümü */
    .header-line {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.7rem !important;
        width: 100% !important;
    }

    /* KART GRID — TEK SÜTUN */
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        width: 100% !important;
    }

    .dashboard-grid a {
        width: 100% !important;
    }

    .card {
        width: 100% !important;
        padding: 1.1rem !important;
        min-height: auto !important;
    }
}

/* Çok küçük ekranlar */
@media (max-width: 480px) {

    .header-line h1 {
        font-size: 1rem !important;
        text-align: left !important;
    }

    .logout-link {
        font-size: 0.8rem !important;
        text-align: left !important;
        width: 100% !important;
    }
}
body.admin-page .dashboard-grid {
    grid-template-columns: 1fr !important;
    display: grid !important;
}

body.admin-page .card {
    width: 100% !important;
}

body.admin-page .header-line {
    flex-direction: column !important;
    align-items: flex-start !important;
}

body.admin-page main.dashboard {
    max-width: 100% !important;
    padding: 0 1rem !important;
}
