<!DOCTYPE html>
<html lang="tr">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <title>Premium Domain Satılık</title>
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap" rel="stylesheet" />
  <style>
    body {
      margin: 0;
      font-family: 'Inter', sans-serif;
      background-color: #f9f9f9;
      color: #222;
      overflow-x: hidden;
    }

    .hero {
      background: #fffbe6;
      text-align: center;
      padding: 50px 20px 30px;
      border-bottom: 1px solid #ddd;
    }

    .hero h1 {
      font-size: 2.2em;
      margin: 0;
      font-weight: 800;
      color: #c89d00;
    }

    .hero p {
      font-size: 1em;
      color: #444;
      margin-top: 10px;
    }

    .card {
      background: #ffffff;
      max-width: 600px;
      margin: 30px auto;
      padding: 30px;
      border-radius: 12px;
      box-shadow: 0 0 10px rgba(0,0,0,0.05);
      border: 1px solid #eee;
    }

    .domain-name {
      font-size: 1.8em;
      font-weight: 700;
      color: #222;
      margin-bottom: 10px;
    }

    .price {
      font-size: 1.4em;
      color: #4CAF50;
      margin-bottom: 25px;
    }

    form input,
    form textarea {
      width: 100%;
      box-sizing: border-box;
      padding: 14px;
      margin: 10px 0;
      border-radius: 6px;
      border: 1px solid #ccc;
      background-color: #fff;
      color: #222;
      font-size: 1em;
    }

    form textarea {
      resize: vertical;
    }

    .whatsapp-button {
      display: inline-block;
      width: 100%;
      padding: 14px;
      background-color: #25D366;
      color: #fff;
      font-size: 1em;
      font-weight: bold;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    .whatsapp-button:hover {
      background-color: #1ebd5a;
    }

    footer {
      text-align: center;
      padding: 30px 20px;
      font-size: 0.9em;
      color: #777;
    }

    @media (max-width: 600px) {
      .hero h1 {
        font-size: 1.6em;
      }

      .card {
        margin: 20px;
        padding: 25px 20px;
      }
    }
  </style>
</head>
<body>
  <div class="hero">
    <h1>örnekdomain.com Satılık</h1>
    <p>Markanıza prestij katacak güçlü bir alan adı</p>
  </div>

  <div class="card">
    <div class="domain-name">örnekdomain.com</div>
    <div class="price">24.999₺</div>

    <form id="contactForm">
      <input type="text" id="name" placeholder="Adınız Soyadınız" required />
      <input type="email" id="email" placeholder="E-posta adresiniz" required />
      <textarea id="message" placeholder="Teklifiniz veya mesajınız..." rows="4" required></textarea>
      <button type="submit" class="whatsapp-button">WhatsApp ile İletişime Geç</button>
    </form>
  </div>

  <footer>
    &copy; 2025 örnekdomain.com — Tüm hakları saklıdır.
  </footer>

  <script>
    document.getElementById('contactForm').addEventListener('submit', function (e) {
      e.preventDefault();

      const name = document.getElementById('name').value.trim();
      const email = document.getElementById('email').value.trim();
      const message = document.getElementById('message').value.trim();

      const phoneNumber = '905320000000'; // ← BURAYA KENDİ NUMARANI GİR
      const text = `Merhaba, ben ${name} (${email}).\nSatılık domain için iletişime geçiyorum: örnekdomain.com\nMesajım:\n${message}`;
      const encodedText = encodeURIComponent(text);

      const whatsappURL = `https://wa.me/${phoneNumber}?text=${encodedText}`;

      window.open(whatsappURL, '_blank');
    });
  </script>
</body>
</html>