/*
 * Site template based on the Savora design (main.css). This file holds the
 * shared theme components (the same in flaturl and incognitomail) followed by
 * the components of the script.
 */

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
body {
  font-family: var(--default-font);
}

.main {
  min-height: 50vh;
}

/* Content animated by AOS stays visible without JavaScript or when AOS is missing */
html:not(.js) [data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header .logo {
  gap: 10px;
  color: var(--heading-color);
}

.header .logo .logo-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--contrast-color);
  background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #000 20%));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent-color), transparent 70%);
}

.header .logo .logo-icon i {
  margin: 0;
  font-size: 22px;
  color: inherit;
}

.header .logo .sitename {
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--heading-color);
}

.header .btn-getstarted,
.header .btn-getstarted:focus {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--nav-font);
  font-weight: 500;
}

@media (max-width: 1200px) {
  .header .btn-getstarted {
    margin: 0;
  }
}

@media (max-width: 575px) {
  .header .logo .sitename {
    font-size: 21px;
  }

  .header .btn-getstarted {
    padding: 8px 16px;
    font-size: 14px;
  }
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn-accent,
.btn-outline-accent,
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--nav-font);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-accent {
  padding: 12px 28px;
  font-size: 15px;
  color: var(--contrast-color);
  background-color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

.btn-accent:hover,
.btn-accent:focus-visible {
  color: var(--contrast-color);
  background-color: color-mix(in srgb, var(--accent-color), #000 10%);
  border-color: color-mix(in srgb, var(--accent-color), #000 10%);
  transform: translateY(-2px);
}

.btn-outline-accent {
  padding: 10px 24px;
  font-size: 15px;
  color: var(--accent-color);
  background-color: transparent;
  border: 2px solid var(--accent-color);
}

.btn-outline-accent:hover,
.btn-outline-accent:focus-visible {
  color: var(--contrast-color);
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

.btn-pill {
  padding: 6px 16px;
  font-size: 14px;
  color: var(--heading-color);
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
}

.btn-pill:hover,
.btn-pill:focus-visible {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

[data-copy] .copied-label,
[data-copy].is-copied .copy-label {
  display: none;
}

[data-copy].is-copied .copied-label {
  display: inline;
}

.theme-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.theme-actions .btn-pill {
  padding: 10px 22px;
  font-size: 15px;
}

/*--------------------------------------------------------------
# Cards, forms, alerts
--------------------------------------------------------------*/
.theme-card {
  position: relative;
  padding: 36px;
  background-color: var(--surface-color);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.theme-card-accent {
  overflow: hidden;
}

.theme-card-accent::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #fff 35%));
}

.theme-card-lead {
  font-size: 1.1rem;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-bottom: 24px;
}

@media (max-width: 575px) {
  .theme-card {
    padding: 24px 20px;
  }
}

.form-control,
.form-select {
  padding: 12px 18px;
  color: var(--default-color);
  background-color: var(--surface-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
  border-radius: 10px;
}

.form-control:focus,
.form-select:focus {
  color: var(--default-color);
  background-color: var(--surface-color);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--accent-color), transparent 80%);
}

.form-label {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

.input-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 20px;
  background-color: var(--surface-color);
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 88%);
  border-radius: 50px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.input-pill:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 15px 40px color-mix(in srgb, var(--accent-color), transparent 85%);
}

.input-pill.is-invalid {
  border-color: #df1529;
}

.input-pill input {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  font-size: 16px;
  color: var(--default-color);
  background: transparent;
  border: 0;
  outline: 0;
}

.input-pill input::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 55%);
}

.input-pill-icon {
  font-size: 22px;
  color: var(--accent-color);
}

.input-pill-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 17px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 575px) {
  .input-pill {
    flex-wrap: wrap;
    padding: 12px;
    border-radius: 20px;
  }

  .input-pill input,
  .input-pill-value {
    flex-basis: calc(100% - 40px);
  }

  .input-pill .btn-accent {
    width: 100%;
  }
}

.field-error {
  margin: 8px 0 0 20px;
  font-size: 14px;
  color: #df1529;
}

.gs_name_row {
  display: none;
}

