/* Home page styles extracted from Blade (safe for Blade parsing) */
/* This file uses CSS variables defined in the layout (colors, etc.) */

/* تحسين الأداء وضغط المحتوى */
.hero-section {
  background-attachment: scroll !important;
  will-change: transform;
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Ensure the background wrapper fills the hero and sits behind content */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image {
  transform: translateZ(0);
  backface-visibility: hidden;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(212, 165, 116, 0.8), rgba(139, 69, 19, 0.6));
  z-index: 2;
}

.hero-content { position: relative; z-index: 3; text-align: center; color: #fff; }
.hero-title { font-size: 3.5rem; font-weight: bold; margin-bottom: 1.5rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.hero-subtitle { font-size: 1.2rem; margin-bottom: 2rem; text-shadow: 1px 1px 2px rgba(0,0,0,0.3); line-height: 1.6; }

@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-section { height: 60vh; min-height: 400px; }
}

/* Feature Cards Styles */
.feature-card { transition: transform .3s ease, box-shadow .3s ease; overflow: hidden; border: none; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,.1); background: linear-gradient(135deg, #fff, #f8f9fa); min-height: 200px; display: flex; flex-direction: column; justify-content: center; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,.15); }
.feature-card .card-body { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 2rem 1.5rem; }
.feature-card .card-body i { margin-bottom: 1rem; transition: transform .3s ease; }
.feature-card:hover .card-body i { transform: scale(1.1); }
.feature-image { width: 100%; height: 200px; object-fit: cover; transition: transform .3s ease; }
.feature-card:hover .feature-image { transform: scale(1.05); }
.card-img-top { overflow: hidden; height: 200px; }

/* Owner Info Section Styles */
.owner-info { padding: 2.5rem; background: linear-gradient(135deg, #ffffff, #f8f9fa); border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.08); border: 1px solid rgba(212,165,116,.1); position: relative; overflow: hidden; }
.owner-info::before { content: ''; position: absolute; top: 0; right: 0; width: 100px; height: 100px; background: linear-gradient(135deg, rgba(212,165,116,.1), rgba(139,69,19,.1)); border-radius: 50%; transform: translate(30px, -30px); }
.owner-info h2 { color: var(--primary-color); font-weight: 700; margin-bottom: .5rem; }
.owner-info h4 { color: var(--secondary-color); font-weight: 600; margin-bottom: 1rem; }
.owner-info .lead { color: #6c757d; font-size: 1.1rem; line-height: 1.6; margin-bottom: 1.5rem; }
.owner-stats { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); border-radius: 15px; padding: 2rem; color: #fff; box-shadow: 0 5px 15px rgba(212,165,116,.2); position: relative; overflow: hidden; }
.owner-stats::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,.1) 0%, transparent 70%); animation: shimmer 3s ease-in-out infinite; }
@keyframes shimmer { 0%,100%{ transform: rotate(0deg);} 50%{ transform: rotate(180deg);} }
.stat-item { padding: 1.5rem; position: relative; z-index: 2; }
.stat-number { font-size: 3rem; color: #fff !important; margin-bottom: .5rem; font-weight: 700; text-shadow: 0 2px 4px rgba(0,0,0,.1); }
.stat-label { color: rgba(255,255,255,.95) !important; font-size: 1rem; font-weight: 500; text-shadow: 0 1px 2px rgba(0,0,0,.1); }
.owner-image-container { position: relative; }
.owner-image-placeholder { background: linear-gradient(135deg, rgba(212,165,116,.1), rgba(139,69,19,.1)); border-radius: 50%; width: 300px; height: 300px; margin: 0 auto; display: flex; align-items: center; justify-content: center; border: 3px solid var(--primary-color); }
.owner-badge { position: relative; z-index: 2; }
.certificates { background: linear-gradient(135deg, rgba(212,165,116,.08), rgba(139,69,19,.08)); padding: 1.5rem; border-radius: 15px; border-right: 4px solid var(--primary-color); box-shadow: 0 3px 10px rgba(212,165,116,.1); }
.certificates h6 { color: var(--primary-color); font-weight: 600; margin-bottom: 1rem; }
.certificates li { color: #6c757d; font-size: .95rem; margin-bottom: .5rem; }
.certificates i { color: var(--primary-color); font-size: .9rem; }
.owner-actions .btn { border-radius: 30px; padding: 1rem 2.5rem; font-weight: 600; transition: all .3s ease; font-size: 1rem; position: relative; overflow: hidden; }
.owner-actions .btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent); transition: left .5s; }
.owner-actions .btn:hover::before { left: 100%; }
.owner-actions .btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(212,165,116,.4); }
.owner-actions .btn-primary { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); border: none; }
.owner-actions .btn-outline-primary { border: 2px solid var(--primary-color); color: var(--primary-color); background: transparent; }
.owner-actions .btn-outline-primary:hover { background: var(--primary-color); color: #fff; }

@media (max-width: 768px) {
  .owner-info { padding: 2rem; margin-bottom: 2rem; border-radius: 15px; }
  .owner-info::before { width: 60px; height: 60px; transform: translate(20px, -20px); }
  .owner-image-placeholder { width: 200px; height: 200px; }
  .stat-number { font-size: 2.5rem; }
  .owner-stats { padding: 1.5rem; }
  .owner-actions .btn { padding: .875rem 2rem; font-size: .95rem; }
}

/* Countries and Cities Section Styles */
.countries-cities-section .card { transition: transform .3s ease, box-shadow .3s ease; border-radius: 15px; }
.countries-cities-section .card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,.15) !important; }
.countries-cities-section .card-body { padding: 2rem; }
.countries-cities-section .text-success { color: #28a745 !important; }
.countries-cities-section .text-warning { color: #ffc107 !important; }

/* Floating Ad Banner */
.floating-ad-banner { position: fixed; top: 20px; right: 20px; width: 380px; max-width: 90vw; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.1), inset 0 1px 0 rgba(255,255,255,.2); z-index: 9999; animation: slideInRight .6s cubic-bezier(0.68,-0.55,0.265,1.55); border: none; overflow: hidden; backdrop-filter: blur(10px); transform-origin: right center; }
.floating-ad-banner::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57); animation: shimmer 2s ease-in-out infinite; }
.floating-ad-banner::after { content: '🔥 عرض خاص'; position: absolute; top: -8px; right: 20px; background: linear-gradient(45deg, #ff6b6b, #ff8e53); color: #fff; padding: 4px 12px; border-radius: 12px; font-size: .7rem; font-weight: bold; box-shadow: 0 4px 15px rgba(255,107,107,.4); animation: pulse 2s ease-in-out infinite; }
.floating-ad-banner .ad-content { padding: 20px; display: flex; align-items: center; gap: 15px; position: relative; z-index: 2; }
.floating-ad-banner .ad-text { flex: 1; color: #fff; }
.floating-ad-banner .ad-text h5 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 700; text-shadow: 0 2px 4px rgba(0,0,0,.3); line-height: 1.3; }
.floating-ad-banner .ad-text p { margin: 0; font-size: .9rem; opacity: .95; line-height: 1.4; text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.floating-ad-banner .ad-actions { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.floating-ad-banner .close-ad { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.2); border: none; color: #fff; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .3s ease; }
.floating-ad-banner .close-ad:hover { background: rgba(255,255,255,.3); transform: scale(1.1); }

/* Fixed Ad Container */
.fixed-ad-container { position: relative; margin: 30px 0; background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.2), 0 0 0 1px rgba(255,255,255,.1); overflow: hidden; transition: all .3s ease; }
.fixed-ad-container::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4); animation: shimmer 3s ease-in-out infinite; }
.fixed-ad-container:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.2); }
.fixed-ad-content { padding: 25px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #fff; }
.fixed-ad-text { flex: 1; }
.fixed-ad-text h5 { margin: 0 0 10px; font-size: 1.3rem; font-weight: 700; text-shadow: 0 2px 4px rgba(0,0,0,.3); }
.fixed-ad-text p { margin: 0; font-size: 1rem; opacity: .95; line-height: 1.4; }
.fixed-ad-price { margin-top: 8px; }
.fixed-ad-price .price-tag { background: linear-gradient(135deg, #ffd700, #ffed4e); color: #333; padding: 6px 12px; border-radius: 15px; font-size: .9rem; font-weight: 700; display: inline-block; box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.fixed-ad-actions { flex-shrink: 0; }
.fixed-ad-actions .btn { padding: 12px 24px; border-radius: 25px; font-weight: 600; font-size: 1rem; transition: all .3s ease; box-shadow: 0 5px 15px rgba(0,0,0,.2); border: 2px solid rgba(255,255,255,.3); }
.fixed-ad-actions .btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,.3); }

@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes pulse { 0%,100%{ transform: scale(1);} 50%{ transform: scale(1.05);} }

/* AdSense placeholders */
.adsense-container { margin: 20px 0; padding: 20px; text-align: center; background: #f8f9fa; border: 1px dashed #dee2e6; border-radius: 8px; position: relative; }
.adsense-container::before { content: 'مساحة إعلانية'; position: absolute; top: 5px; left: 50%; transform: translateX(-50%); font-size: 10px; color: #6c757d; background: #fff; padding: 2px 8px; border-radius: 4px; }
.adsense-square { display: inline-block; margin: 15px; padding: 10px; background: #f8f9fa; border: 1px dashed #dee2e6; border-radius: 8px; }

/* Lazy images */
img[loading="lazy"]{ opacity:0; transition: opacity .3s; }
img[loading="lazy"].loaded{ opacity:1; }

@media (max-width: 768px){ .adsense-square ins { width: 320px !important; height: 100px !important; } }

@media (prefers-reduced-motion: reduce){ .hero-title,.hero-subtitle,.btn{ animation: none !important; transition: none !important; } }

@media (prefers-contrast: high){ .hero-overlay{ background: rgba(0,0,0,.8) !important; } .text-primary{ color:#0056b3 !important; } }

.fixed-ad-container:hover{ animation: pulse 2s infinite; }
