/* Bootsnamen Verwaltung - Frontend Styles */

.bootsnamen-container {
  max-width: 1290px; /* Adjust as needed */
  margin: 2em auto;
  padding: 1em;
  text-align: left; /* Ensure container content is left-aligned by default */
}



/* --- Liste --- */
/* (Styles for list remain the same) */
.bootsnamen-liste-container ul.bootsnamen-liste,
.bootsnamen-liste-header {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bootsnamen-liste-header,
.bootsnamen-liste-container ul.bootsnamen-liste li {
  display: flex;
  flex-wrap: nowrap;
  padding: 0.8em 0.5em;
  border-bottom: 1px solid #eee;
  text-align: left;
  gap: 10px;
}
.bootsnamen-liste-header {
  font-weight: bold;
  background-color: #f7f7f7;
  border-bottom: 2px solid #ddd;
  margin-top: 1.5em;
}
.bootsnamen-liste-container ul.bootsnamen-liste li:last-child {
  border-bottom: none;
}
.bootsnamen-liste-header > div,
.bootsnamen-liste-container ul.bootsnamen-liste li > div {
  padding: 0 5px;
  box-sizing: border-box;
  text-align: left;
}
.col-name {
  flex-basis: 40%;
  flex-grow: 1;
}
.col-kategorie {
  flex-basis: 30%;
  flex-shrink: 0;
}
.col-sprache {
  flex-basis: 30%;
  flex-shrink: 0;
}
.col-name a {
  text-decoration: none;
  font-weight: bold;
  color: #0073aa;
}
.col-name a:hover {
  text-decoration: underline;
}

/* --- Filter --- */
/* (Styles for filter remain the same) */
.bootsnamen-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 1em;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  margin-bottom: 1.5em;
  border-radius: 4px;
}
.bootsnamen-filter-form .filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.bootsnamen-filter-form .filter-group label {
  font-weight: bold;
  font-size: 0.9em;
}
.bootsnamen-filter-form input[type="text"],
.bootsnamen-filter-form select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
}
.bootsnamen-filter-form .filter-buttons {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.bootsnamen-filter-form .button {
  padding: 8px 15px;
  cursor: pointer;
}
.bootsnamen-filter-form a.button {
  text-decoration: none;
  display: inline-block;
}

/* --- Pagination --- */
/* (Styles for pagination remain the same) */
.bootsnamen-pagination {
  margin-top: 1.5em;
  text-align: center;
}
.bootsnamen-pagination ul.page-numbers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-block;
}
.bootsnamen-pagination .page-numbers li {
  display: inline;
  margin: 0 2px;
}
.bootsnamen-pagination .page-numbers a,
.bootsnamen-pagination .page-numbers span {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #0073aa;
  border-radius: 3px;
}
.bootsnamen-pagination .page-numbers span.current,
.bootsnamen-pagination .page-numbers a:hover {
  background-color: #0073aa;
  color: #fff;
  border-color: #0073aa;
}

/* --- Detailseite --- */

/* ** NEW RULE ** Override theme padding for the main container on detail pages */
/* Targets the <main> element when it has both site-main and bootsnamen-detail-container classes */
main.site-main.bootsnamen-detail-container {
  padding: 0px; /* Reduce top padding significantly, adjust value as needed */
}

/* Container for the inserted Gutenberg block */
.bootsnamen-detail-header-block {
  margin-bottom: 2em; /* Add some space below the header block */
}

.bootsnamen-detail-container .entry-title {
  margin-bottom: 0.5em;
}

.bootsnamen-detail-container .entry-content {
  margin-top: 1em;
}

/* Use more specific selector for Flexbox layout */
.bootsnamen-detail-container .bootsname-main-info {
  display: flex;
  flex-direction: column; /* Default: Stack */
  gap: 20px;
  margin-bottom: 2em;
  align-items: flex-start;
}

/* Apply two-column layout on wider screens using the more specific selector */
@media (min-width: 769px) {
  .bootsnamen-detail-container .bootsname-main-info {
    flex-direction: row; /* Side-by-side */
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
  }
  .bootsnamen-detail-container .bootsname-text-details {
    flex-grow: 1;
  }
  .bootsnamen-detail-container .bootsname-image {
    flex-shrink: 0;
  }
}

/* Child element styles */
.bootsnamen-text-details ul { /* Applies to the main details list (Sprache, Kategorie, Bedeutung) */
  list-style: none;
  padding: 0;
  margin: 0 0 1em 0; /* Margin below the main details list */
}
.bootsnamen-text-details ul li {
  margin-bottom: 0.5em;
}

/* Styling for the new "Similar Names" section */
.similar-names-section h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 20px;     /* Abstand zum vorherigen Element */
    margin-bottom: 4px;   /* kompakter Abstand zum Text */
}

.similar-names-list-standalone {
    margin-top: 0;
}