.theme-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 14px 20px;
  font-weight: 500;
  color: #a10e1e;
  background-color: #fdecee;
  border-left: 4px solid #df1529;
  border-radius: 10px;
}

.theme-details {
  margin-top: 18px;
}

.theme-details summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--nav-font);
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-color);
  cursor: pointer;
  list-style: none;
}

.theme-details summary::-webkit-details-marker {
  display: none;
}

.theme-details summary::after {
  content: "\f282";
  font-family: "bootstrap-icons";
  font-size: 12px;
  transition: transform 0.3s;
}

.theme-details[open] summary::after {
  transform: rotate(180deg);
}

.theme-details-body {
  margin-top: 14px;
  padding: 20px;
  background-color: var(--surface-color);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/*--------------------------------------------------------------
# Feature cards and detail lists
--------------------------------------------------------------*/
.feature-card {
  height: 100%;
  padding: 36px 30px;
  text-align: center;
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 700;
}

.feature-card p {
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  font-size: 32px;
  color: var(--contrast-color);
  background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #000 20%));
  border-radius: 20px;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent-color), transparent 70%);
}

.detail-list {
  margin: 0;
}

.detail-item {
  display: grid;
  grid-template-columns: minmax(150px, 30%) 1fr;
  gap: 8px 20px;
  padding: 14px 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--default-color), transparent 85%);
}

.detail-item:last-child {
  border-bottom: 0;
}

.detail-item dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--nav-font);
  font-weight: 500;
  color: var(--heading-color);
}

.detail-item dt i {
  color: var(--accent-color);
  font-size: 18px;
}

.detail-item dd {
  margin: 0;
  min-width: 0;
}

.detail-target {
  overflow-wrap: anywhere;
}

@media (max-width: 575px) {
  .detail-item {
    grid-template-columns: 1fr;
  }
}

/*--------------------------------------------------------------
# Message pages (error-404 pattern of main.css)
--------------------------------------------------------------*/
.error-404 {
  min-height: auto;
  padding: 100px 0;
}

.error-404 .error-icon {
  display: inline-grid;
  place-items: center;
  width: 120px;
  height: 120px;
  margin-bottom: 36px;
  font-size: 56px;
  color: var(--accent-color);
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-radius: 32px;
}

.error-404 .error-actions {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  padding-top: 50px;
}

.footer .footer-content .logo .sitename {
  font-size: 26px;
}

.footer .footer-bottom {
  margin-top: 40px;
}

.footer .footer-bottom .copyright p {
  margin: 0;
}

.footer-modules:empty {
  display: none;
}


/*--------------------------------------------------------------
# Disposable e-mail: hero and address card
--------------------------------------------------------------*/
.tempmail-page .hero {
  padding: 70px 0 80px;
}

.tempmail-page .hero .hero-content .hero-title {
  font-size: 2.75rem;
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  .tempmail-page .hero .hero-content .hero-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 991px) {
  .tempmail-page .hero {
    padding: 40px 0 50px;
  }

  .tempmail-page .hero .hero-content .content {
    margin-bottom: 0;
  }

  .tempmail-page .hero .hero-info {
    justify-content: center;
  }
}

/* Hero text centered next to the closed address card; it stays in place when
   the card grows (own address form opened) */
@media (min-width: 992px) {
  .tempmail-page .hero .hero-content .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 327px;
  }
}

.address-card .feature-icon {
  margin-bottom: 24px;
}

.address-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--nav-font);
  font-weight: 500;
  color: var(--heading-color);
}

.address-label i {
  color: var(--accent-color);
}

.address-card .input-pill {
  box-shadow: none;
}

.address-field {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 19px !important;
  color: var(--heading-color) !important;
  text-overflow: ellipsis;
}

[data-copy] .copied-mark {
  display: none;
}

[data-copy].tempmail_is_copied .copied-mark {
  display: inline;
}

.countdown-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 6px 16px;
  font-size: 14px;
  color: var(--heading-color);
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-radius: 50px;
}

.countdown-chip i {
  color: var(--accent-color);
}

.countdown-chip strong {
  font-variant-numeric: tabular-nums;
}

.address-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.address-actions form {
  margin: 0;
}

