/* =========================================
   GastroKyiv Design System & Styling
   Premium Dark & Warm Amber Theme
   ========================================= */

:root {
    --bg-main: #0a0e17;
    --bg-surface: #131a2a;
    --bg-surface-elevated: #1a233a;
    --bg-glass: rgba(19, 26, 42, 0.75);
    
    --accent-primary: #f59e0b; /* Warm Gold/Amber */
    --accent-secondary: #ff7849; /* Coral Glow */
    --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #ff6b35 100%);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(245, 158, 11, 0.4);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 25px -3px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(245, 158, 11, 0.25);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.25s ease;
}

/* =========================================
   Navbar & Header
   ========================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(10, 14, 23, 0.85);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: var(--shadow-glow);
}

.highlight {
    color: var(--accent-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.badge-link {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* =========================================
   Main Content Layout
   ========================================= */
.main-content {
    flex: 1;
}

/* =========================================
   Hero Section
   ========================================= */
.hero-section {
    position: relative;
    padding: 5rem 2rem 4rem;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(circle at 50% 20%, rgba(245, 158, 11, 0.12) 0%, transparent 60%);
}

.hero-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.18), transparent 70%);
    filter: blur(60px);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* =========================================
   Search Form & Filters
   ========================================= */
.multi-filter-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: var(--bg-surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 0 auto;
    backdrop-filter: blur(16px);
}

.filter-main-bar {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color 0.25s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.search-icon {
    position: absolute;
    left: 1.1rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.search-input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0.9rem 1.2rem 0.9rem 3rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    padding: 0.9rem 1.8rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.filter-options-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-control {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
    min-width: 200px;
}

.filter-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.filter-label i {
    color: var(--accent-primary);
}

.filter-select {
    width: 100%;
    background: var(--bg-main);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

.filter-select:focus {
    border-color: var(--accent-primary);
}

.reset-control {
    flex: 0 0 auto;
    min-width: auto;
}

.btn-reset-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-reset-all:hover {
    background: #ef4444;
    color: #fff;
    transform: translateY(-1px);
}

.active-filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

/* =========================================
   Restaurants Section & Grid
   ========================================= */
.restaurants-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 2rem 5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.count-badge {
    background: var(--bg-surface-elevated);
    color: var(--accent-primary);
    font-size: 0.95rem;
    padding: 0.2rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.active-filter-tag {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent-primary);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remove-filter {
    color: var(--accent-primary);
    opacity: 0.7;
}
.remove-filter:hover {
    opacity: 1;
}

.restaurants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2rem;
}

/* =========================================
   Restaurant Card
   ========================================= */
.restaurant-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.restaurant-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.12);
}

.card-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.restaurant-card:hover .card-image {
    transform: scale(1.06);
}

.card-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.rating-badge {
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(6px);
    color: #ffc107;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    margin-bottom: 0.75rem;
}

.cuisine-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-primary);
    background: rgba(245, 158, 11, 0.12);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.card-title a:hover {
    color: var(--accent-primary);
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    flex: 1;
}

