/* Modern Beer-Themed Design - Clean & Eye-Friendly */

:root {
  --beer-amber: #FF8C00;
  --beer-gold: #FFA500;
  --beer-light: #FFE4B5;
  --beer-foam: #FFF8DC;
  --text-dark: #2C1810;
  --text-medium: #4A2C1A;
  --bg-light: #FFFBF5;
  --bg-cream: #FFF8E7;
  --shadow-soft: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --shadow-strong: rgba(0, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header quick links */
.doc-header__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.doc-header__link {
  color: var(--text-dark);
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doc-header__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.doc-header__link-icon {
  font-size: 1.1em;
}

.doc-header__link-file {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  background: rgba(255, 255, 255, 0.35);
  padding: 0.1rem 0.35rem;
  border-radius: 8px;
}

.beer-briefed-doc-page {
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    #FFF8E7 0%,
    #FFE4B5 25%,
    #FFD700 50%,
    #FFA500 75%,
    #FF8C00 100%
  );
  padding: 2rem 1rem;
  position: relative;
  overflow-x: hidden;
}

/* Enhanced floating bubbles - multiple layers */
.beer-briefed-doc-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.4) 3px, transparent 3px),
    radial-gradient(circle at 30% 60%, rgba(255, 255, 255, 0.35) 2px, transparent 2px),
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.45) 4px, transparent 4px),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.3) 2.5px, transparent 2.5px),
    radial-gradient(circle at 90% 30%, rgba(255, 255, 255, 0.4) 3.5px, transparent 3.5px),
    radial-gradient(circle at 20% 90%, rgba(255, 255, 255, 0.35) 2px, transparent 2px),
    radial-gradient(circle at 60% 10%, rgba(255, 255, 255, 0.4) 3px, transparent 3px),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.3) 2px, transparent 2px);
  background-size: 150px 150px, 200px 200px, 180px 180px, 160px 160px, 170px 170px, 190px 190px, 140px 140px, 210px 210px;
  background-position: 0 0, 50px 50px, 100px 100px, 150px 150px, 200px 200px, 250px 250px, 300px 300px, 350px 350px;
  animation: bubbleRise 15s linear infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.beer-briefed-doc-page::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.3) 2.5px, transparent 2.5px),
    radial-gradient(circle at 45% 20%, rgba(255, 255, 255, 0.35) 3px, transparent 3px),
    radial-gradient(circle at 75% 60%, rgba(255, 255, 255, 0.25) 2px, transparent 2px),
    radial-gradient(circle at 25% 80%, rgba(255, 255, 255, 0.4) 3.5px, transparent 3.5px),
    radial-gradient(circle at 85% 40%, rgba(255, 255, 255, 0.3) 2px, transparent 2px);
  background-size: 180px 180px, 160px 160px, 200px 200px, 170px 170px, 190px 190px;
  background-position: 40px 40px, 90px 90px, 140px 140px, 190px 190px, 240px 240px;
  animation: bubbleRise 20s linear infinite reverse;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

@keyframes bubbleRise {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100px) translateX(30px);
    opacity: 0;
  }
}

.doc-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding-top: 40px;
}

