@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&display=swap');

/* 
    Gastfood Public Profile Styles 
    Premium, Responsive & Modern UI 
*/

:root {
    --primary-color: #ff385c;
    --text-main: #1a1a1a;
    --text-secondary: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
    --border: 1px solid #efefef;
    --radius: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
}

/* Utils */
.container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    background: var(--white);
    min-height: 100vh;
}

/* Header / Hero */
.hero {
    position: relative;
    height: 260px;
    background: linear-gradient(135deg, #eee 0%, #ddd 100%);
    overflow: visible;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.control-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    font-size: 17px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.control-btn:hover {
    transform: translateY(-2px);
    background: var(--white);
}

.profile-avatar {
    position: absolute;
    bottom: -50px;
    left: 50%; /* MERKEZLEME */
    transform: translateX(-50%); /* MERKEZLEME */
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 5px solid var(--white);
    background: var(--white);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    z-index: 5;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info Section */
.info-section {
    padding: 70px 24px 24px;
    text-align: center; /* Merkezi yazı */
}

.business-name {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: center; /* Merkezi simge */
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.status-dot.open { background-color: #00c853; box-shadow: 0 0 8px rgba(0,200,83,0.4); }
.status-dot.closed { background-color: #ff1744; box-shadow: 0 0 8px rgba(255,23,68,0.4); }

.price-scala {
    display: inline-block;
    padding: 5px 16px;
    background: var(--bg-light);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main); /* Kırmızıdan Siyaha */
    margin-bottom: 24px;
    cursor: pointer; /* Tıklanabilir yaptık */
}

/* Badges Bar */
.badges-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center; /* Merkezi başlık */
}

.badges-container {
    display: flex;
    gap: 14px;
    margin-bottom: 30px;
    justify-content: center; /* Merkezi ikonlar */
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
}
.badges-container::-webkit-scrollbar { display: none; }

.badge-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: var(--border);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    overflow: hidden; /* Kenarları kırpar */
    transition: var(--transition);
    flex-shrink: 0;
}

.badge-icon:hover {
    transform: scale(1.08);
    border-color: var(--primary-color);
}

.badge-icon img {
    width: 100%; /* Tam doldurma */
    height: 100%; /* Tam doldurma */
    object-fit: cover; /* Merkeze yerleştirme */
}

/* Products */
.section-title {
    padding: 10px 24px;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title a {
    font-size: 14px;
    color: var(--text-main); /* Kırmızıdan Siyaha */
    font-weight: 700;
    text-decoration: none;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 15px 24px 120px;
}

.product-card {
    transition: var(--transition);
}

.product-card:hover { transform: translateY(-5px); }

.product-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 24px;
    background: var(--bg-light);
    object-fit: cover;
    margin-bottom: 10px;
    box-shadow: var(--shadow-soft);
}

.product-name {
    font-size: 15px;
    font-weight: 700;
    padding: 0 4px;
}

/* Actions Footer */
.actions-footer {
    position: fixed;
    bottom: 20px;
    left: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px;
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 12px;
    z-index: 100;
    max-width: 552px; /* Container minus padding */
    margin: 0 auto;
}

.btn {
    flex: 1;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap; /* Metin kaymasını önler */
}

.btn i { margin-right: 10px; font-size: 18px; }

.btn-primary {
    background: var(--text-main);
    color: var(--white);
}
.btn-primary:hover { background: #000; box-shadow: 0 8px 20px rgba(0,0,0,0.2); }

.btn-secondary {
    background: var(--white);
    color: var(--text-main);
    border: var(--border);
}
.btn-secondary:hover { background: var(--bg-light); }

/* Responsive Tablet/Desktop */
@media (min-width: 768px) {
    body { background-color: #f2f4f7; }
    
    .container {
        max-width: 1000px;
        margin: 60px auto;
        border-radius: 32px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.08);
        min-height: auto;
    }
    
    .hero { height: 380px; }
    
    .profile-avatar {
        width: 130px;
        height: 130px;
        bottom: -65px;
    }
    
    .info-section {
        padding: 90px 50px 40px;
        display: flex;
        flex-direction: column; /* Üst üste merkezi yapı */
        align-items: center; 
        text-align: center;
    }
    
    .main-info { width: 100%; }
    .status-row { justify-content: center; }

    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        padding: 20px 50px 60px;
    }
    
    .section-title { padding: 20px 50px 10px; }
    
    .actions-footer {
        position: static;
        width: 100%;
        max-width: 500px; /* Buton grubu genişliği */
        display: flex;
        justify-content: center;
        box-shadow: none;
        padding: 0;
        background: transparent;
        margin: 30px auto 0; /* Merkezi boşluk */
    }
    
    .badges-container {
        justify-content: center;
    }
}

/* Modals & Popups */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    display: none; /* JS ile flex yapılacak */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 420px;
    border-radius: 24px;
    padding: 30px;
    position: relative;
    box-shadow: var(--shadow-md);
    transform: translateY(20px);
    animation: slideUp 0.3s forwards;
}

@keyframes slideUp {
    to { transform: translateY(0); }
}

.modal-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 24px;
    text-align: center;
}

.work-hours-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hour-item {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--bg-light);
}

.hour-item.today {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 700;
}

.badge-category-section {
    margin-bottom: 24px;
}

.category-header {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--bg-light);
}

.badge-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    transition: var(--transition);
}

.badge-list-item:hover {
    background: var(--bg-light);
}

.badge-icon-mini {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eee;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.badge-icon-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-list-item span {
    font-weight: 600;
    font-size: 15px;
}
