/* =====================================================
   GREEN CHEF - COMMON CSS
   Ortak stiller, CSS variables, reset, utilities
   ===================================================== */

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* CSS Variables */
:root {
    --primary: #16a34a;
    --primary-dark: #15803d;
    --primary-light: #22c55e;
    --primary-glow: rgba(22, 163, 74, 0.15);
    --bg: #f5f5f7;
    --surface: #ffffff;
    --surface-2: #f0f0f2;
    --text: #1a1a1a;
    --text-light: #666666;
    --text-muted: #999999;
    --border: rgba(0, 0, 0, 0.08);
    --shadow: rgba(0, 0, 0, 0.08);
    --radius: 20px;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
}

/* Body */
body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Utilities */
.hidden { display: none !important; }

/* =====================================================
   TOP BAR
   ===================================================== */
.top-bar {
    padding: 0.75rem 1rem;
    background: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10001;
}

.logo { display: flex; align-items: center; gap: 0.5rem; }
.logo img { height: 40px; filter: brightness(1.1); }
.logo-text { color: #fff; font-weight: 700; font-size: 1.2rem; }

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: absolute;
    right: 1rem;
}

.icon-btn {
    background: var(--primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.icon-btn svg { width: 22px; height: 22px; fill: #fff; }
.icon-btn:hover { background: var(--primary-light); transform: scale(1.05); }

.cart-count, .icon-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: #fff;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
}

/* =====================================================
   LOADING & SPINNER
   ===================================================== */
.loading { display: flex; align-items: center; justify-content: center; padding: 3rem; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

/* =====================================================
   TOAST
   ===================================================== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: #fff;
    padding: 0.9rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    z-index: 999999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.toast.error { background: var(--danger); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: #1a1a1a;
    padding: 2.5rem 1.5rem 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 1.5rem;
}

.footer-col:first-child { text-align: left; }
.footer-col:nth-child(2) { text-align: center; }
.footer-col:last-child { text-align: right; }

.footer-logo { margin-bottom: 0.75rem; }
.footer-logo img { height: 50px; filter: brightness(1.1); }
.footer-address {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    line-height: 1.5;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
    cursor: pointer;
}

.footer-links a:hover { color: var(--primary-light); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    text-align: center;
}

.footer-info { color: rgba(255,255,255,0.6); font-size: 0.8rem; margin-bottom: 0.25rem; }
.footer-copy { color: rgba(255,255,255,0.4); font-size: 0.75rem; margin-bottom: 0.75rem; }

.footer-powered { margin-top: 0.5rem; }
.footer-powered a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.7rem;
    transition: color 0.2s;
}
.footer-powered a:hover { color: rgba(255,255,255,0.8); }
.footer-powered .powered-logo { height: 18px; opacity: 0.6; transition: opacity 0.2s; }
.footer-powered a:hover .powered-logo { opacity: 1; }

/* Footer simple (profil sayfasi icin) */
.footer.footer-simple {
    padding: 2rem 1rem;
    text-align: center;
}
.footer.footer-simple .footer-logo { display: flex; justify-content: center; margin-bottom: 0.75rem; }
.footer.footer-simple .footer-logo img { height: 44px; }

/* =====================================================
   FLOATING CALL BUTTON
   ===================================================== */
.floating-call-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(22, 163, 74, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}
.floating-call-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(22, 163, 74, 0.5);
}
.floating-call-btn:active { transform: scale(0.95); }
.floating-call-btn svg { width: 26px; height: 26px; fill: #fff; }

/* =====================================================
   FORM ELEMENTS
   ===================================================== */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 600; font-size: 0.85rem; }
.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
}
.form-input:focus { outline: none; border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.btn-primary {
    width: 100%;
    padding: 1rem;
    border-radius: 100px;
    background: var(--primary);
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary {
    width: 100%;
    padding: 1rem;
    border-radius: 100px;
    background: var(--surface-2);
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}
.btn-secondary:hover { background: var(--border); }

.btn-danger {
    width: 100%;
    padding: 1rem;
    border-radius: 100px;
    background: var(--danger);
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}
.btn-danger:hover { opacity: 0.9; }

/* =====================================================
   MOBILE RESPONSIVE
   ===================================================== */
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center !important;
        gap: 1.5rem;
    }
    .footer-col, .footer-col:first-child, .footer-col:nth-child(2), .footer-col:last-child {
        text-align: center !important;
    }
    .footer-logo { justify-content: center; display: flex; }
}
