/*
  Social Page Styles - وايت دايموند بلازا
  Dedicated styles for social.html page
*/

/* ===== IMPORTS & ROOT VARIABLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&family=Cairo:wght@300;400;500;600;700;800&display=swap');

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

:root {
  /* White Diamond Plaza Brand Color Palette - Original Style */
  --bg: #1E222D;                    /* Dark blue background */
  --surface: #2C2F3A;               /* Darker blue surface */
  --surface-2: #34495E;             /* Medium blue */
  --text: #ffffff;                  /* White text */
  --muted: #C8A87C;                 /* Gold accent for secondary text */
  --primary: #C8A87C;               /* Gold - primary brand color */
  --primary-700: #8C6B46;           /* Darker gold for hover states */
  --accent: #010d18;                /* Bright gold accent */
  --accent-light: #F5DEB3;          /* Light gold for highlights */
  --ok: #25D366;                    /* WhatsApp green */
  --danger: #E74C3C;                /* Error red */
  --royal-blue: #1E222D;            /* Dark blue */
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,0.3);
  --shadow-light: 0 4px 15px rgba(0,0,0,0.2);
  --white: #ffffff;
  --black: #000000;
  --overlay-weak: rgba(0,0,0,.1);
  --overlay-mid: rgba(0,0,0,.2);
  --overlay-strong: rgba(0,0,0,.3);
  --duration-fast: .2s;
  --duration: .3s;
  --duration-slow: .6s;
  --easing-standard: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== GLOBAL STYLES ===== */
* { 
  box-sizing: border-box; 
}

body {
  font-family: 'Cairo', 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Prevent horizontal overflow globally */
* {
  max-width: 100%;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  max-width: 100vw;
}

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== NAVIGATION STYLES ===== */
.navbar {
  background: linear-gradient(135deg, #1E222D, #2C2F3A, #1E222D);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  border-bottom: 2px solid var(--primary);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--white);
}

.logo-image {
  height: 50px;
  width: auto;
}

.nav-logo h1 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: var(--white);
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color var(--duration) var(--easing-standard);
  position: relative;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--duration) var(--easing-standard);
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--white);
  transition: 0.3s;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.mobile-overlay.active {
  display: flex;
}

.mobile-menu {
  background: #2b2e39;
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--surface);
}

.mobile-menu-header h2 {
  color: var(--text);
  margin: 0;
}

.close-menu {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text);
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-list li {
  margin-bottom: 1rem;
}

.mobile-nav-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  display: block;
  transition: color var(--duration) var(--easing-standard);
}

.mobile-nav-list a:hover {
  color: var(--primary);
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, rgba(30, 34, 45, 0.8), rgba(44, 47, 58, 0.8), rgba(30, 34, 45, 0.8)), 
              url('../imgs/masjid-nabawi-3639064.jpg') center/cover no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(200, 168, 124, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  color: var(--text);
  font-family: 'Playfair Display', 'Cairo', serif;
  font-weight: 700;
  line-height: 1.2;
}

.hero-description {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: white;
  margin-bottom: 2rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ===== SECTIONS ===== */
.section {
  padding: 3rem 0;
  position: relative;
}

.social-links-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  max-width: 100%;
  overflow-x: hidden;
}

.social-card {
  background: linear-gradient(135deg, #2C2F3A, #34495E);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all var(--duration) var(--easing-standard);
  border: 2px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.social-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.social-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: var(--accent);
}

.social-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  color: var(--primary);
  transition: all var(--duration) var(--easing-standard);
}

.social-icon i {
  font-size: inherit;
  color: inherit;
  transition: all var(--duration) var(--easing-standard);
}

.social-card:hover .social-icon {
  color: var(--accent);
  transform: scale(1.1) rotate(5deg);
}

