/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

.pap-publication-embed {
  background-color: #fff;
  min-height: 850px;
}

.publication-header-info {
  text-align: center;
  margin-top: calc(75px + 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

/* Swedish button styling (default) */
.publication-header-info .button {
  background-color: var(--bricks-color-bytgne);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-align: center;
  display: flex;
  width: 260px;
  height: 40px;
  justify-content: center;
  align-items: center;
}

/* Danish button styling */
.publication-header-info .button.danish-style {
  background-color: var(--bricks-color-bytgne);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  border: 2px solid var(--bricks-color-bytgne);
  cursor: pointer;
  text-align: center;
  display: flex;
  font-weight: 600;
  padding: 12px 32px;
  font-size: 16px;
  font-family: "Gilroy";
  width: auto;
  height: auto;
  justify-content: center;
  align-items: center;
}

.publication-header-info .button:hover {
  background-color: var(--bricks-color-bytgne);
}

.publication-header-info h2 {
  font-size: 1.5rem;
  color: #292929;
  font-family: Gilroy;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

h2 {
  margin-bottom: 0 !important;
}

.publication-header-info p {
  color: var(--Cool-grey, #323240);
  font-family: Roboto;
  font-size: 1.1rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

[data-av--kind="pdf-section"] {
  background-color: #fff !important;
}

.publication-back-button {
  position: absolute;
  top: calc(75px + 60px); 
  left: 40px;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 5px;
  background-color: transparent;
  border: none;
  color: #292929;
  text-align: center;
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.publication-back-button:hover {
  color: #000;
  text-decoration: underline;
}

/* QR Code Modal Styles */
.qr-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.qr-modal-content {
  background-color: #fefefe;
  margin: 15% auto; 
  padding: 30px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  text-align: center;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.qr-modal-close {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
}

.qr-modal-close:hover,
.qr-modal-close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.qr-modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.qr-modal-content p {
    margin-bottom: 25px;
}

.qr-modal-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.new-tag {
  display: inline-flex;
  padding: 2px 8px;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  background: rgba(0, 215, 180, 0.8);
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.3);
  position: absolute;
  top: 8px;
  left: 30px;
  z-index: 100;
}

.new-tag-text {
  color: white;
  text-align: center;
  font-family: Roboto;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}
      
/* Responsive adjustments */
@media (max-width: 768px) {
  .new-tag {
    top: 20px !important;
    left: 20px !important;
    z-index: 3 !important;
  }
  
  .publication-header-info {
    margin-top: 30px;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .publication-back-button {
    position: relative;
    top: 0;
    left: 0;
    margin-bottom: 15px;
    width: 100%;
    justify-content: flex-start;
    display: flex;
  }
  
  .qr-modal-content {
    width: 90%;
    margin: 30% auto;
    padding: 20px;
  }
  
  /* Make sure the av-catalogue component is responsive */
  av-catalogue {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
  }
  
  /* Ensure the publication embed container is properly sized */
  .pap-publication-embed > div {
    width: 95% !important;
    overflow-x: hidden;
    display: block;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .publication-header-info h2 {
    font-size: 1.2rem;
  }
  
  .publication-header-info p {
    font-size: 0.9rem;
  }
  
  .publication-header-info .button,
  .publication-header-info .button.danish-style {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}