/* ============================================================
   Water Intake Calculator — Premium Plugin Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --wic-blue-50:  #eff8ff;
  --wic-blue-100: #dbeeff;
  --wic-blue-200: #b9ddff;
  --wic-blue-400: #38a4f8;
  --wic-blue-500: #0ea5e9;
  --wic-blue-600: #0284c7;
  --wic-blue-700: #0369a1;
  --wic-blue-900: #0c3855;
  --wic-teal:     #06b6d4;
  --wic-white:    #ffffff;
  --wic-gray-50:  #f8fafc;
  --wic-gray-100: #f1f5f9;
  --wic-gray-200: #e2e8f0;
  --wic-gray-400: #94a3b8;
  --wic-gray-600: #475569;
  --wic-gray-800: #1e293b;
  --wic-radius:   16px;
  --wic-shadow:   0 20px 60px rgba(3, 105, 161, 0.12);
  --wic-shadow-sm:0 4px 20px rgba(3, 105, 161, 0.08);
  --wic-font-display: 'Playfair Display', Georgia, serif;
  --wic-font-body:    'DM Sans', system-ui, sans-serif;
  --wic-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Wrapper ─────────────────────────────────────────────── */
.wic-wrapper {
  font-family: var(--wic-font-body);
  color: var(--wic-gray-800);
  max-width: 860px;
  margin: 40px auto;
  padding: 0 16px 60px;
  -webkit-font-smoothing: antialiased;
}

/* ── Hero ────────────────────────────────────────────────── */
.wic-hero {
  position: relative;
  background: linear-gradient(135deg, var(--wic-blue-700) 0%, #0284c7 50%, var(--wic-teal) 100%);
  border-radius: var(--wic-radius) var(--wic-radius) 0 0;
  padding: 52px 40px 56px;
  text-align: center;
  overflow: hidden;
}

.wic-hero__bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wic-bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  animation: wic-float 6s ease-in-out infinite;
}
.wic-bubble--1 { width:80px; height:80px; bottom:10%; left:5%;  animation-delay:0s;   animation-duration:7s; }
.wic-bubble--2 { width:50px; height:50px; bottom:20%; left:18%; animation-delay:1s;   animation-duration:5s; }
.wic-bubble--3 { width:120px;height:120px;top:5%;    right:8%; animation-delay:0.5s; animation-duration:8s; }
.wic-bubble--4 { width:40px; height:40px; top:20%;   right:22%;animation-delay:2s;   animation-duration:6s; }
.wic-bubble--5 { width:60px; height:60px; bottom:5%; right:30%;animation-delay:1.5s; animation-duration:9s; }

@keyframes wic-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-14px) scale(1.05); }
}

.wic-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255,255,255,0.25);
  animation: wic-pulse-ring 3s ease-in-out infinite;
}

@keyframes wic-pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.3); }
  50%       { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
}

.wic-hero__title {
  font-family: var(--wic-font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--wic-white);
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.wic-hero__subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 300;
  color: rgba(255,255,255,0.88);
  margin: 0;
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.6;
}

/* ── Card ────────────────────────────────────────────────── */
.wic-card {
  background: var(--wic-white);
  border-radius: 0 0 var(--wic-radius) var(--wic-radius);
  box-shadow: var(--wic-shadow);
  overflow: hidden;
}

/* ── Unit Toggle ─────────────────────────────────────────── */
.wic-unit-toggle {
  display: flex;
  gap: 0;
  padding: 24px 32px 0;
  border-bottom: 1px solid var(--wic-gray-200);
}

.wic-unit-btn {
  flex: 1;
  max-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 20px 12px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-family: var(--wic-font-body);
  transition: var(--wic-transition);
  color: var(--wic-gray-400);
  margin-bottom: -1px;
}

.wic-unit-btn span {
  font-size: 0.95rem;
  font-weight: 600;
}

.wic-unit-btn small {
  font-size: 0.72rem;
  font-weight: 400;
}

.wic-unit-btn--active {
  color: var(--wic-blue-600);
  border-bottom-color: var(--wic-blue-500);
}

.wic-unit-btn:hover:not(.wic-unit-btn--active) {
  color: var(--wic-blue-400);
  background: var(--wic-blue-50);
}

/* ── Form Fields ─────────────────────────────────────────── */
.wic-form {
  padding: 32px;
}

.wic-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.wic-field--wide {
  grid-column: 1 / -1;
}

.wic-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--wic-blue-700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.wic-label svg {
  color: var(--wic-blue-500);
  flex-shrink: 0;
}

.wic-input-group {
  position: relative;
  display: flex;
  align-items: stretch;
}

.wic-input,
.wic-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--wic-gray-200);
  border-radius: 10px;
  font-family: var(--wic-font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--wic-gray-800);
  background: var(--wic-gray-50);
  outline: none;
  transition: var(--wic-transition);
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.wic-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%230369a1' stroke-width='2' stroke-linecap='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.wic-input:focus,
.wic-select:focus {
  border-color: var(--wic-blue-500);
  background: var(--wic-white);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.wic-input.wic-error,
.wic-select.wic-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.wic-input-group .wic-input {
  border-radius: 10px 0 0 10px;
  border-right: none;
}

.wic-input-unit {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--wic-blue-600);
  color: var(--wic-white);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 0 10px 10px 0;
  border: 2px solid var(--wic-blue-600);
  white-space: nowrap;
  transition: var(--wic-transition);
}

