<!DOCTYPE html>
<html lang="ar" dir="rtl">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="csrf-token" content="{{ csrf_token() }}">
  <title>@yield('title', 'منصة سدر الذكية')</title>

  <!-- ربط ملف CSS -->
  <link rel="stylesheet" href="{{ asset('css/index.css') }}">

  <!-- روابط FontAwesome و Google Fonts -->
  <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Lateef:wght@200;300;400;500;600;700;800&display=swap">
  <link href="https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">

  @yield('styles')

  <style>
    /* ===== Custom CSS ===== */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: "Lateef", serif;
    }

    body {
      position: relative;
      background: url("../images/4.jpg") center/cover no-repeat;
      min-height: 100vh;
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: #1E1B26;
    }

    body::before {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(30, 27, 38, 0.65);
      z-index: 0;
    }

    .hero {
      position: relative;
      z-index: 1;
      text-align: center;
      padding: 40px 20px;
      width: 700px;
      height: 680px;
    }

    .logo {
      width: 90px;
      margin-bottom: 10px;
      border-radius: 50%;
      border: 2px solid #fff;
      padding: 3px;
      box-shadow: rgba(255, 211, 105, 0.4) 0px 0px 15px;
    }

    .header h1 {
      font-size: 50px;
      margin-bottom: 5px;
      color: #fff;
    }

    .header p {
      color: #ddd;
      margin-bottom: 40px;
      font-size: 25px;
    }

    /* ===== HEX GRID ===== */
    .hex-grid {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
      position: relative;
      right: 30px;
    }

    .row {
      display: flex;
      justify-content: center;
      gap: 25px;
    }

    .row.single {
      margin-bottom: -10px;
    }

    .row.double {
      margin-top: -10px;
    }

    .orange {
      position: relative;
      top: 30px;
    }

    .purple {
      position: relative;
      bottom: 50px;
    }

    /* الشكل السداسي */
    .hex {
      width: 130px;
      height: 130px;
      background: #333;
      clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-weight: 600;
      transition: 0.3s;
      box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
      cursor: pointer;
    }

    .hex:hover {
      transform: translateY(-5px) scale(1.05);
      box-shadow: 0 0 15px rgba(255, 255, 255, 0.25);
    }

    .hex i {
      font-size: 24px;
      margin-bottom: 8px;
    }

    .hex p {
      font-size: 22px;
    }

    /* الألوان */
    .orange { background: #F29C38; }
    .teal { background: #3CA69C; }
    .purple { background: #2B6BB6; }
    .blue { background: #33969E; }

    /* Responsive */
    @media (max-width: 600px) {
      .hero {
        width: 80%;
        height: 570px;
      }
      .header p {
        font-size: 20px;
      }
      .header h1 {
        font-size: 40px;
      }

      .hex {
        width: 90px;
        height: 90px;
        font-size: 13px;
      }

      .orange {
        position: relative;
        top: 20px;
      }

      .purple {
        position: relative;
        bottom: 40px;
      }

      .hex i {
        font-size: 18px;
        margin-bottom: 0px;
      }
    }

    /* Values Section */
    :root {
      --primary-color: #8B0000;
      --secondary-color: #0066CC;
      --success-color: #43e97b;
      --warning-color: #fa709a;
      --info-color: #4facfe;
      --danger-color: #ff6b6b;
      --light-color: #f8f9fa;
      --dark-color: #343a40;
    }

    /* Loading Animation */
    .loading {
      display: inline-block;
      width: 20px;
      height: 20px;
      border: 3px solid rgba(255,255,255,.3);
      border-radius: 50%;
      border-top-color: #fff;
      animation: spin 1s ease-in-out infinite;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    /* Custom Scrollbar */
    ::-webkit-scrollbar {
      width: 8px;
    }

    ::-webkit-scrollbar-track {
      background: rgba(255, 255, 255, 0.1);
      border-radius: 10px;
    }

    ::-webkit-scrollbar-thumb {
      background: var(--gradient-primary);
      border-radius: 10px;
    }

    ::-webkit-scrollbar-thumb:hover {
      background: var(--gradient-secondary);
    }
  </style>

</head>
<body>

  <!-- الهيدر -->
  <header class="main-header">
    <div class="container">
      <a href="{{ url('/') }}" class="logo">منصة سدر الذكية</a>
    </div>
  </header>

  <!-- محتوى الصفحة -->
  <main class="page-content">
    @yield('content')
  </main>

  <!-- الفوتر -->
  <footer class="main-footer">
    <div class="container">
      <p>© {{ date('Y') }} منصة سدر الذكية - جميع الحقوق محفوظة</p>
      <p>
        <a href="#">سياسة الخصوصية</a> | <a href="#">تواصل معنا</a>
      </p>
    </div>
  </footer>

  <!-- روابط JS -->
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
  @yield('scripts')
</body>
</html>
