/* Global styles for Arabic Songs Information Website */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

:root {
  --bg: #fdfcf7;
  --text: #084b7f;
  --text-secondary: #8ccccc;
  --btn-bg: #c68164;
  --btn-text: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  font-family: 'Cairo', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
}

img { max-width: 100%; height: auto; display: block; }

.container { width: min(100%, 1100px); margin-inline: auto; padding: 16px; }

/* Header + Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid #e9e6de;
}

.navbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; }

/* Centered navbar variant (used on public header without brand) */
.navbar--center { justify-content: center; position: relative; }
.navbar--center .menu { margin-inline: auto; }
.navbar--center .hamburger { position: absolute; inset-inline-end: 16px; inset-inline-start: auto; top: 50%; transform: translateY(-50%); }

/* Hamburger */
.hamburger { width: 40px; height: 40px; display: grid; place-items: center; background: transparent; border: 1px solid #e0ddd3; border-radius: 8px; cursor: pointer; }
.hamburger span,
.hamburger::before,
.hamburger::after { content: ''; display: block; width: 20px; height: 2px; background: var(--text); transition: transform .3s ease, opacity .3s ease; }
.hamburger::before { transform: translateY(-6px); }
.hamburger::after { transform: translateY(6px); }

/* Menu */
.menu { list-style: none; margin: 0; padding: 0; display: none; flex-direction: column; gap: 8px; padding: 12px 0; }
.menu a { text-decoration: none; color: var(--text); padding: 10px 12px; display: block; border-radius: 8px; }
.menu a:hover { background: #f2efe7; }
.menu a.is-active { background: #c68164; font-weight: 700; }

/* Desktop */
@media (min-width: 800px) {
  .hamburger { display: none; }
  .menu { display: flex !important; flex-direction: row; gap: 4px; }
  .menu a { padding: 10px 14px; }
}

/* Main content */
.main { padding: 24px 16px 48px; }
.center { display: grid; place-items: center; text-align: center; gap: 16px; }
.placeholder-text { color: var(--text); line-height: 1.9; font-weight: 400; }

/* Social footer */
.footer { margin-top: 40px; padding: 20px 16px 40px; border-top: 1px solid #e9e6de; }
.social { display: flex; justify-content: center; gap: 16px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; background: var(--btn-bg); border-radius: 50%; text-decoration: none; }
.social a:hover { filter: brightness(0.95); }

/* Utility */
.btn { background: var(--btn-bg); color: var(--btn-text); border: none; padding: 10px 16px; border-radius: 10px; cursor: pointer; text-decoration: none; }
.btn:hover, .btn:focus { text-decoration: none; }

/* Open state for mobile menu */
.nav-open .menu { display: flex; }
