/* ===================================
   HEADER & GENERAL LAYOUT
   =================================== */

.voucher-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

.voucher-header-content {
    grid-column: 1;
}

.voucher-header-content h1 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.1;
    margin: 0;
    padding: 0;
    display: inline;
}

.voucher-date {
    font-size: 13px;
    color: #999;
    font-weight: 500;
    margin-left: 8px;
    display: inline;
}

.voucher-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-top: 8px;
    margin-bottom: 0;
}

.voucher-logo {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    grid-column: 2;
    grid-row: 1/3;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.voucher-logo img {
    width: 100%;
    height: 100%;
    padding: 10px;
    object-fit: contain;
    border-radius: 7px;
}

.voucher-content,
.voucher-content p {
    padding: 0;
    margin: 0;
}

.voucher-content {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}


/* ===================================
   SIDEBAR & TEAM MEMBERS
   =================================== */

.voucher-sidebar-team-member {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.voucher-small-heading {
    font-weight: 700;
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.voucher-sidebar-list-member ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.voucher-sidebar-list-member li {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1;
}

.voucher-store-card,
.voucher-store-item {
    align-items: center;
    width: 100%;
    display: flex;
    height: 100%;
}

.voucher-store-item {
    text-decoration: none;
    justify-content: center;
}

.voucher-store-card {
    justify-content: center;
}

.voucher-store-card img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}


/* ===================================
   CARD BASE STYLES
   =================================== */

.voucher-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.voucher-card-discount {
    background: #f0f0f0;
    border-radius: 10px;
    padding: 20px;
    min-width: 100px;
    text-align: center;
    flex-shrink: 0;
    position: relative;
}

/* Cercul stânga pentru cupon */
.voucher-card-discount::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    left: -9px;
    top: 50%;
    transform: translateY(-50%);
}

/* Cercul dreapta pentru cupon */
.voucher-card-discount::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    right: -9px;
    top: 50%;
    transform: translateY(-50%);
}

.voucher-card-discount-value {
    font-size: 32px;
    font-weight: 700;
}

.voucher-card-content {
    flex-grow: 1;
}

.voucher-card-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.voucher-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.voucher-card-followers {
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
}


/* ===================================
   BUTTON: REVEAL CODE
   =================================== */

.reveal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    padding: 12px 28px;
    min-width: 160px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* Reveal Button - Active State */
.reveal-button.active {
    background: linear-gradient(135deg, #9777fa 0%, #7c5ce0 100%);
    color: #fff;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(151, 119, 250, 0.3);
}

.reveal-button.active:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #5a1fb3 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(151, 119, 250, 0.4);
}

/* Reveal Button - Inactive State */
.reveal-button.inactive {
    background: linear-gradient(135deg, #999 0%, #777 100%);
    color: #fff;
    opacity: 0.9;
    box-shadow: 0 2px 6px rgba(153, 153, 153, 0.2);
}

.reveal-button.inactive:hover {
    background: linear-gradient(135deg, #888 0%, #666 100%);
    box-shadow: 0 3px 8px rgba(153, 153, 153, 0.25);
    opacity: 1;
}

/* Reveal Button - Revealed State */
.reveal-button.revealed {
    background: #fff;
    color: #9777fa;
    border: 2px dashed #9777fa;
    padding: 10px 20px;
}

.reveal-button.revealed:hover {
    background: #f8fbff;
}

/* Diagonal Stripe Effect */
.reveal-button::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0.4) 2px,
        rgba(255, 255, 255, 0.2) 2px,
        rgba(255, 255, 255, 0.2) 4px
    );
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
    pointer-events: none;
}

.reveal-button.revealed::after {
    width: 0;
    opacity: 0;
}

/* Button Text & Code */
.button-text {
    transition: opacity 0.25s ease, transform 0.25s ease;
    display: inline-block;
    color: inherit;
}

.button-code {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: opacity 0.3s 0.15s, max-width 0.3s 0.15s;
    font-family: "Courier New", monospace;
    font-weight: 700;
    font-size: 13px;
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
    margin-left: 6px;
    color: inherit;
}

.reveal-button.revealed .button-text {
    display: none;
}

.reveal-button.revealed .button-code {
    opacity: 1;
    max-width: 400px;
    margin: 0 6px;
}


/* ===================================
   BUTTON: OFFER BUTTON
   =================================== */

.offer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 28px;
    min-width: 160px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* Offer Button - Active State */
.offer-button.active {
    background: linear-gradient(135deg, #9777fa 0%, #7c5ce0 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(151, 119, 250, 0.3);
}

.offer-button.active:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #5a1fb3 100%);
    box-shadow: 0 6px 16px rgba(151, 119, 250, 0.4);
}

