/* ============================================================
   MeritClub Unified CSS (Conflict-Free Final Build)
   Compatible with quiz/ and tricks/ sections
   ============================================================ */

/* === Global Reset === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  height: 100%;
  font-family: "Arial", sans-serif;
  background-color: #f8f9fa;
  color: #222;
}
body { display: flex; flex-direction: column; min-height: 100vh; }

/* === Floating Social Buttons === */
.social-floating {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
}
.social-floating .social-icon {
  display: block;
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  font-size: 20px;
  color: white;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}
.social-floating .social-icon:hover { transform: translateY(-5px); }
.social-floating .facebook { background-color: #3b5998; }
.social-floating .twitter { background-color: #1da1f2; }
.social-floating .whatsapp { background-color: #25d366; }

/* === Quiz Styles === */
.question-container { min-height: 400px; }
.progress { height: 10px; }
.score-circle { max-width: 200px; margin: 0 auto; }
.text-danger { color: #dc3545 !important; }
.fw-bold { font-weight: bold !important; }

/* === Responsive === */
@media (max-width: 768px) {
  .quiz-info .col-md-4 { margin-bottom: 10px; }
  .pricing-card { margin-bottom: 20px; }
}

/* === Animation === */
@keyframes correctAnswer {
  0% { background-color: inherit; }
  50% { background-color: rgba(76, 175, 80, 0.3); }
  100% { background-color: inherit; }
}
@keyframes wrongAnswer {
  0% { background-color: inherit; }
  50% { background-color: rgba(244, 67, 54, 0.3); }
  100% { background-color: inherit; }
}
.correct { animation: correctAnswer 1.5s ease; }
.wrong { animation: wrongAnswer 1.5s ease; }

/* === Header === */
header, .site-header {
  background-color: #008080;
  color: #fff;
  padding: 12px 20px;
  width: 100%;
}
header .wrap, .site-header .wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
header a, .site-header a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  margin: 0 8px;
}
header a:hover, .site-header a:hover { text-decoration: underline; }

/* === Auth Buttons === */
.btn-login, .btn-signup {
  background: #b8ded7;
  color: #008080;
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-login:hover, .btn-signup:hover {
  background: #006d6d;
  color: #fff;
  border-color: #006d6d;
}

/* === Layout Container === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  flex: 1;
}

/* === Grid === */
.row { display: flex; flex-wrap: wrap; margin: -10px; }
[class*="col-"] { padding: 10px; box-sizing: border-box; }
.col-md-3 { width: 25%; }
.col-md-4 { width: 33.33%; }
.col-md-8 { width: 66.66%; }
@media (max-width: 768px) {
  .col-md-3, .col-md-4, .col-md-8 { width: 100%; }
}

/* === Card === */
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 6px 18px rgba(0,0,0,0.1); }
.card h5, .card h4, .card-title { color: #008080; margin-bottom: 10px; }

/* === Hero Section === */
.hero-section {
  background: #e7f9f9;
  border-radius: 10px;
  padding: 50px 20px;
  margin-top: 20px;
}
.hero-section h2 { color: #006d6d; }
.hero-section p { font-size: 18px; color: #444; }

/* === Unified Buttons === */
.btn, a.btn, button {
  display: inline-block;
  background: #008080;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn:hover, a.btn:hover, button:hover {
  background: #006d6d;
  color: #fff !important;
}
.btn-outline-primary {
  background: #fff;
  color: #008080 !important;
  border: 2px solid #008080;
}
.btn-outline-primary:hover {
  background: #008080;
  color: #fff !important;
}
.btn-success { background: #28a745; }
.btn-success:hover { background: #218838; }
.btn-warning { background: #ffb300; color: #222 !important; }
.btn-warning:hover { background: #e0a000; }

/* === Tricks Tabs === */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.tab {
  background: #f1f1f1;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}
.tab.active, .tab:hover { background: #008080; color: #fff; }

/* === Footer === */
footer, .site-footer {
  background: #008080;
  color: #fff;
  text-align: center;
  padding: 25px 0;
  width: 100%;
  margin-top: auto;
}
footer p, .site-footer p {
  margin: 6px 0;
  font-size: 15px;
  word-wrap: break-word;
}

/* === Signup/Login Form (Merged Final) === */
form {
  max-width: 480px;
  margin: 40px auto;
  padding: 40px 30px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

form .form-group,
form .input-group {
  margin-bottom: 22px;
}

form label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  color: #004d4d;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="number"],
form select,
form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.3s ease;
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: #008080;
  box-shadow: 0 0 4px rgba(0,128,128,0.3);
}

form .btn,
form button[type="submit"] {
  display: block;
  width: 100%;
  max-width: 200px;
  margin: 20px auto 10px;
  background: #008080;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
}

form .btn:hover {
  background: #006d6d;
}
