/*
Theme Name: Bofferly Islamic Guide
Theme URI: https://bofferly-islamic-guide.lovable.app
Author: Bofferly Media Co.
Author URI: https://bofferly-islamic-guide.lovable.app
Description: A one-page Islamic guide theme that embeds the Bofferly app via iframe with full-width layout and Islamic styling.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bofferly
Tags: one-column, full-width-template, custom-background, custom-colors, custom-logo
*/

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --islamic-green: #1a6b4a;
  --islamic-green-light: #2d8f66;
  --gold: #d4a017;
  --gold-light: #e6c34d;
  --cream: #faf8f5;
  --cream-dark: #f0ece5;
  --text-dark: #1a3d2e;
  --text-muted: #5a7d6a;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 107, 74, 0.1);
  padding: 0.75rem 0;
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--islamic-green) 0%, var(--islamic-green-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
}

.site-title {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  color: var(--text-dark);
}

.site-tagline {
  font-size: 0.625rem;
  color: var(--text-muted);
  margin-top: -2px;
}

.header-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  transition: all 0.2s;
}

.header-nav a:hover {
  color: var(--text-dark);
  background: var(--cream-dark);
}

/* App Embed Section */
.app-embed-section {
  width: 100%;
  min-height: calc(100vh - 120px);
}

.app-embed-section iframe {
  width: 100%;
  height: calc(100vh - 60px);
  border: none;
  display: block;
}

/* Footer */
.site-footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1.5rem;
}

.site-footer .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-links h4 {
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-ideology {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.footer-ideology strong {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Hamburger Button */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.2s;
  flex-direction: column;
  gap: 5px;
  z-index: 110;
}

.hamburger:hover {
  background: var(--cream-dark);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.is-active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  border-top: 1px solid rgba(26, 107, 74, 0.1);
  background: var(--cream);
  padding: 1rem 1.5rem;
  animation: slideDown 0.3s ease-out;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav-list,
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-list li a,
.mobile-nav ul li a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.mobile-nav-list li a:hover,
.mobile-nav ul li a:hover {
  background: var(--cream-dark);
}

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

/* Responsive */
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