.address-actions .btn-outline-accent {
  padding: 8px 18px;
  font-size: 14px;
}

.address-actions .btn-pill {
  padding: 10px 18px;
}

.custom-address-form .input-group > .form-control {
  border-radius: 10px 0 0 10px;
}

.custom-address-form .input-group > .form-select,
.custom-address-form .input-group > .input-group-text:last-of-type {
  border-radius: 0 10px 10px 0;
}

/*--------------------------------------------------------------
# Disposable e-mail: inbox (markup also rendered by inbox.js)
--------------------------------------------------------------*/
.inbox .section-title {
  padding-bottom: 40px;
}

.mail-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mail-list li a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "from time"
    "subject subject"
    "excerpt excerpt";
  gap: 4px 16px;
  padding: 20px 26px;
  color: var(--default-color);
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.mail-list li a:hover {
  border-color: color-mix(in srgb, var(--accent-color), transparent 60%);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.09);
  transform: translateY(-3px);
}

.mail-list .tempmail_unread a {
  border-left: 4px solid var(--accent-color);
}

.mail-list .tempmail_unread a::after {
  content: "";
  position: absolute;
  top: 24px;
  right: 12px;
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
}

.tempmail_from {
  grid-area: from;
  overflow: hidden;
  font-family: var(--nav-font);
  font-weight: 500;
  color: var(--heading-color);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tempmail_time {
  grid-area: time;
  padding-right: 10px;
  font-size: 13px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  white-space: nowrap;
}

.tempmail_subject {
  grid-area: subject;
  font-family: var(--heading-font);
  font-size: 18px;
  font-weight: 600;
  color: var(--heading-color);
  overflow-wrap: anywhere;
}

.tempmail_unread .tempmail_subject {
  font-weight: 700;
}

.tempmail_excerpt {
  grid-area: excerpt;
  overflow: hidden;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-list .tempmail_empty {
  padding: 50px 24px;
  text-align: center;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  background-color: var(--surface-color);
  border: 2px dashed color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 20px;
}

.mail-list .tempmail_empty::before {
  content: "\f42d";
  display: block;
  margin-bottom: 12px;
  font-family: "bootstrap-icons";
  font-size: 48px;
  line-height: 1;
  color: color-mix(in srgb, var(--accent-color), transparent 40%);
}

@media (max-width: 575px) {
  .mail-list li a {
    padding: 16px 18px;
  }
}

/*--------------------------------------------------------------
# Disposable e-mail: mail view
--------------------------------------------------------------*/
.mail-meta {
  margin-bottom: 24px;
}

.view-switch {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  background-color: color-mix(in srgb, var(--default-color), transparent 94%);
  border-radius: 50px;
}

.view-switch a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-family: var(--nav-font);
  font-size: 14px;
  font-weight: 500;
  color: var(--default-color);
  border-radius: 50px;
}

.tempmail_has_html .view-switch a[href="#tempmail_html"],
.tempmail_has_html:has(#tempmail_text:target) .view-switch a[href="#tempmail_text"] {
  color: var(--contrast-color);
  background-color: var(--accent-color);
}

.tempmail_has_html:has(#tempmail_text:target) .view-switch a[href="#tempmail_html"] {
  color: var(--default-color);
  background-color: transparent;
}

.tempmail_has_html .tempmail_text,
.tempmail_has_html:has(#tempmail_text:target) .tempmail_html {
  display: none;
}

.tempmail_has_html:has(#tempmail_text:target) .tempmail_text {
  display: block;
}

.mail-text {
  margin: 0;
  padding: 22px;
  font-family: var(--default-font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--default-color);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background-color: color-mix(in srgb, var(--accent-color), transparent 97%);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 14px;
}

.mail-html-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.mail-html-note i {
  color: #059652;
}

.mail-html iframe {
  width: 100%;
  height: 34rem;
  background-color: #fff;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  border-radius: 14px;
}

.mail-attachments {
  margin-top: 28px;
}

.mail-attachments h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
}

.mail-attachments ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mail-attachments li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 50px;
}

.mail-attachments li span {
  font-size: 13px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.mail-article .theme-actions form {
  margin: 0;
}
