/* ============================================
   LILYUM ÇİÇEK - MAIN CSS
   Version: 3.0
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #b58538;
    --secondary-color: #f2c15f;
    --accent-color: #7c5a1c;
    --dark-color: #1f2937;
    --light-color: #f7f3ea;
    --text-color: #374151;
    --surface: #ffffff;
    --border: #eadcc8;
    --gradient: linear-gradient(135deg, #b58538 0%, #f2c15f 100%);
    --shadow: 0 20px 40px rgba(29, 25, 17, 0.12);
    --ring: 0 0 0 3px rgba(181, 133, 56, 0.25);

    /* Renk kodları */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: var(--light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TOP BAR - İYİLEŞTİRİLMİŞ
   ============================================ */
.top-bar {
    background: var(--gradient);
    color: #1f1406;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.top-bar-left {
    justify-self: start;
}

.top-bar-center {
    justify-self: center;
    font-weight: 600;
}

.top-bar-right {
    justify-self: end;
}

.top-bar-link {
    color: #1f1406;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}

.top-bar-link:hover {
    opacity: 0.8;
}

.hide-mobile {
    display: inline;
}

@media (max-width: 768px) {
    .top-bar-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 8px;
    }

    .hide-mobile {
        display: none;
    }

    .top-bar-center span {
        font-size: 11px;
    }
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(20, 15, 8, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 56px;
    width: auto;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.desktop-nav {
    display: flex;
    gap: 22px;
    align-items: center;
}

.desktop-nav a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    transition: color 0.2s ease;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.2s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fffdf8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    text-decoration: none;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: var(--light-color);
}

.badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--gradient);
    color: #1f1406;
    font-size: 11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.avatar-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--gradient);
    color: #1f1406;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(181, 133, 56, 0.25);
}

.user-menu {
    position: relative;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 52px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    min-width: 200px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--dark-color);
    text-decoration: none;
    border-bottom: 1px solid #f1e7d8;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.2s;
}

.user-dropdown a:hover {
    background: var(--light-color);
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.text-danger {
    color: var(--danger);
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   BUTTONS - İYİLEŞTİRİLMİŞ
   ============================================ */
.btn,
.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    padding: 12px 22px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: var(--gradient);
    color: #1f1406;
    box-shadow: 0 12px 24px rgba(181, 133, 56, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(181, 133, 56, 0.35);
}

.btn-secondary {
    background: #1f2937;
    color: white;
}

.btn-secondary:hover {
    background: #111827;
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--dark-color);
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
}

.btn-ghost:hover {
    background: var(--light-color);
}

/* Button Sizes */
.btn-large {
    padding: 14px 28px;
    font-size: 15px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

/* Specific Buttons */
.btn-order {
    border-radius: 8px;
    padding: 14px 24px;
}

.btn-phone {
    background: #374151;
    color: white;
    border-radius: 8px;
}

.btn-call {
    background: #374151;
    color: white;
    border-radius: 8px;
    padding: 14px 24px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-call:hover {
    background: #1f2937;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border-radius: 8px;
}

.btn-whatsapp:hover {
    background: #1fad4f;
}

/* ============================================
   MOBILE MENU
   ============================================ */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.6);
    z-index: 999998;
}

.menu-overlay.active {
    display: block;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    color: var(--dark-color);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--surface);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    z-index: 999999;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
    padding: 90px 24px 30px;
}

.mobile-nav li {
    padding: 12px 0;
    border-bottom: 1px solid #efe4d4;
}

.mobile-nav li a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
}

.mobile-nav li hr {
    border: none;
    border-top: 1px solid #efe4d4;
    margin: 10px 0;
}

.mobile-menu-close {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--dark-color);
    cursor: pointer;
}

/* ============================================
   FOOTER - İYİLEŞTİRİLMİŞ (Daha açık renk)
   ============================================ */
footer {
    background: #2b2012;
    color: white;
    padding: 60px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: white;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--gradient);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .top-bar-inner {
        flex-direction: column;
        text-align: center;
    }

    .logo img {
        height: 46px;
    }

    .header-inner {
        padding: 12px 0;
    }

    .btn,
    .btn-primary,
    .btn-secondary {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-5 {
    margin-top: 20px;
}

.mb-5 {
    margin-bottom: 20px;
}

.p-3 {
    padding: 12px;
}

.p-4 {
    padding: 16px;
}

.gap-3 {
    gap: 12px;
}

/* ============================================
   FORM STYLES (Admin Panel)
   ============================================ */
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--ring);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: var(--dark-color);
}

.form-help {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-grid.two {
    grid-template-columns: 1fr 1fr;
}

.form-grid.three {
    grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 768px) {
    .form-grid,
    .form-grid.two,
    .form-grid.three {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   TABLE STYLES
   ============================================ */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table thead {
    background: var(--light-color);
    border-bottom: 2px solid var(--border);
}

table th {
    padding: 12px;
    text-align: left;
    font-weight: 700;
    color: var(--dark-color);
}

table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

table tbody tr:hover {
    background: var(--light-color);
}

/* ============================================
   CARD STYLES (Admin)
   ============================================ */
.card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.card-header {
    font-weight: 700;
    font-size: 16px;
    color: var(--dark-color);
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header i {
    color: var(--primary-color);
}

/* ============================================
   STAT CARDS (Dashboard)
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-icon.gold {
    background: linear-gradient(135deg, #b58538 0%, #f2c15f 100%);
}

.stat-icon.green {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.stat-icon.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

.stat-icon.red {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
}

.stat-content h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
}

.stat-content p {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #6b7280;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid var(--warning);
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid var(--info);
}