/* Header Section */
.doc-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.doc-header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.doc-header h1::after {
  content: ' 🍺';
  display: inline-block;
  margin-left: 0.5rem;
  animation: beerTilt 3s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes beerTilt {
  0%, 100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
}

.doc-subtitle {
  font-size: 1.25rem;
  color: var(--text-medium);
  font-weight: 400;
  margin: 0;
  opacity: 0.8;
}

/* Beer Glass Container */
.doc-content {
  background-image:
    /* Bubbles rising in the beer */
    radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.25) 3px, transparent 3px),
    radial-gradient(circle at 35% 65%, rgba(255, 255, 255, 0.2) 2px, transparent 2px),
    radial-gradient(circle at 55% 35%, rgba(255, 255, 255, 0.3) 4px, transparent 4px),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.15) 1.5px, transparent 1.5px),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.22) 3px, transparent 3px),
    radial-gradient(circle at 25% 80%, rgba(255, 255, 255, 0.2) 2.5px, transparent 2.5px),
    radial-gradient(circle at 65% 50%, rgba(255, 255, 255, 0.25) 3.5px, transparent 3.5px),
    /* Glass reflection effects */
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 20%, transparent 40%),
    radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, 0.25) 0%, transparent 50%),
    /* Beer color gradient */
    linear-gradient(
      180deg,
      rgba(255, 248, 220, 0.95) 0%,
      rgba(255, 235, 180, 0.9) 5%,
      rgba(255, 200, 100, 0.85) 15%,
      rgba(255, 180, 80, 0.9) 30%,
      rgba(255, 160, 60, 0.95) 50%,
      rgba(255, 140, 40, 0.98) 70%,
      rgba(255, 120, 30, 1) 100%
    );
  background-size: 
    60px 60px, 80px 80px, 70px 70px, 90px 90px, 65px 65px, 75px 75px, 85px 85px,
    100% 100%, 100% 100%, 100% 100%;
  background-position: 
    0 0, 20px 20px, 40px 40px, 60px 60px, 80px 80px, 30px 30px, 50px 50px,
    0 0, 0 0, 0 0;
  border-radius: 0 0 20px 20px;
  padding: 4rem 3rem 3rem 3rem;
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.3),
    0 10px 30px rgba(0, 0, 0, 0.2),
    inset -3px 0 10px rgba(255, 255, 255, 0.3),
    inset 3px 0 10px rgba(0, 0, 0, 0.1),
    inset 0 -20px 40px rgba(139, 69, 19, 0.2);
  border: 3px solid rgba(200, 200, 200, 0.4);
  border-top: none;
  position: relative;
  overflow: hidden;
  animation: bubbleMove 12s ease-in-out infinite;
}

/* Glass base/stem */
.doc-content::after {
  content: '';
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 25px;
  background: linear-gradient(
    180deg,
    rgba(200, 200, 200, 0.6) 0%,
    rgba(180, 180, 180, 0.8) 50%,
    rgba(160, 160, 160, 0.6) 100%
  );
  border-radius: 0 0 60px 60px;
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.3),
    inset 0 -5px 10px rgba(0, 0, 0, 0.2);
  z-index: -1;
}

@keyframes bubbleMove {
  0% {
    background-position: 
      0 0, 20px 20px, 40px 40px, 60px 60px, 80px 80px, 30px 30px, 50px 50px,
      0 0, 0 0, 0 0;
  }
  50% {
    background-position: 
      10px -10px, 30px 10px, 50px -5px, 70px 50px, 90px 70px, 40px 20px, 60px 40px,
      0 0, 0 0, 0 0;
  }
  100% {
    background-position: 
      0 -20px, 20px 0px, 40px -10px, 60px 40px, 80px 60px, 30px -5px, 50px 20px,
      0 0, 0 0, 0 0;
  }
}

/* Beer foam head at top of glass */
.doc-content::before {
  content: '';
  position: absolute;
  top: -35px;
  left: -5px;
  right: -5px;
  height: 60px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 250, 0.95) 20%,
    rgba(255, 255, 240, 0.9) 40%,
    rgba(255, 248, 220, 0.8) 60%,
    rgba(255, 240, 200, 0.6) 80%,
    rgba(255, 235, 180, 0.4) 100%
  );
  border-radius: 50% 50% 15px 15px / 60% 60% 10px 10px;
  pointer-events: none;
  z-index: 2;
  box-shadow: 
    0 -5px 15px rgba(255, 255, 255, 0.5),
    inset 0 -10px 20px rgba(255, 248, 220, 0.3);
  /* Foam bubbles */
  background-image:
    radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.9) 5px, transparent 5px),
    radial-gradient(circle at 30% 45%, rgba(255, 255, 255, 0.85) 4px, transparent 4px),
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.95) 6px, transparent 6px),
    radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.8) 4.5px, transparent 4.5px),
    radial-gradient(circle at 85% 60%, rgba(255, 255, 255, 0.85) 5px, transparent 5px),
    radial-gradient(circle at 25% 70%, rgba(255, 255, 255, 0.8) 4px, transparent 4px),
    radial-gradient(circle at 60% 75%, rgba(255, 255, 255, 0.9) 5.5px, transparent 5.5px),
    radial-gradient(circle at 40% 15%, rgba(255, 255, 255, 0.85) 4px, transparent 4px);
  background-size: 30px 30px, 35px 35px, 25px 25px, 32px 32px, 28px 28px, 33px 33px, 27px 27px, 31px 31px;
  animation: foamBubbles 4s ease-in-out infinite;
}

