/*
Theme Name: Duitlabs Mini Link Card
Theme URI: https://www.duitlabs.space
Author: Duitlabs.io
Author URI: https://www.duitlabs.space
Description: Custom mini website theme for Duitlabs.io with brand-aligned mobile link card layout.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Private/Custom
Text Domain: duitlabs-mini
*/

:root {
  --primary-purple: #5A4B92;
  --deep-purple: #4A3E7C;
  --gold: #F2B13A;
  --orange-accent: #E59A28;
  --light-gray: #F4F4F4;
  --white: #ffffff;
  --text: #252238;
  --muted: #6f6a82;
  --line: rgba(90, 75, 146, 0.14);
  --shadow: 0 26px 80px rgba(74, 62, 124, 0.18);
  --shadow-hover: 0 30px 70px rgba(74, 62, 124, 0.28);
}

* { box-sizing: border-box; }
html { margin: 0 !important; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(242, 177, 58, 0.18), transparent 24%),
    radial-gradient(circle at 82% 14%, rgba(90, 75, 146, 0.18), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(90, 75, 146, 0.08), transparent 34%),
    linear-gradient(140deg, #ffffff 0%, #fbfaff 46%, #f5f3fb 100%);
}

body.admin-bar .dl-page { min-height: calc(100vh - 32px); }
a { color: inherit; }

.dl-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.dl-orb,
.dl-grid {
  position: absolute;
  pointer-events: none;
}

.dl-grid {
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(90, 75, 146, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 75, 146, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, black 36%, transparent 82%);
  z-index: 0;
}

.dl-orb {
  border-radius: 50%;
  filter: blur(8px);
  z-index: 0;
  animation: dlFloat 11s ease-in-out infinite;
}

.dl-orb-1 {
  width: 260px;
  height: 260px;
  top: -72px;
  right: -88px;
  background: rgba(90, 75, 146, 0.18);
}

.dl-orb-2 {
  width: 220px;
  height: 220px;
  left: -84px;
  bottom: -72px;
  background: rgba(242, 177, 58, 0.18);
  animation-delay: -3s;
}

.dl-orb-3 {
  width: 120px;
  height: 120px;
  left: 12%;
  top: 12%;
  background: rgba(229, 154, 40, 0.10);
  animation-delay: -6s;
}

.dl-card {
  position: relative;
  z-index: 1;
  width: min(100%, 455px);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(90, 75, 146, 0.12);
  border-radius: 34px;
  box-shadow: var(--shadow);
  padding: 30px 22px 24px;
  overflow: hidden;
  backdrop-filter: blur(18px);
  transform: translateY(0);
  opacity: 1;
  animation: dlCardEnter 700ms cubic-bezier(.2,.8,.2,1) both;
}

.dl-card.is-ready {
  transform: translateY(0);
  opacity: 1;
}

.dl-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background: linear-gradient(90deg, var(--deep-purple), var(--primary-purple), var(--gold));
}

.dl-card::after {
  content: '';
  position: absolute;
  right: -50px;
  top: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242,177,58,0.18) 0%, rgba(242,177,58,0.04) 50%, transparent 72%);
}

.dl-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 6px auto 16px;
}

.dl-logo,
.custom-logo {
  width: min(78%, 280px);
  height: auto;
  display: block;
  animation: dlLogoFloat 5.8s ease-in-out infinite;
}

.custom-logo-link {
  display: inline-flex;
}

.dl-badge {
  width: fit-content;
  margin: 0 auto 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(242, 177, 58, 0.13);
  color: var(--deep-purple);
  border: 1px solid rgba(242, 177, 58, 0.20);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.dl-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(242, 177, 58, 0.14);
}

.dl-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.55) 50%, transparent 80%);
  animation: dlShine 4.6s ease-in-out infinite;
}

.dl-title {
  margin: 0;
  text-align: center;
  font-size: clamp(25px, 6.5vw, 34px);
  line-height: 1.12;
  color: var(--deep-purple);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.dl-statement {
  margin: 14px auto 22px;
  max-width: 360px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
  font-weight: 400;
}

.dl-divider {
  width: 84px;
  height: 4px;
  border-radius: 999px;
  margin: 0 auto 18px;
  background: linear-gradient(90deg, rgba(90, 75, 146, 0.15), rgba(242, 177, 58, 0.9), rgba(90, 75, 146, 0.15));
}

.dl-buttons {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.dl-button {
  position: relative;
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, border-color 220ms ease;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid transparent;
}

.dl-button::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-125%);
  background: linear-gradient(110deg, transparent 18%, rgba(255,255,255,0.22) 48%, transparent 78%);
  transition: transform 600ms ease;
  z-index: 0;
}

.dl-button:hover::before,
.dl-button:focus::before {
  transform: translateX(125%);
}

.dl-button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--deep-purple), var(--primary-purple));
  box-shadow: 0 14px 36px rgba(90, 75, 146, 0.28);
}

