/*
Theme Name: IFPI
Theme URI: https://ifpi.dk
Author: IFPI
Author URI: https://ifpi.dk
Description: A minimal WordPress theme for IFPI with Advanced Custom Fields support
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ifpi
*/

/* CSS Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #0073aa;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.custom-logo{
    width: 100px;
}

/* Layout */
.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header,
.site-footer {
  padding: 20px 0;
}

.site-main {
  padding: 40px 0;
}

/* Content */
.entry-header {
  margin-bottom: 20px;
}

.entry-title {
  font-size: 2em;
  margin-bottom: 10px;
}

.entry-content {
  margin-bottom: 40px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.entry-content p {
  margin-bottom: 1em;
}

/* Publications */
.publications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2em;
  margin-top: 2em;
}

.publication-card {
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 1em;
  transition: box-shadow 0.3s ease;
}

.publication-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.publication-cover {
  margin-bottom: 1em;
  overflow: hidden;
  border-radius: 4px;
}

.publication-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.publication-title {
  font-size: 1.1em;
  margin-bottom: 0.5em;
  line-height: 1.4;
}

.publication-date {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 1em;
}

.publication-actions {
  display: flex;
  gap: 0.5em;
  flex-direction: column;
}

.publication-view,
.publication-download {
  display: block;
  padding: 0.6em 1em;
  text-align: center;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9em;
}

.publication-view {
  background: #0073aa;
  color: #fff;
}

.publication-view:hover {
  background: #005177;
  text-decoration: none;
}

.publication-download {
  background: #f0f0f0;
  color: #333;
}

.publication-download:hover {
  background: #e0e0e0;
  text-decoration: none;
}

/* Utility */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* Shortcode Grid */
.ifpi-grid {
  display: grid;
  gap: 2em;
  margin: 2em 0;
}

.ifpi-grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.ifpi-grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.ifpi-grid-4 {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.ifpi-card {
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  text-align: center;
  border-radius: 4px 4px 0 0 ;
}

.ifpi-card img {
  height: auto;
  margin: 0 auto 1em;
  border-radius: 4px 4px 0 0 ;
}

.ifpi-placeholder {
  display: block;
  margin: 0 auto 1em;
}

.ifpi-card h3 {
  font-size: 1.2em;
  margin: 0 0 0.75em;
}

.ifpi-job-title {
  font-size: 0.95em;
  color: #666;
  margin: 0 0 1em;
  font-style: italic;
}

.ifpi-contact {
  font-size: 0.9em;
  line-height: 1.6;
  text-align: left;
}

.ifpi-contact p {
  margin: 0.5em 0;
}

.ifpi-contact a {
  color: #0073aa;
  text-decoration: none;
}

.ifpi-contact a:hover {
  text-decoration: underline;
}

/* Press Releases */
.press-release-card {
  text-align: left;
}

.press-release-date {
  color: #666;
  font-size: 0.9em;
  margin: 0 0 1em;
}

.press-release-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  margin-top: 1em;
}

.button-link {
  display: inline-block;
  padding: 0.5em 1em;
  background: #0073aa;
  color: #fff;
  text-decoration: none;
  text-align: center;
  border-radius: 3px;
  font-size: 0.9em;
}

.button-link:hover {
  background: #005177;
  text-decoration: none;
  color: #fff;
}



/* MEMBERS */
.members-directory {
    margin-top: 2rem;
}
.members-letter {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e2e2;
    font-size: 1.5rem;
    font-weight: 600;
}
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.member-card {
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    padding: 1.25rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 100%;
}
.member-card__logo img {
    max-width: 180px;
    height: auto;
    object-fit: contain;
}
.member-card__logo:not(:empty) {
    margin-bottom: 0.5rem;
}
.member-card__meta p {
    margin: 0 0 0.35rem;
    line-height: 1.4;
}
.member-card__links a {
    margin-right: 1rem;
}


.aktuelt-main { padding: 2rem 1.5rem 4rem; }
    /* .aktuelt-hero { background: #f5f5f5; padding: 3rem 2rem; margin-bottom: 2rem; }
    .aktuelt-hero__content h1 { margin: 0 0 0.5rem; } */
    .aktuelt-layout { display: grid; grid-template-columns: minmax(240px, 280px) 1fr; gap: 2rem; }
    .aktuelt-sidebar { position: sticky; top: 2rem; align-self: start; }
    .aktuelt-filter { display: flex; flex-direction: column; gap: 1.5rem; }
    .aktuelt-filter__block { border-top: 1px solid #e0e0e0; padding-top: 1rem; }
    .aktuelt-filter__label { font-weight: 600; margin-bottom: 0.6rem; display: block; }
    .aktuelt-filter input[type="search"] { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid #ccc; border-radius: 4px; }
    .aktuelt-radio, .aktuelt-checkbox { display: flex; align-items: center; gap: 0.35rem; margin-bottom: 0.4rem; }
    .aktuelt-filter.is-loading,
    .aktuelt-feed.is-loading { opacity: 0.5; pointer-events: none; }
    .aktuelt-feed__header { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
    .aktuelt-feed__status { margin: 0; font-weight: 600; }
    .aktuelt-feed__status--sub { font-size: 0.9rem; color: #555; }
    .aktuelt-feed__sort select { padding: 0.4rem 0.6rem; }
    .aktuelt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
    .aktuelt-card { border: 1px solid #e6e6e6; border-radius: 6px; padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; background: #fff; }
    .aktuelt-card__meta { display: flex; justify-content: space-between; font-size: 0.85rem; color: #666; text-transform: uppercase; letter-spacing: 0.05em; }
    .aktuelt-card__image { width: 100%; height: 160px; background: #fafafa; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 4px; }
    .aktuelt-card__image img { width: 100%; height: 100%; object-fit: cover; }
    .aktuelt-card__image--placeholder { background-image: linear-gradient(135deg, #f0f0f0, #e0e0e0); }
    .aktuelt-card__title { margin: 0; font-size: 1.1rem; }
    .aktuelt-card__excerpt { margin: 0; color: #444; line-height: 1.4; }
    .aktuelt-card__tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
    .aktuelt-card__tags span { font-size: 0.8rem; background: #f1f1f1; padding: 0.2rem 0.45rem; border-radius: 999px; }
    .aktuelt-card__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
    .aktuelt-card__cta { text-decoration: none; font-weight: 600; padding: 0.55rem 1rem; border-radius: 4px; border: 1px solid #111; }
    .aktuelt-card__cta--primary { background: #111; color: #fff; }
    .aktuelt-card__link { text-decoration: none; font-weight: 600; color: #0050a0; }
    .aktuelt-no-results { margin-top: 1rem; font-style: italic; color: #666; }
    .aktuelt-progress { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; flex-wrap: wrap; gap: 1rem; }
    .aktuelt-load-more { padding: 0.65rem 1.25rem; border-radius: 4px; border: 1px solid #111; background: #111; color: #fff; text-decoration: none; display: inline-flex; }
    .aktuelt-load-more[disabled] { opacity: 0.5; cursor: not-allowed; background: #ccc; border-color: #ccc; color: #333; }

    @media (max-width: 960px) {
        .aktuelt-layout { grid-template-columns: 1fr; }
        .aktuelt-sidebar { position: static; }
    }