/*
Theme Name: Child-Theme
Description: Child theme for hello-elementor
Author: Viktor
Author URI: http://softorstudio.com
Template: hello-elementor
Version: 1.0
*/

 /* Din egen CSS här */
 /*Klassen för själva sektionen heter comments-area. 
 Den har en div i sig med klassen comment-respond. 
 Därefter finns comment-reply-title (h2). 
 sen har du en form med klassen comment-form som har 
 tre p-taggar. .logged-in-as, comment-form-comment och form-submit (knappen). 
 Se till att den blir responsiv */
/* ====== Comment area wrapper ====== */
/* ====== Comment area wrapper ====== */
.comments-area {
  max-width: 700px;
  margin: 3rem auto;
  padding: 2rem 1.75rem;
  background: #f9fafb;
  border-radius: 1.25rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

/* ====== Inner box ====== */
.comments-area .comment-respond {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ====== Title ====== */
.comments-area .comment-reply-title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: 0.03em;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comments-area .comment-reply-title::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #6366f1);
}

/* ====== Form ====== */
.comments-area .comment-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 0;
}

/* Alla p-taggar i formuläret */
.comments-area .comment-form p {
  margin: 0;
}

/* Logged in text ====== */
.comments-area .comment-form .logged-in-as {
  font-size: 0.9rem;
  color: #64748b;
}

.comments-area .comment-form .logged-in-as a {
  color: #0f766e;
  text-decoration: none;
  font-weight: 500;
}

.comments-area .comment-form .logged-in-as a:hover,
.comments-area .comment-form .logged-in-as a:focus-visible {
  text-decoration: underline;
}

/* ====== Comment textarea ====== */
.comments-area .comment-form .comment-form-comment label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

.comments-area .comment-form .comment-form-comment textarea {
  width: 100%;
  min-height: 160px;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid #cbd5f5;
  background: #ffffff;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #0f172a;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.comments-area .comment-form .comment-form-comment textarea::placeholder {
  color: #94a3b8;
}

.comments-area .comment-form .comment-form-comment textarea:focus-visible {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.5);
  background-color: #fefefe;
}

/* ====== Submit button ====== */
.comments-area .comment-form .form-submit {
  display: flex;
  justify-content: flex-end;
}

.comments-area .comment-form .form-submit input[type="submit"],
.comments-area .comment-form .form-submit button {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #f9fafb;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
  transform: translateY(0);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.comments-area .comment-form .form-submit input[type="submit"]:hover,
.comments-area .comment-form .form-submit button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.4);
  filter: brightness(1.05);
}

.comments-area .comment-form .form-submit input[type="submit"]:active,
.comments-area .comment-form .form-submit button:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
}

/* Fokus för tangentbord */
.comments-area .comment-form .form-submit input[type="submit"]:focus-visible,
.comments-area .comment-form .form-submit button:focus-visible {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}

/* ====== Responsivitet ====== */
@media (max-width: 768px) {
  .comments-area {
    margin: 2rem 1rem;
    padding: 1.5rem 1.25rem;
    border-radius: 1rem;
  }

  .comments-area .comment-reply-title {
    font-size: 1.3rem;
  }

  .comments-area .comment-form .form-submit {
    justify-content: stretch;
  }

  .comments-area .comment-form .form-submit input[type="submit"],
  .comments-area .comment-form .form-submit button {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .comments-area {
    margin: 1.5rem 0.75rem;
    padding: 1.25rem 1rem;
  }
}

