/* ===== PLATFORM CSS - restoran.asoftware.com.tr ===== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: #1a1a2e; background: #fafafa; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Navigation --- */
.platform-nav { background: #fff; position: sticky; top: 0; z-index: 1000; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.platform-nav .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav-brand { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 700; }
.brand-icon { font-size: 28px; }
.brand-accent { color: #e94560; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { padding: 8px 16px; border-radius: 8px; font-weight: 500; font-size: 15px; color: #555; transition: all .2s; }
.nav-links a:hover, .nav-links a.active { color: #e94560; background: #fef2f4; }
.nav-cta { background: #e94560 !important; color: #fff !important; }
.nav-cta:hover { background: #d63450 !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #333; margin: 5px 0; transition: .3s; border-radius: 2px; }
.nav-mobile { display: none; background: #fff; border-top: 1px solid #eee; padding: 16px 20px; }
.nav-mobile a { display: block; padding: 12px 0; color: #333; font-weight: 500; border-bottom: 1px solid #f0f0f0; }
.nav-mobile.open { display: block; }

/* --- Hero Section --- */
.hero { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); color: #fff; padding: 80px 0 100px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 48px; font-weight: 700; margin-bottom: 16px; line-height: 1.2; }
.hero h1 span { color: #c8a97e; }
.hero p { font-size: 18px; opacity: 0.85; max-width: 600px; margin: 0 auto 40px; }

/* --- Search Box --- */
.search-box { max-width: 700px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 6px; display: flex; box-shadow: 0 8px 32px rgba(0,0,0,0.15); }
.search-box input { flex: 1; padding: 16px 20px; border: none; font-size: 16px; font-family: inherit; background: transparent; outline: none; }
.search-box select { padding: 12px 16px; border: none; background: #f8f8f8; border-radius: 10px; margin: 4px; font-family: inherit; color: #555; cursor: pointer; min-width: 140px; }
.search-box button { padding: 14px 32px; background: #e94560; color: #fff; border: none; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background .2s; }
.search-box button:hover { background: #d63450; }

/* --- Section Titles --- */
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 36px; color: #1a1a2e; margin-bottom: 10px; }
.section-header p { color: #777; font-size: 16px; }
.section { padding: 60px 0; }
.section-alt { background: #fff; }

/* --- Cuisine Categories --- */
.cuisine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px; }
.cuisine-card { background: #fff; border-radius: 16px; padding: 24px 16px; text-align: center; cursor: pointer; transition: all .3s; border: 2px solid transparent; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.cuisine-card:hover { transform: translateY(-4px); border-color: #e94560; box-shadow: 0 8px 24px rgba(233,69,96,0.12); }
.cuisine-card .icon { font-size: 40px; margin-bottom: 10px; display: block; }
.cuisine-card .name { font-weight: 600; font-size: 13px; color: #333; }

/* --- Restaurant Cards --- */
.restaurant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.restaurant-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: all .3s; }
.restaurant-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }
.card-image { height: 200px; background: linear-gradient(135deg, #f0f0f0, #e0e0e0); position: relative; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-image .badge { position: absolute; top: 12px; left: 12px; background: #e94560; color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.card-logo { position: absolute; bottom: -28px; left: 16px; width: 56px; height: 56px; border-radius: 12px; border: 3px solid #fff; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.1); overflow: hidden; }
.card-logo img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px; padding-top: 36px; }
.card-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 13px; color: #888; }
.card-meta .rating { color: #f59e0b; font-weight: 600; }
.card-meta .reviews { color: #888; }
.card-cuisine { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.card-cuisine span { background: #f0f0f0; padding: 3px 10px; border-radius: 20px; font-size: 12px; color: #666; }
.card-location { font-size: 13px; color: #888; display: flex; align-items: center; gap: 6px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-top: 1px solid #f0f0f0; }
.card-footer .btn-visit { color: #e94560; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 4px; }

/* --- Stars --- */
.stars { display: inline-flex; gap: 1px; }
.star { color: #ddd; font-size: 16px; }
.star.filled { color: #f59e0b; }
.star.half { background: linear-gradient(90deg, #f59e0b 50%, #ddd 50%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* --- Stats Strip --- */
.stats-strip { display: flex; justify-content: center; gap: 60px; padding: 40px 0; }
.stat-item { text-align: center; }
.stat-item .number { font-size: 36px; font-weight: 800; color: #e94560; display: block; }
.stat-item .label { font-size: 14px; color: #888; }

/* --- Filter Sidebar --- */
.page-with-sidebar { display: grid; grid-template-columns: 280px 1fr; gap: 30px; align-items: start; }
.filter-sidebar { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); position: sticky; top: 90px; }
.filter-group { margin-bottom: 20px; }
.filter-group h4 { font-size: 14px; font-weight: 600; margin-bottom: 10px; color: #333; text-transform: uppercase; letter-spacing: 0.5px; }
.filter-group label { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; color: #555; cursor: pointer; }
.filter-group input[type="checkbox"] { accent-color: #e94560; width: 16px; height: 16px; }
.filter-group select, .filter-group input[type="text"] { width: 100%; padding: 10px 12px; border: 1px solid #e0e0e0; border-radius: 8px; font-family: inherit; font-size: 14px; }
.filter-group select:focus, .filter-group input[type="text"]:focus { border-color: #e94560; outline: none; }
.filter-btn { width: 100%; padding: 12px; background: #e94560; color: #fff; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .2s; }
.filter-btn:hover { background: #d63450; }

/* --- Pagination --- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 10px 16px; border-radius: 8px; font-weight: 500; font-size: 14px; }
.pagination a { background: #fff; color: #555; box-shadow: 0 1px 4px rgba(0,0,0,0.08); transition: all .2s; }
.pagination a:hover { background: #e94560; color: #fff; }
.pagination span.current { background: #e94560; color: #fff; }

/* --- Restaurant Detail --- */
.detail-hero { position: relative; height: 350px; background: linear-gradient(135deg, #1a1a2e, #16213e); overflow: hidden; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.detail-hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px 0 30px; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff; }
.detail-info { display: flex; align-items: end; gap: 24px; }
.detail-logo { width: 90px; height: 90px; border-radius: 16px; border: 4px solid #fff; overflow: hidden; background: #fff; flex-shrink: 0; }
.detail-logo img { width: 100%; height: 100%; object-fit: cover; }
.detail-text h1 { font-family: 'Playfair Display', serif; font-size: 32px; margin-bottom: 4px; }
.detail-text .meta { display: flex; gap: 16px; align-items: center; font-size: 14px; opacity: 0.9; flex-wrap: wrap; }

/* --- Tabs --- */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid #eee; margin-bottom: 30px; overflow-x: auto; }
.tabs a { padding: 12px 20px; font-weight: 600; font-size: 14px; color: #888; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .2s; white-space: nowrap; }
.tabs a:hover, .tabs a.active { color: #e94560; border-bottom-color: #e94560; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* --- Review Card --- */
.review-card { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.review-author { font-weight: 600; font-size: 15px; }
.review-date { font-size: 12px; color: #999; }
.review-text { font-size: 14px; color: #555; line-height: 1.7; }

/* --- Review Form --- */
.review-form { background: #fff; border-radius: 16px; padding: 30px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-top: 30px; }
.review-form h3 { margin-bottom: 20px; font-size: 20px; }
.star-rating { display: flex; gap: 4px; margin-bottom: 16px; }
.star-rating input { display: none; }
.star-rating label { font-size: 32px; color: #ddd; cursor: pointer; transition: color .2s; }
.star-rating label:hover, .star-rating label:hover ~ label, .star-rating input:checked ~ label { color: #f59e0b; }
.star-rating { direction: rtl; }

/* --- Forms --- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; color: #333; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 16px; border: 2px solid #e8e8e8; border-radius: 10px; font-family: inherit; font-size: 14px; transition: border-color .2s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: #e94560; outline: none; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group .help { font-size: 12px; color: #999; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; border: none; font-family: inherit; transition: all .2s; }
.btn-primary { background: #e94560; color: #fff; }
.btn-primary:hover { background: #d63450; transform: translateY(-1px); }
.btn-secondary { background: #f0f0f0; color: #555; }
.btn-secondary:hover { background: #e0e0e0; }
.btn-outline { background: transparent; border: 2px solid #e94560; color: #e94560; }
.btn-outline:hover { background: #e94560; color: #fff; }
.btn-gold { background: linear-gradient(135deg, #c8a97e, #a87d4e); color: #fff; }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(200,169,126,0.4); }

/* --- Alerts --- */
.alert { padding: 14px 20px; border-radius: 10px; margin-bottom: 20px; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }
.alert-info { background: #d1ecf1; color: #0c5460; }

/* --- Apply Page --- */
.apply-hero { background: linear-gradient(135deg, #1a1a2e, #0f3460); color: #fff; padding: 60px 0; text-align: center; }
.apply-hero h1 { font-family: 'Playfair Display', serif; font-size: 40px; margin-bottom: 12px; }
.apply-hero p { opacity: 0.85; font-size: 17px; max-width: 600px; margin: 0 auto; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin: 40px 0; }
.benefit-card { background: #fff; border-radius: 16px; padding: 30px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.benefit-card .icon { font-size: 48px; margin-bottom: 16px; display: block; }
.benefit-card h3 { font-size: 18px; margin-bottom: 8px; }
.benefit-card p { font-size: 14px; color: #777; }

/* --- Search Results --- */
.search-results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.search-results-header h2 { font-size: 20px; }
.search-results-header .count { color: #888; font-size: 14px; }
.food-result { display: flex; gap: 16px; background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); transition: box-shadow .2s; }
.food-result:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.food-result img { width: 80px; height: 80px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.food-result .info h4 { font-size: 16px; margin-bottom: 4px; }
.food-result .info .price { color: #e94560; font-weight: 700; }
.food-result .info .restaurant-name { font-size: 13px; color: #888; }

/* --- Menu on Detail Page --- */
.menu-category { margin-bottom: 30px; }
.menu-category h3 { font-size: 20px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid #f0f0f0; }
.menu-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f5f5f5; }
.menu-item:last-child { border-bottom: none; }
.menu-item-info { display: flex; gap: 12px; align-items: center; flex: 1; }
.menu-item-img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; }
.menu-item-name { font-weight: 600; }
.menu-item-desc { font-size: 13px; color: #888; }
.menu-item-price { font-weight: 700; color: #e94560; font-size: 16px; white-space: nowrap; }

/* --- No Results --- */
.no-results { text-align: center; padding: 60px 20px; }
.no-results .icon { font-size: 64px; margin-bottom: 16px; display: block; }
.no-results h3 { font-size: 22px; margin-bottom: 8px; }
.no-results p { color: #888; }

/* --- Footer --- */
.platform-footer { background: #1a1a2e; color: #ccc; padding: 60px 0 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h3 { color: #fff; font-size: 20px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col p { font-size: 14px; line-height: 1.7; opacity: 0.8; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: 14px; opacity: 0.8; }
.footer-col a:hover { color: #c8a97e; opacity: 1; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #fff; transition: background .2s; }
.footer-social a:hover { background: #e94560; }
.footer-bottom { text-align: center; padding: 20px 0; margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; opacity: 0.6; }

/* --- Benefit Items --- */
.benefit { background: #fff; border-radius: 16px; padding: 30px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.benefit .benefit-icon { font-size: 48px; margin-bottom: 16px; display: block; }
.benefit h4 { font-size: 18px; margin-bottom: 8px; }
.benefit p { font-size: 14px; color: #777; }

/* --- Star Rating Input --- */
.star-rating-input { display: flex; gap: 4px; }
.star-btn { font-size: 32px; color: #ddd; cursor: pointer; transition: color .15s; user-select: none; }
.star-btn.active, .star-btn.hover { color: #f59e0b; }

/* --- Loading --- */
.loading { display: flex; justify-content: center; padding: 40px; }
.spinner { width: 40px; height: 40px; border: 3px solid #eee; border-top-color: #e94560; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Responsive --- */
@media (max-width: 968px) {
    .hero h1 { font-size: 32px; }
    .search-box { flex-direction: column; padding: 12px; }
    .search-box select { margin: 0; }
    .page-with-sidebar { grid-template-columns: 1fr; }
    .filter-sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-strip { gap: 30px; flex-wrap: wrap; }
    .form-row { grid-template-columns: 1fr; }
    .restaurant-grid { grid-template-columns: 1fr; }
    .detail-hero { height: 250px; }
    .detail-text h1 { font-size: 24px; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .cuisine-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
    .footer-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
}
