/* =====================================
   🌑 GLOBAL VARIABLES
===================================== */
:root {
  --primary: #6500ff;
  --accent: #00ffcc;
  --bg-dark: #121212;
  --card-dark: #1f1f1f;
  --input-dark: #2a2a2a;
  --text-light: #f0f0f0;
  --danger: #ff4444;
}

/* =====================================
   ✨ BASE STYLES
===================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
}

h1, h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 20px;
}

/* =====================================
   🧱 REUSABLE COMPONENTS
===================================== */
.container {
  max-width: 800px;
  margin: 60px auto;
  padding: 20px;
  background: var(--card-dark);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(101, 0, 255, 0.2);
}

button, .btn {
  padding: 12px 20px;
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease;
}

button:hover, .btn:hover {
  background-color: #7d33ff;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="url"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  background: var(--input-dark);
  border: none;
  border-radius: 8px;
  color: white;
}

/* =====================================
   🚪 LOGIN FORM
===================================== */
.login-box {
  max-width: 400px;
  margin: 80px auto;
  padding: 30px;
  background: var(--card-dark);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(101, 0, 255, 0.4);
}

.captcha-wrapper {
      text-align: center;
      margin: 20px 0;
    }

    .captcha-img {
      width: 120px;
      height: 40px;
      cursor: pointer;
      transition: transform 0.3s ease;
      border-radius: 6px;
    }

    .captcha-img:hover {
      transform: rotate(10deg);
    }

    .login-box form {
      display: flex;
      flex-direction: column;
    }

    .login-box form label,
    .login-box form input {
      margin-bottom: 10px;
    }

/* =====================================
   📢 ERROR / ALERT
===================================== */
.error {
  color: var(--danger);
  text-align: center;
  margin-bottom: 10px;
}

/* =====================================
   🎉 HERO SECTION (optional)
===================================== */
.hero {
  background: linear-gradient(145deg, #6500ff, #00ffcc);
  padding: 100px 20px 60px;
  text-align: center;
  color: white;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero-subtext {
  font-size: 1.2rem;
  color: #cccccc;
}

/* =====================================
   🔗 LINK GRID (Social Stream Style)
===================================== */
.stream-header {
  padding: 30px;
  text-align: center;
  background: #000;
  border-bottom: 2px solid var(--primary);
}

.stream-header h1 {
  font-size: 2rem;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

.grid-stream {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 40px;
}

.grid-card {
  background: var(--card-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.grid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(0, 255, 204, 0.3);
}

.card-header {
  padding: 12px 16px;
  font-weight: bold;
  color: var(--accent);
  background: #121212;
  border-bottom: 1px solid #222;
}

.grid-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card-body {
  padding: 16px;
  flex-grow: 1;
}

.card-body p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: #ddd;
}

.card-link {
  display: inline-block;
  padding: 10px 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s ease;
}

.card-link:hover {
  background: #7d33ff;
}

/* =====================================
   🛠️ ADMIN PANEL
===================================== */
.panel h1 {
  margin-bottom: 20px;
}

.link-form {
  margin-bottom: 30px;
}

.link-form input {
  margin-bottom: 10px;
}

.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-list li {
  background: #1a1a1a;
  padding: 12px 16px;
  margin-bottom: 10px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.remove-btn {
  background: var(--danger);
  padding: 6px 12px;
  border-radius: 6px;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

/* =====================================
   📱 CONTACT ME SECTION
===================================== */

.contact-me-section {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  text-align: center;
}

.contact-email {
  display: none;
  margin-bottom: 8px;
  font-size: 1rem;
  color: #333;
  background: gray;
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease;
}

.contact-me-section:hover .contact-email {
  display: block;
}

.contact-button {
  display: inline-block;
  padding: 14px 28px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #000;
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  border: none;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(255, 65, 108, 0.3);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-button:hover {
  background: linear-gradient(135deg, #ff4b2b, #ff416c);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(255, 65, 108, 0.4);
}

.sortable-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  background: #222;
  padding: 10px;
  border-radius: 5px;
}

.link-container {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}

.drag-handle {
  cursor: grab;
  margin-right: 10px;
  font-size: 1.2em;
}

.save-order-btn {
  margin-top: 15px;
  padding: 10px 15px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* =====================================
   📱 RESPONSIVE
===================================== */
@media screen and (max-width: 600px) {
  .grid-stream {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }
}
