/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

html {
  font-family: "Fredoka", sans-serif;
  font-size: 18px;
}

body {
  background: #fff6cc;
  margin: auto;
  padding: 1rem;
}

nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;

  h1 {
    font-size: 48px;
    display: flex;
    align-items: center;
  }
}

.cards {
  display: flex;
  flex-direction: row;
  justify-content: space-around;

  .card {
    padding: 1rem;
    margin: 1rem;
    border: solid black;
    box-shadow: 10px 5px 0px 0px #fee18d;
    border-radius: 1rem;
    justify-content: start;

    h1 {
      font-size: 24pt;
    }

    p {
      font-size: 18pt;
    }

    .content {
      padding: 0.5rem;
    }

    .actions {
      display: flex;
      justify-content: end;
      gap: 1rem;
    }
  }
}

input,
textarea {
  padding: 0.25rem;
  font-size: 18px;
  border-radius: 0.5rem;
  border: 2px solid #333;
}

button {
  background: transparent;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

form {
  display: inline;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  margin-top: 5rem;
}

button.primary,
a.primary,
input[type="submit"] {
  margin: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  color: #fefefe;
  background: #9749ad;
}

.cta {
  margin: 5rem;
  padding: 5rem;
  font-size: 36px;
  padding: 1rem;
  margin: 1rem;
  border-radius: 1rem;
  background-color: #40bfb8;
  color: #fefefe;
  text-align: center;
}

.link {
  display: flex;
  justify-content: flex-start;
}

.link :first-child {
  flex: 1;
}

.link :last-child {
  flex: 1;
}

text-input {
  border: 3px solid #333;
  background-color: #fff6cc;
}

.content input::placeholder {
  font-size: 0.85rem;
  margin-left: 0.5rem;
}

.form-label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
}

li {
  list-style: none;
}

ul {
  padding: 0;
}

/* Links - Drag and drop */
.link-item {
  border: 3px solid #333;
  border-radius: 1rem;
  margin-bottom: 0.5rem;
  padding: 1rem;
  cursor: move;
  transition: all 0.2s ease;
}

.link-item:hover {
  box-shadow: 0 0.1rem 0.5rem #8d3b7b;
}

.link-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.link-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.link-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.drag-handle {
  cursor: move;
  color: #666;
  font-size: 1.2rem;
  user-select: none;
}

.sortable-ghost {
  opacity: 0.5;
  background: #9749ad;
}

.sortable-chosen {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.no-drag {
  cursor: default;
}