@keyframes foamBubbles {
  0%, 100% {
    transform: scaleY(1) scaleX(1);
    opacity: 0.9;
  }
  50% {
    transform: scaleY(1.05) scaleX(0.98);
    opacity: 1;
  }
}

/* Section Styling */
.doc-section {
  margin-bottom: 3rem;
}

.doc-section:last-child {
  margin-bottom: 0;
}

.doc-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--beer-gold);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.doc-section h2::before {
  content: '🍻';
  font-size: 1.5rem;
}

.doc-description {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-medium);
  margin: 0;
  text-align: justify;
  font-weight: 400;
  position: relative;
  z-index: 1;
  background: var(--bg-cream);
  padding: 1.75rem;
  border-radius: 16px;
  border-left: 4px solid var(--beer-gold);
  box-shadow: 
    0 2px 8px var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Team Members */
.team-members {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.team-member {
  flex: 1;
  min-width: 200px;
  background: linear-gradient(135deg, #FFF8E7 0%, #FFE4B5 100%);
  padding: 1.25rem 2rem;
  border-radius: 16px;
  border: 2px solid rgba(255, 165, 0, 0.2);
  box-shadow: 
    0 4px 12px var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.team-member:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 8px 24px var(--shadow-medium),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 165, 0, 0.4);
}

.member-name {
  color: var(--text-dark);
  font-size: 1.125rem;
  font-weight: 600;
  display: block;
  text-align: center;
  position: relative;
  z-index: 1;
}

.concept-subsection {
  background: var(--bg-cream);
  padding: 1.75rem;
  border-radius: 16px;
  border-left: 4px solid var(--beer-gold);
  margin-bottom: 1.5rem;
  box-shadow: 
    0 2px 8px var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.concept-subsection:last-child {
  margin-bottom: 0;
}

.concept-subsection:hover {
  box-shadow: 
    0 4px 16px var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.concept-subsection h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 1rem 0;
  position: relative;
  z-index: 1;
}

.concept-subsection p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-medium);
  margin: 0;
  text-align: justify;
  position: relative;
  z-index: 1;
}

.reflection-block {
  background: var(--bg-cream);
  padding: 1.75rem;
  border-radius: 16px;
  border-left: 4px solid var(--beer-gold);
  margin-bottom: 1.5rem;
  box-shadow:
    0 2px 8px var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.reflection-block:last-child {
  margin-bottom: 0;
}

.reflection-block:hover {
  box-shadow:
    0 4px 16px var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.reflection-block h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 1rem 0;
  position: relative;
  z-index: 1;
}

.reflection-block p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-medium);
  margin: 0;
  text-align: justify;
  position: relative;
  z-index: 1;
}

.prototype-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.database-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  object-fit: contain;
}

.prototype-image-wrapper {
  background: var(--bg-cream);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 
    0 4px 12px var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-left: 4px solid var(--beer-gold);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prototype-image-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 8px 24px var(--shadow-medium),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.prototype-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.pdf-section {
  background-color: ffffff;
  color: #000;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .beer-briefed-doc-page {
    padding: 1rem 0.5rem;
  }

  .doc-header h1 {
    font-size: 2.5rem;
  }

  .doc-subtitle {
    font-size: 1.125rem;
  }

  .doc-content {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .doc-section h2 {
    font-size: 1.75rem;
  }

  .doc-description,
  .concept-subsection p {
    font-size: 1rem;
  }

  .team-members {
    flex-direction: column;
  }

  .team-member {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .doc-header h1 {
    font-size: 2rem;
  }

  .doc-content {
    padding: 1.5rem 1rem;
  }

  .doc-section h2 {
    font-size: 1.5rem;
  }

  .concept-subsection {
    padding: 1.25rem;
  }

  .prototype-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