.social-card h3 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.social-card p {
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  border-radius: var(--radius);
  padding: clamp(0.6rem, 2vw, 0.75rem) clamp(1rem, 4vw, 1.5rem);
  border: 1px solid transparent;
  font-family: 'Cairo', 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(0.875rem, 2vw, 1rem);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  min-height: 44px;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, #C8A87C, #8C6B46);
  color: var(--white);
  font-weight: 700;
  box-shadow: var(--shadow-light);
  border: 2px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(200, 168, 124, 0.5);
  border-color: var(--accent);
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(135deg, #1E222D, #2C2F3A);
  padding: 2rem 0;
  border-top: 2px solid var(--primary);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-section h3 {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-section p {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.footer-section a {
  transition: color var(--duration) var(--easing-standard);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  background: var(--white);
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  font-size: 1.5rem;
}

.social-links a i {
  font-size: 1.2rem;
  color: inherit;
  transition: all 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.social-links a:hover i {
  transform: rotate(5deg) scale(1.1);
}

/* Facebook - Blue */
.social-links a[href*="facebook.com"] {
  background: #1877F2;
  border-color: #1877F2;
}

.social-links a[href*="facebook.com"]:hover {
  background: #166FE5;
  border-color: #166FE5;
}

/* TikTok - Black */
.social-links a[href*="tiktok.com"] {
  background: #000000;
  border-color: #000000;
}

.social-links a[href*="tiktok.com"]:hover {
  background: #333333;
  border-color: #333333;
}

/* Snapchat - Yellow */
.social-links a[href*="snapchat.com"] {
  background: #FFFC00;
  border-color: #FFFC00;
  color: #000000;
}

.social-links a[href*="snapchat.com"]:hover {
  background: #E6E600;
  border-color: #E6E600;
}

/* Email - Red */
.social-links a[href*="mailto"] {
  background: #EA4335;
  border-color: #EA4335;
}

.social-links a[href*="mailto"]:hover {
  background: #D33B2C;
  border-color: #D33B2C;
}

/* WhatsApp - Green */
.social-links a[href*="wa.me"] {
  background: #25D366;
  border-color: #25D366;
}

.social-links a[href*="wa.me"]:hover {
  background: #128C7E;
  border-color: #128C7E;
}

/* X (Twitter) - Black */
.social-links a[href*="x.com"] {
  background: #000000;
  border-color: #000000;
}

.social-links a[href*="x.com"]:hover {
  background: #333333;
  border-color: #333333;
}

/* YouTube - Red */
.social-links a[href*="youtube.com"] {
  background: #FF0000;
  border-color: #FF0000;
}

.social-links a[href*="youtube.com"]:hover {
  background: #CC0000;
  border-color: #CC0000;
}

/* Linktree - Blue */
.social-links a[href*="linktr.ee"] {
  background: #1DA1F2;
  border-color: #1DA1F2;
}

.social-links a[href*="linktr.ee"]:hover {
  background: #0d8bd9;
  border-color: #0d8bd9;
}

/* Instagram - White Background */
.social-links a[href*="instagram.com"] {
  background: white;
  border-color: #bc1888;
  color: #bc1888;
}

.social-links a[href*="instagram.com"]:hover {
  background: #f8f9fa;
  border-color: #a5147a;
  color: #a5147a;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(44,62,80,.06);
}

.footer-bottom p {
  color: white;
  margin: 0;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(200, 168, 124, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(200, 168, 124, 0.6);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.social-card {
  animation: float 6s ease-in-out infinite;
}

.social-card:nth-child(2) {
  animation-delay: 1s;
}

.social-card:nth-child(3) {
  animation-delay: 2s;
}

.social-card:nth-child(4) {
  animation-delay: 3s;
}

/* ===== RESPONSIVE DESIGN ===== */
/* Tablet styles - fix footer social links width */
@media (min-width: 769px) and (max-width: 1024px) {
  .footer-container {
    max-width: 100%;
    padding: 0 2rem;
  }
  
  .social-links {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }
  
  .social-links a {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  .container {
    max-width: 100%;
    padding: 0 2rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hero {
    padding: 2rem 0;
    min-height: 50vh;
  }
  
  .hero-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }
  
  .hero-description {
    font-size: clamp(1rem, 3vw, 1.2rem);
  }
  
  .social-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .social-card {
    padding: 1.5rem;
    max-width: 100%;
    overflow: hidden;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  /* Fix mobile overflow */
  .container {
    padding: 0 1rem;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .social-links-container {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .nav-container {
    padding: 0 1rem;
    max-width: 100%;
  }
  
  .footer-container {
    padding: 0 10rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .nav-container {
    padding: 0 0.75rem;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .hero {
    padding: 1.5rem 0;
  }
  
  .social-card {
    padding: 1rem;
    max-width: 100%;
    overflow: hidden;
    word-wrap: break-word;
  }
  
  .social-icon {
    font-size: 2.5rem;
  }
  
  .social-links-container {
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .footer-container {
    padding: 0 0.75rem;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .social-links {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .social-links a {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
}