.similar-names-section {
  margin-top: 1em; /* Space above the "Similar Names" title */
  margin-bottom: 1em; /* Space below the "Similar Names" list */
}
.similar-names-section p strong { /* Styling for the title "Ähnliche Namen" */
  font-weight: bold;
  display: block; 
  margin-bottom: 0.1em; /* Space between title and list */
}
ul.similar-names-list-standalone {
    // highlight-start
    list-style-type: disc; /* Zeigt einen Standard-Listenpunkt (ausgefüllter Kreis) */
    padding-left: 20px;  /* Fügt Einzug für die Listenpunkte hinzu, anpassen nach Bedarf */
    // highlight-end
    margin: 0;
}
ul.similar-names-list-standalone li {
    margin-bottom: 0.2em;
}


.bootsname-detail-image {
  max-width: 450px;
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #eee;
  border-radius: 4px;
  background-color: #fff;
  padding: 5px;
  margin-left: 0;
  margin-right: 0;
}
.bootsname-image {
  text-align: left;
}

.bootsnamen-additional-info h3 {
  margin-top: 1.5em;
  margin-bottom: 4px;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.3em;
}
.bootsnamen-additional-info p,
.bootsnamen-additional-info ul {
  line-height: 1.6;
}
.bootsnamen-additional-info ul {
  list-style: disc;
  margin-left: 20px;
  padding: 0;
}
.bootsnamen-additional-info ul li {
  margin-bottom: 0.3em;
}

/* --- Call to Action Configurator --- */
.bootsnamen-cta-configurator {
    margin-top: 2em;
    margin-bottom: 2em;
    padding: 1.5em;
    border: 1px solid #e0e0e0;
    background-color: #f9f9f9;
    border-radius: 4px;
    text-align: center;
}
.bootsnamen-cta-configurator h3 {
    margin-top: 0;
    margin-bottom: 0.75em;
    font-size: 1.3em;
    color: #333;
}
.bootsnamen-cta-configurator p {
    margin-bottom: 1em;
    font-size: 1em;
    line-height: 1.5;
}
.bootsnamen-cta-configurator .button.bootsnamen-configure-button {
    padding: 10px 20px;
    font-size: 1.1em;
    text-decoration: none;
}

/* --- Navigation Buttons --- */
.bootsnamen-detail-navigation {
    margin-top: 2em;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.bootsnamen-detail-navigation .button {
    /* General button styling will apply */
}
.bootsnamen-detail-navigation .button.disabled {
    opacity: 0.5;
    pointer-events: none;
}
.bootsname-additional-info h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 20px;     /* Abstand zum vorherigen Element */
    margin-bottom: 4px;   /* kompakter Abstand zum Text */
}

/* --- No Results --- */
.bootsnamen-no-results {
  padding: 2em;
  text-align: center;
  background-color: #fefefe;
  border: 1px dashed #ddd;
  margin-top: 1.5em;
}
.bootsnamen-no-results img {
  max-width: 250px;
  height: auto;
  margin-top: 1em;
  opacity: 0.7;
}

/* --- Responsiveness --- */
@media (max-width: 768px) {
  /* (Filter and List responsive styles remain the same) */
  .bootsnamen-filter-form {
    flex-direction: column;
    gap: 10px;
  }
  .bootsnamen-filter-form .filter-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .bootsnamen-liste-header {
    display: none;
  }
  .bootsnamen-liste-container ul.bootsnamen-liste li {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .bootsnamen-liste-container ul.bootsnamen-liste li > div {
    flex-basis: auto;
    width: 100%;
    padding: 2px 0;
  }
  .bootsnamen-liste-container ul.bootsnamen-liste li .col-kategorie::before {
    content: "Kategorie: ";
    font-weight: bold;
    display: inline-block;
    min-width: 80px;
  }
  .bootsnamen-liste-container ul.bootsnamen-liste li .col-sprache::before {
    content: "Sprache: ";
    font-weight: bold;
    display: inline-block;
    min-width: 80px;
  }

  /* Detail page on smaller screens */
  .bootsnamen-detail-container .bootsname-image {
    order: -1;
    margin-bottom: 1em;
  }
}

@media (max-width: 480px) {
  .bootsnamen-container {
    padding: 0.5em;
  }
  .bootsnamen-detail-container .entry-title {
    font-size: 1.5em;
  }
  .bootsname-detail-image {
    max-width: 100%;
  }
}

/* --- NEU: Preview Section --- */
.bootsnamen-previews-section {
    margin-top: 2.5em;
    margin-bottom: 1em;
    padding-top: 1.5em;
    border-top: 0px solid #e0e0e0;
}

.bootsname-preview-item {
    margin-bottom: 2.5em;
}

.bootsname-preview-item h3 {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 0.75em;
}

.bootsname-preview-item img {
    max-width: 100%;
    max-height: 100px;
    display: block;
    border: 0px solid #ddd;
    background-color: #fff;
    padding: 5px;
    border-radius: 4px;

}