/* Offer Button - Expired State */
.offer-button.expired {
    background: linear-gradient(135deg, #999 0%, #777 100%);
    color: #fff;
    box-shadow: 0 2px 6px rgba(153, 153, 153, 0.2);
}

.offer-button.expired:hover {
    background: linear-gradient(135deg, #888 0%, #666 100%);
    box-shadow: 0 3px 8px rgba(153, 153, 153, 0.25);
}


/* ===================================
   CARD VARIANTS - ACTIVE
   =================================== */

.voucher-card.active .voucher-card-discount {
    background: #f0f4ff;
}

.voucher-card.active .voucher-card-discount::before,
.voucher-card.active .voucher-card-discount::after {
    background: #fff;
}

.voucher-card.active .voucher-card-discount-value {
    color: #9777fa;
}

.voucher-card.active .voucher-card-label {
    color: #9777fa;
}


/* ===================================
   CARD VARIANTS - EXPIRED
   =================================== */

.voucher-card.expired .voucher-card-discount {
    background: #f5f5f5;
}

.voucher-card.expired .voucher-card-discount::before,
.voucher-card.expired .voucher-card-discount::after {
    background: #fff;
}

.voucher-card.expired .voucher-card-discount-value {
    color: #999;
}

.voucher-card.expired .voucher-card-label {
    color: #999;
}


/* ===================================
   UTILITY CLASSES
   =================================== */

.btn-sm {
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 6px;
    min-width: 120px;
}

.divider {
    display: none;
}


/* ===================================
   RESPONSIVE - MOBILE (max-width: 768px)
   =================================== */

@media (max-width: 768px) {
    .voucher-header {
        grid-template-columns: 1fr 80px;
        gap: 15px;
        margin-bottom: 30px;
    }

    .voucher-header-content h1 {
        font-size: 24px;
    }

    .voucher-description {
        font-size: 13px;
        margin-right: 10px;
    }

    .voucher-logo {
        width: 80px;
        height: 80px;
        display: flex !important;
        margin: 0;
    }

    .breacrumb-cover {
        display: none;
    }

    .voucher-card {
        flex-direction: column;
        align-items: stretch;
    }

    .voucher-card-discount {
        min-width: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
    }

    .voucher-card-followers {
        margin-bottom: 16px;
    }

    .reveal-button,
    .offer-button {
        width: 100%;
        justify-content: center;
    }

    hr {
        display: none !important;
    }
}


/* ===================================
   RESPONSIVE - TABLET (max-width: 575px)
   =================================== */

@media (max-width: 575px) {
    .divider {
        display: block !important;
    }

    .voucher-sidebar-list-member ul {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}


/* ===================================
   RESPONSIVE - DESKTOP (min-width: 576px)
   =================================== */

@media (min-width: 576px) {
    .divider {
        display: none !important;
    }

    .voucher-sidebar-list-member ul {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

/* Modal */
.voucher-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.voucher-modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  padding: 32px;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  animation: popIn 0.35s ease;
  font-family: "Inter", sans-serif;
}

@keyframes popIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.voucher-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #777;
  font-weight: bold;
}

.voucher-code-section {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 30px;
}

.voucher-code-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.voucher-code {
  font-weight: 700;
  font-size: 18px;
  padding: 10px 20px;
  background: #f8f8f8;
  letter-spacing: 1px;
}

.voucher-copy {
  background: #9777fa;
  color: #fff;
  border: none;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}

.voucher-copy:hover {
  background: #6d28d9;
}

.voucher-copy-info {
  font-size: 13px;
  color: #777;
  margin-top: 6px;
}

.voucher-community {
  background: #f5f8ff;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 20px;
}

.voucher-community p {
  margin: 0 0 8px;
  font-size: 14px;
  color: #333;
}

/* Footer */
.voucher-footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  margin-top: 20px;
  background: #fff;
}

/* Linia de deasupra footerului – acum se întinde peste padding (full width) */
.voucher-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: -32px;   /* Extinde linia peste paddingul modalului (padding = 32px) */
  right: -32px;  /* Extinde linia peste paddingul modalului */
  height: 1px;
  background: #eee;
}

/* Butoane / control */
.voucher-toggle {
  background: none;
  border: none;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
}

.voucher-toggle:hover {
  color: #9777fa;
  text-decoration: underline;
}

.voucher-continue {
  display: inline-block;
  background: #9777fa;
  color: white;
  border: none;
  padding: 8px 22px;
  font-size: 12px;
  font-weight: 700;
  border-width: 2px;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
}

.voucher-continue:hover {
  background: #6d28d9;
  color: white;
}

/* Detalii */
.voucher-details {
  display: none;
  margin-top: 0;
  font-size: 14px;
  color: #555;
  border-top: 1px solid #eee;
  padding-top: 14px;

  /* Extindem secțiunea de detalii peste padding pentru a părea full-width */
  width: calc(100% + 64px); /* 32px padding stânga + 32px dreapta */
  margin-left: -32px;
  padding-left: 32px;
  padding-right: 32px;
}

.voucher-details.active {
  display: block;
}

@media (max-width: 480px) {
  .voucher-modal-content {
    padding: 24px;
  }
  .voucher-footer {
    flex-direction: column;
    gap: 12px;
  }
  .voucher-continue {
    width: 100%;
    text-align: center;
  }

  /* Ajustăm și detaliile la padding-ul redus */
  .voucher-details {
    width: calc(100% + 48px); /* 24px + 24px */
    margin-left: -24px;
    padding-left: 24px;
    padding-right: 24px;
  }

  /* Footer line pentru mobil */
  .voucher-footer::before {
    left: -24px;
    right: -24px;
  }
}

.voucher-modal-content h3 {
  margin: 0 0 16px 0;
  line-height: 1.3;
}