/* === RESET & GLOBAL === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none !important;
}

html {
    scroll-padding-top: 80px !important;
    scroll-behavior: smooth !important;
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    padding: 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.nav-left { display: flex; align-items: center; gap: 12px; }
.logo-img { width: 60px; height: 60px; background: orange !important; border-radius: 50% !important; padding: 6px; object-fit: contain; }
.nav-center { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 30px; }
.nav-center a { text-decoration: none; color: #555; font-weight: 500; font-size: 16px; }
.nav-right { display: flex; align-items: center; gap: 10px; }

/* === MODAL UTAMA (TAMPILAN MELEBAR/WEIGHT) === */
.login-overlay, .modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-modal {
    background: white;
    width: 95%;
    max-width: 850px; /* Diperlebar agar grid 3 kolom muat */
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-card {
    background: white;
    width: 10%;
    max-width: 380px; /* Ukuran standard modal login agar tidak aneh */
    padding: 120px 120px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    position: relative;
    text-align: center;
}
/* HEADER DALAM MODAL */
.modal-logo-center {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.modal-logo-center .icon {
    width: 70px;
    height: 70px;
    background: orange;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-title {
    text-align: center;
    font-size: 26px;
    letter-spacing: 2px;
    margin-bottom: 25px;
    font-weight: bold;
}

/* GRID SYSTEM UNTUK TAMPILAN HORIZONTAL */
.modal-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 3 Kolom sejajar */
    gap: 20px;
    margin-bottom: 20px;
}

.modal-grid-bottom {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Langkah Memasak (Lebar) & Tombol (Kanan) */
    gap: 20px;
    align-items: start;
}

/* STYLING INPUT */
.form-group { margin-bottom: 15px; text-align: left; }
.form-group label { font-size: 12px; font-weight: bold; color: #444; margin-bottom: 6px; display: block; }

.modal-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd !important;
    border-radius: 12px;
    font-size: 14px;
    background: #fafafa;
}

.modal-input:focus { border-color: orange !important; background: #fff; }

/* TOMBOL AKSI */
.btn-action-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-end;
    height: 100%;
}

.modal-btn-login {
    background: orange;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-batal {
    background: white;
    color: #555;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
}

/* === HERO & CONTENT === */
.hero { margin-top: 50px; height: 410px; position: relative; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 136, 0, 0.65); display: flex; flex-direction: column; justify-content: center; align-items: center; color: white; }

.card-wrapper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }

/* === FOOTER === */
.footer-orange {
    background-color: #FF8C2B;
    color: white;
    padding: 40px 0;
    margin-top: 50px;
    width: 100%;
    position: relative;
    clear: both;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .modal-grid-row, .modal-grid-bottom { grid-template-columns: 1fr; }
    .card-wrapper { grid-template-columns: repeat(2, 1fr); }
}

/* ✅ CONTAINER UTAMA (OVERLAY) */
/* Digunakan oleh login-overlay, register-overlay, dan modal-user */
/* 1. OVERLAY (Latar Belakang Gelap) - Biarkan Digabung */
.modal-overlay, .login-overlay, .modal-user {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

/* 2. MODAL TAMBAH RESEP (UKURAN LEBAR) */
.login-modal, .modal-content-user {
    background: white;
    width: 95%;
    max-width: 850px; /* <--- Diperlebar agar grid input muat */
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    position: relative;
    border: none !important;
}

/* 3. MODAL LOGIN & REGISTER (UKURAN RAMPING) */
.modal-card {
    background: white;
    width: 90%;
    max-width: 380px; /* <--- Dipersempit khusus untuk Login/Daftar */
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    position: relative;
    text-align: center;
    border: none !important;
}

/* 4. JUDUL & GRID (Tetap seperti sebelumnya) */
.modal-title, .modal-content-user h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
}

.modal-grid-triple {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 10px;
}

.modal-grid-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 10px;
}

/* Responsif Mobile */
@media (max-width: 768px) {
    .modal-grid-triple, .modal-grid-double {
        grid-template-columns: 1fr;
    }
}
.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    display: block;
    margin-bottom: 5px;
}

/* INPUT */
.modal-input, .modal-content-user select, .modal-content-user textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #eee !important;
    border-radius: 8px;
    font-size: 14px;
    outline: none !important;
    background: #fdfdfd;
    box-sizing: border-box;
    transition: 0.3s; /* Tambah efek smooth saat diklik */
}

.modal-input:focus {
    border-color: orange !important;
    background: #fff;
}