/* ── Submit Button ───────────────────────────────────────── */
.wic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 28px;
  background: linear-gradient(135deg, var(--wic-blue-600), var(--wic-teal));
  color: var(--wic-white);
  border: none;
  border-radius: 12px;
  font-family: var(--wic-font-body);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: var(--wic-transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(14, 165, 233, 0.35);
}

.wic-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--wic-transition);
}

.wic-btn:hover::before {
  background: rgba(255,255,255,0.1);
}

.wic-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(14, 165, 233, 0.45);
}

.wic-btn:active {
  transform: translateY(0);
}

.wic-btn--outline {
  background: transparent;
  color: var(--wic-blue-600);
  border: 2px solid var(--wic-blue-200);
  box-shadow: none;
  font-size: 0.95rem;
  margin-top: 24px;
}

.wic-btn--outline:hover {
  background: var(--wic-blue-50);
  border-color: var(--wic-blue-400);
  box-shadow: none;
}

/* ── Result Panel ────────────────────────────────────────── */
.wic-result {
  border-top: 1px solid var(--wic-gray-200);
  animation: wic-slide-up 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes wic-slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wic-result__header {
  position: relative;
  background: linear-gradient(135deg, var(--wic-blue-900) 0%, var(--wic-blue-700) 100%);
  padding: 40px 40px 56px;
  text-align: center;
  overflow: hidden;
}

.wic-result__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--wic-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.wic-result__top {
  position: relative;
  z-index: 1;
}

.wic-result__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.65);
  margin-bottom: 12px;
}

.wic-result__liters {
  display: block;
  font-family: var(--wic-font-display);
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 800;
  color: var(--wic-white);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  text-shadow: 0 4px 16px rgba(0,0,0,0.2);
  animation: wic-count-in 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes wic-count-in {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

.wic-result__oz {
  display: block;
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
}

.wic-result__body {
  padding: 32px 32px 36px;
}

/* ── Glasses ─────────────────────────────────────────────── */
.wic-glasses__title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--wic-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}

.wic-glasses__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.wic-glass {
  width: 36px;
  height: 44px;
  background: var(--wic-blue-100);
  border-radius: 0 0 8px 8px;
  border: 2px solid var(--wic-blue-200);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
  cursor: default;
}

.wic-glass::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(to top, var(--wic-blue-500), var(--wic-teal));
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 0 6px 6px;
}

.wic-glass--filled::after {
  height: 100%;
}

.wic-glass:hover {
  transform: scale(1.1);
}

/* ── Breakdown ───────────────────────────────────────────── */
.wic-breakdown {
  background: var(--wic-gray-50);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 28px;
  border: 1px solid var(--wic-gray-200);
}

.wic-breakdown__title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wic-blue-700);
  margin: 0 0 14px;
}

.wic-breakdown__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wic-breakdown__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--wic-gray-600);
  padding: 6px 0;
  border-bottom: 1px dashed var(--wic-gray-200);
}

.wic-breakdown__list li:last-child {
  border-bottom: none;
  font-weight: 600;
  color: var(--wic-blue-700);
  font-size: 0.95rem;
}

.wic-breakdown__list li strong {
  font-weight: 700;
  color: var(--wic-blue-600);
}

/* ── Tips ────────────────────────────────────────────────── */
.wic-tips {
  background: linear-gradient(135deg, var(--wic-blue-50), #f0fdff);
  border-radius: 12px;
  padding: 20px 24px;
  border: 1px solid var(--wic-blue-100);
}

.wic-tips__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--wic-blue-700);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wic-tips__list {
  margin: 0;
  padding: 0 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wic-tips__list li {
  font-size: 0.88rem;
  color: var(--wic-gray-600);
  line-height: 1.55;
}

/* ── SEO Content ─────────────────────────────────────────── */
.wic-seo-content {
  margin-top: 56px;
}

.wic-seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.wic-seo-card {
  background: var(--wic-white);
  border-radius: var(--wic-radius);
  padding: 28px 26px;
  box-shadow: var(--wic-shadow-sm);
  border: 1px solid var(--wic-gray-200);
  transition: var(--wic-transition);
  position: relative;
  overflow: hidden;
}

.wic-seo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--wic-blue-500), var(--wic-teal));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wic-seo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(3, 105, 161, 0.14);
}

.wic-seo-card:hover::before {
  opacity: 1;
}

.wic-seo-card__icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
  line-height: 1;
}

.wic-seo-card h3 {
  font-family: var(--wic-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wic-blue-900);
  margin: 0 0 10px;
  line-height: 1.3;
}

.wic-seo-card p {
  font-size: 0.88rem;
  color: var(--wic-gray-600);
  line-height: 1.65;
  margin: 0;
}

.wic-seo-card p strong {
  color: var(--wic-blue-700);
  font-weight: 600;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .wic-hero { padding: 36px 20px 44px; }
  .wic-form { padding: 20px; }
  .wic-fields { grid-template-columns: 1fr; }
  .wic-field--wide { grid-column: 1; }
  .wic-unit-toggle { padding: 16px 20px 0; }
  .wic-result__header { padding: 32px 20px 48px; }
  .wic-result__body { padding: 24px 20px 28px; }
  .wic-glass { width: 30px; height: 38px; }
  .wic-seo-grid { grid-template-columns: 1fr; }
}