.dl-button-secondary {
  color: var(--deep-purple);
  background: linear-gradient(135deg, rgba(242, 177, 58, 0.96), rgba(229, 154, 40, 0.96));
  box-shadow: 0 14px 36px rgba(229, 154, 40, 0.24);
}

.dl-button:hover,
.dl-button:focus {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-hover);
  outline: none;
}

.dl-button:focus-visible {
  outline: 3px solid rgba(242, 177, 58, 0.55);
  outline-offset: 3px;
}

.dl-button-icon,
.dl-button-copy,
.dl-button-arrow,
.dl-button-tag {
  position: relative;
  z-index: 1;
}

.dl-button-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255,255,255,0.18);
}

.dl-button-secondary .dl-button-icon {
  background: rgba(255,255,255,0.34);
  border-color: rgba(255,255,255,0.42);
}

.dl-button-icon svg { width: 24px; height: 24px; display: block; }

.dl-button-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dl-button-title {
  font-size: 15.5px;
  line-height: 1.3;
  font-weight: 700;
}

.dl-button-subtitle {
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.84;
  font-weight: 500;
}

.dl-button-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 2px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dl-button-primary .dl-button-tag {
  color: var(--deep-purple);
  background: rgba(242, 177, 58, 0.96);
}

.dl-button-secondary .dl-button-tag {
  color: var(--deep-purple);
  background: rgba(255,255,255,0.55);
}

.dl-button-arrow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  font-size: 16px;
  transition: transform 220ms ease, background 220ms ease;
}

.dl-button-secondary .dl-button-arrow {
  background: rgba(255,255,255,0.38);
}

.dl-button:hover .dl-button-arrow,
.dl-button:focus .dl-button-arrow {
  transform: translateX(3px);
}

.dl-footer-note {
  margin: 22px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(37, 34, 56, 0.55);
}

.dl-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: dlRipple 700ms ease-out forwards;
  background: rgba(255,255,255,0.40);
  pointer-events: none;
  z-index: 0;
}

@keyframes dlCardEnter {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes dlFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, 14px, 0); }
}

@keyframes dlLogoFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

@keyframes dlShine {
  0% { transform: translateX(-120%); }
  30%, 100% { transform: translateX(140%); }
}

@keyframes dlRipple {
  to {
    transform: scale(3.4);
    opacity: 0;
  }
}


@media (min-width: 768px) {
  .dl-page {
    padding: 40px 18px;
  }

  .dl-card {
    max-width: 430px;
  }
}

@media (max-width: 767px) {
  .dl-page {
    align-items: flex-start;
    padding: 18px 12px;
    min-height: 100svh;
  }

  .dl-card {
    width: min(100%, 390px);
    border-radius: 26px;
    padding: 22px 15px 16px;
  }

  .dl-card::before { height: 6px; }

  .dl-logo-wrap { margin: 2px auto 10px; }

  .dl-logo,
  .custom-logo {
    width: min(70%, 220px);
  }

  .dl-badge {
    margin-bottom: 10px;
    padding: 6px 10px;
    font-size: 10.5px;
  }

  .dl-title {
    font-size: clamp(21px, 6.2vw, 27px);
    line-height: 1.14;
  }

  .dl-statement {
    margin: 10px auto 14px;
    font-size: 13px;
    line-height: 1.52;
    max-width: 330px;
  }

  .dl-divider {
    height: 3px;
    margin-bottom: 12px;
  }

  .dl-buttons {
    gap: 10px;
    margin-top: 10px;
  }

  .dl-button {
    min-height: 68px;
    padding: 12px 12px;
    border-radius: 16px;
    gap: 10px;
  }

  .dl-button-icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .dl-button-icon svg {
    width: 21px;
    height: 21px;
  }

  .dl-button-tag {
    padding: 3px 7px;
    font-size: 9px;
  }

  .dl-button-title {
    font-size: 13.5px;
    line-height: 1.25;
  }

  .dl-button-subtitle {
    display: none;
  }

  .dl-button-arrow {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .dl-footer-note {
    margin-top: 14px;
    font-size: 10.5px;
    line-height: 1.45;
  }
}

@media (max-width: 420px) {
  .dl-card { padding: 28px 18px 22px; border-radius: 28px; }
  .dl-button { min-height: 80px; padding: 15px 14px; border-radius: 18px; }
  .dl-button-title { font-size: 15px; }
}

@media (max-width: 380px) {
  .dl-page { padding: 18px 12px; }
  .dl-card { border-radius: 26px; padding: 26px 15px 20px; }
  .dl-title { font-size: 24px; }
  .dl-statement { font-size: 14px; }
  .dl-button { min-height: 78px; gap: 12px; }
  .dl-button-title { font-size: 14px; }
  .dl-button-subtitle { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .dl-card { transform: none !important; opacity: 1 !important; animation: none !important; }
}