.card-details {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.detail-item i {
    color: var(--accent-primary);
    width: 16px;
}

.card-footer {
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phone-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-info i {
    color: #10b981;
}

.details-btn {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.details-btn:hover {
    gap: 0.65rem;
    color: #ffb13b;
}

/* =========================================
   Details Page
   ========================================= */
.details-container {
    max-width: 1150px;
    margin: 2.5rem auto 5rem;
    padding: 0 2rem;
}

.breadcrumb {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.back-link:hover {
    color: var(--accent-primary);
    transform: translateX(-4px);
}

.details-layout {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr;
    gap: 3.5rem;
    align-items: start;
}

.image-wrapper-large {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.details-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.media-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(8px);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.rating-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffc107;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.details-info {
    display: flex;
    flex-direction: column;
}

.header-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cuisine-pill {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-primary);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-pill {
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-pill.open {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.details-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.info-section {
    margin-bottom: 2rem;
}

.info-section h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.details-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.contact-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.icon-box {
    width: 48px;
    height: 48px;
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-text .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.contact-text strong {
    font-size: 1.05rem;
    color: var(--text-primary);
}

.contact-text a:hover {
    color: var(--accent-primary);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary-glow {
    background: var(--accent-gradient);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
    flex: 1;
    min-width: 200px;
}

.btn-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5);
}

.btn-secondary {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 1rem 1.75rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* =========================================
   Empty State
   ========================================= */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-color);
}

.empty-icon {
    font-size: 3.5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: inline-block;
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
    background: rgba(7, 10, 16, 0.9);
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-about h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.footer-about p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 400px;
}

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

/* =========================================
   Admin Panel Styles
   ========================================= */
.admin-hero {
    position: relative;
    padding: 3rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
    border-bottom: 1px solid var(--border-color);
}

.admin-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.admin-header-actions .btn-add-restaurant {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.6rem;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 600;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
}

.admin-header-actions .btn-add-restaurant:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.45);
}

.admin-section {
    max-width: 1280px;
    margin: 2rem auto 4rem;
    padding: 0 2rem;
}

.alert {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    position: relative;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #10b981;
}

.alert-icon {
    font-size: 1.5rem;
}

.alert-content {
    flex: 1;
    color: #ecfdf5;
}

.alert-close {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.alert-close:hover {
    opacity: 1;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-table-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.table-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface-elevated);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    padding: 1.1rem 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.admin-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table-row {
    transition: background 0.2s ease;
}

.table-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.col-id {
    color: var(--text-muted);
    font-weight: 600;
    font-family: monospace;
}

.table-thumb-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.table-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.col-name strong {
    display: block;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.col-hours {
    display: inline-block;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.contact-info span i {
    width: 18px;
    color: var(--accent-primary);
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.btn-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.btn-view {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.btn-view:hover {
    background: #3b82f6;
    color: #fff;
    transform: translateY(-2px);
}

.btn-edit {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.btn-edit:hover {
    background: var(--accent-primary);
    color: #000;
    transform: translateY(-2px);
}

.btn-delete {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.btn-delete:hover {
    background: #ef4444;
    color: #fff;
    transform: translateY(-2px);
}

/* =========================================
   Admin Form Styles (Create/Edit/Delete)
   ========================================= */
.admin-form-section {
    max-width: 900px;
    margin: 2.5rem auto 5rem;
    padding: 0 2rem;
}

.form-header {
    margin-bottom: 2.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    padding: 0.4rem 0.8rem;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.back-link:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.form-page-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-page-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.text-danger-heading {
    color: #f87171;
}

.admin-card-form {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
}

.col-span-2 {
    grid-column: span 2;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label i {
    color: var(--accent-primary);
}

.form-control {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.98rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.form-text {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.text-danger {
    color: #f87171;
    font-size: 0.85rem;
}

.validation-summary {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
    border-radius: var(--radius-sm);
}

.form-actions {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--bg-surface-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    transition: all 0.25s ease;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
}

.delete-confirmation-card {
    background: var(--bg-surface);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.delete-preview {
    padding: 2.5rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    background: rgba(239, 68, 68, 0.03);
}

.delete-logo-wrapper {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(239, 68, 68, 0.2);
}

.delete-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.delete-info h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin: 0.5rem 0;
}

.delete-desc {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.delete-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.delete-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.delete-meta i {
    color: #f87171;
}

.delete-form .delete-actions {
    padding: 1.5rem 2.5rem;
    background: var(--bg-surface-elevated);
    margin-top: 0;
}

/* =========================================
   Responsive Adjustments
   ========================================= */
@media (max-width: 850px) {
    .details-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .details-image {
        height: 340px;
    }
    
    .filter-group {
        border-left: none;
        padding-left: 0;
        width: 100%;
    }
    
    .cuisine-select {
        width: 100%;
    }

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

    .col-span-2 {
        grid-column: span 1;
    }

    .delete-preview {
        flex-direction: column;
        text-align: center;
    }

    .delete-meta {
        justify-content: center;
    }
}