/* TOMBOL UTAMA */
.modal-btn-login, .btn-orange {
    width: 100%;
    padding: 13px;
    background: orange;
    color: white;
    border: none !important;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.modal-btn-login:hover, .btn-orange:hover {
    background: #e67e22;
}

/* TOMBOL TUTUP (X) */
.modal-close-btn, .close-user, .btn-close-circle {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none !important;
    font-size: 22px;
    cursor: pointer;
    color: orange !important;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
}

.modal-close-btn:hover, .close-user:hover {
    background: #fff3e0 !important;
    color: #e67e22 !important;
}

/* Pembersihan Global */
* {
    outline: none !important;
}

/* ===== HERO ===== */
/* Besarin tinggi area hero agar lebih besar */
.hero {
  margin-top: 50px;
  height: 410px !important; /* Kamu bisa ubah jadi 500px kalo mau lebih tinggi lagi */
  background-image: url('../images/makanan.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Pastikan overlay oranye menutupi SEMUA area hero */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 136, 0, 0.65); /* Opacity 65% agar gambar latar masih terlihat tapi tulisan jelas */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}


.hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 14px;
  margin-bottom: 25px;
}

.search-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.search-box button:hover .search-icon {
  transform: scale(1.1);
}
.search-box {
  display: flex;
  justify-content: center;
}

.search-box input {
  width: 420px;
  padding: 12px;
  border-radius: 30px 0 0 30px;
  border: 1px solid #ddd;
  outline: none;
}
.search-box input:focus {
  border-color: orange;
}


.search-box button {
  width: 50px;
  border: none;
  background: orange;
  color: #fff;
  border-radius: 0 30px 30px 0;
  cursor: pointer;
}

/* ===== KATEGORI ===== */
.kategori {
  display: flex;
  justify-content: center;
  gap: 50px;              /* jarak antar logo kategori */
  flex-wrap: wrap;
  margin-top: 17px;
  text-decoration: none;
  color: #222;
}

.kategori-item {
    text-decoration: none; /* Menghilangkan garis bawah */
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s;
}

.kategori-item .icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kategori-item img {
  width: 48px;
  height: 48px;
}

.kategori-item p {
    margin-top: 10px;
    font-weight: 500;
    color: #333;
    text-decoration: none; /* Memastikan sekali lagi tidak ada garis */
}

.kategori-item:hover {
    transform: translateY(-5px); /* Efek angkat saat dihover */
}
.kategori-item:visited {
  color: #222;
}

.icon {
  width: 48px;
  height: 48px;
  background: orange;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon img {
  width: 38px;
  height: 28px;
  object-fit: contain;
}
/* Container untuk judul dan tombol-tombol di kanan */
.section-header {
    display: flex;
    justify-content: space-between; /* Menjaga tombol tetap di kanan */
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.judul-section {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-align: left;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 20px; /* Jarak antara tombol tambah dan View All */
}

/* Tombol Oranye TAMBAH RESEP */
.btn-tambah-user {
    background-color: #FF8C2B;
    color: white;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold; /* Tambahan agar teks lebih tegas */
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 140, 43, 0.3);
    
    /* ✅ SOLUSI GARIS HITAM */
    border: none !important;     /* Menghapus garis tepi */
    outline: none !important;    /* Menghapus garis kotak saat diklik */
    cursor: pointer;            /* Mengubah kursor jadi tangan */
    display: inline-block;
    appearance: none;           /* Menghapus style bawaan browser */
    -webkit-tap-highlight-color: transparent; /* Hapus warna highlight di HP */
}

.btn-tambah-user:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 140, 43, 0.4);
    outline: none !important;
}

/* ✅ TAMBAHAN: Agar saat diklik tetap tidak muncul garis */
.btn-tambah-user:focus, 
.btn-tambah-user:active {
    outline: none !important;
    border: none !important;
    background-color: #d35400; /* Sedikit lebih gelap saat ditekan */
}

/* Link View All */
.view-all {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

/* ===== RESEP ===== */
.card {
  text-decoration: none;
  color: inherit;
  margin-top: 20px;
}

.card-body {
  padding: 10px;
}

.card {
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  /* ✅ Shadow yang jelas tapi tidak terlalu tebal */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  position: relative;
  z-index: 1; /* Pastikan shadow tidak tertutup sama elemen lain */
}

/* Efek hover yang lebih keren */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.card-img {
  width: 100%;
  height: 150px;       /* tinggi gambar */
  object-fit: cover;   /* POTONG GAMBAR, BUKAN GEPENG */
  display: block;
}

.img-placeholder {
  height: 150px;
  background: #ddd;
}

.card-body {
  padding: 7px 14px;
}

.card-body h3 {
  font-size: 15px;
  margin: 0 0 6px;
}

.info {
  font-size: 13px;
  color: #777;
  margin-top: 6px;
}

.resep {
  padding: 100px;
}

.resep-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.resep-header h2 {
  margin-bottom: 30px; /* ⬅️ jarak ke card */
}

.resep-header a {
  color: rgb(0, 0, 0);
  text-decoration: none;
}
.resep-populer {
  padding: 120px;          /* ⬅️ INI KUNCI */
  padding-top: 50px;
}

.section-title {
  font-size: 22px;
  font-weight: bold;
  margin-top: 0;          /* ⬅️ JUDUL NAIK */
  margin-bottom: 30px;   /* ⬅️ JARAK KE CARD */
}


.card-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.kosong {
  width: 100%;
  text-align: center;
  padding: 40px 0;
  color: #333;
  font-size: 18px;
  font-weight: 500;
}

/* ===== FOOTER ===== */
/* Styling Footer Simpel & Elegan */
.footer-orange {
    background-color: #FF8C2B; /* Warna Oranye Utama */
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

/* Bagian Logo Lingkaran Putih */
.footer-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.white-circle {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.white-circle img {
    width: 50px;
}

.brand-info p {
    font-size: 12px;
    margin: 0;
    opacity: 0.9;
}

.brand-info h3 {
    font-size: 20px;
    margin: 0;
    font-weight: bold;
}

/* Bagian Tengah */
.footer-middle {
    flex: 1;
    text-align: center;
    padding: 0 50px;
    font-size: 14px;
    border-left: 1px solid rgba(255,255,255,0.3);
    border-right: 1px solid rgba(255,255,255,0.3);
    margin: 0 30px;
}

/* Bagian Ikon Kanan */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links img {
    width: 30px;
    height: 30px;
    transition: 0.3s;
}

.social-links a:hover img {
    transform: scale(1.2);
}
/* ===== POPUP NOTIFIKASI ===== */
.notif-card {
    background: white;
    width: 90%;
    max-width: 360px;
    padding: 30px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    animation: popScale 0.3s ease;
}

@keyframes popScale {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.notif-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: bold;
    color: white;
}

.notif-icon.success {
    background: #2ecc71;
}

.notif-icon.error {
    background: #e74c3c;
}
