/* css_techcode */
/*—————————————————————————————————————
  Tech & Code Page (pełny CSS z aktualizacjami)
—————————————————————————————————————*/
.techcode-page {
  padding: 4rem 2rem;
  background: var(--tech-bg);
  color: var(--tech-text);
  line-height: 1.6;
}

/* Profile */
.profile {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto 3rem;
}
.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}
.profile-info h1 {
  font-size: 2.5rem;
  margin: 0;
}
.profile-info h2 {
  font-size: 1.25rem;
  margin: 0;
  color: var(--accent);
}

/* Two-column layout */
.two-col {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.col-left {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.col-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Section headings */
.section-heading {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--accent);
  padding-left: 0.75rem;
}

/*—————————————————————————————————————
  Technologies (ikonki) – GRID 3 kolumny + expand bez reorder
—————————————————————————————————————*/
.technologies {
  margin: 2rem auto 3rem;
  max-width: 900px;
}
.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto 3rem;
  grid-auto-flow: dense;
  transition: all 0.3s ease;
}
.icon {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 2rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}
.icon:hover {
  background: rgba(255,255,255,0.12);
  transform: scale(1.05);
}
.icon img {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}
.icon .icon-details {
  display: none;
  text-align: left;
  color: var(--tech-text);
}
.icon-grid.expanded-mode .icon:not(.expanded) {
  opacity: 0.5;
  transform: scale(0.8);
}
.icon-grid.expanded-mode .icon.expanded {
  grid-column: span 2;
  background: var(--accent);
}
.icon-grid.expanded-mode .icon:nth-child(3n).expanded {
  grid-column-start: 3;
  grid-column-end: span 3;
}
.icon-grid.expanded-mode .icon.expanded img {
  transform: scale(1.3);
  margin-bottom: 1.25rem;
}
.icon-grid.expanded-mode .icon.expanded .icon-details {
  display: block;
}
@media (max-width: 800px) {
  .icon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .icon-grid.expanded-mode .icon.expanded {
    grid-column: span 2;
  }
}
@media (max-width: 500px) {
  .icon-grid {
    grid-template-columns: 1fr;
  }
  .icon-grid.expanded-mode .icon.expanded {
    grid-column: span 1;
  }
}

/*—————————————————————————————————————
  Experience (klikane kafelki)
—————————————————————————————————————*/
.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto 3rem;
}

.exp-item {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: background 0.3s, transform 0.3s, opacity 0.3s;
}
.exp-item:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-3px);
}

/* HEADER: data i tytuł w kolumnie */
.exp-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}
.exp-year {
  font-weight: 600;
  font-size: 1rem;
  color: var(--tech-text-light);
  white-space: nowrap;  /* nie łam daty */
}
.exp-title {
  font-size: 1.1rem;
  color: var(--accent);
  line-height: 1.2;
}

/* szczegóły domyślnie ukryte */
.exp-details {
  display: none;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--tech-text);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0;
}

/* gdy jakiś kafelek jest rozwinięty */
.experience-grid.expanded-mode .exp-item:not(.expanded) {
  opacity: 0.5;
  transform: scale(0.9);
}

/* rozwinięty kafelek */
.exp-item.expanded {
  background: var(--accent);
}
.exp-item.expanded .exp-details {
  display: block;
  padding: 0.5rem 0 0;
  max-height: 900px; /* więcej miejsca na dłuższe teksty */
}

/* Mobile: 2 → 1 kolumna */
@media (max-width: 800px) {
  .experience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .experience-grid {
    grid-template-columns: 1fr;
  }
}

/*—————————————————————————————————————
  Skills (paski umiejętności)
—————————————————————————————————————*/
.skill-bars .skill-row {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.skill-name {
  width: 100px;
  font-weight: 600;
}
.skill-bar {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.1);
  margin: 0 1rem;
  border-radius: 4px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  background: var(--accent);
  width: 0;
  transition: width 0.6s ease-in-out;
}
.skill-value {
  width: 40px;
  text-align: right;
  font-size: 0.9rem;
}
/* Po załadowaniu: wypełnij paski na podstawie data-fill */
body.loaded .skill-fill {
  width: attr(data-fill); /* fallback w razie potrzeby */
}

/*—————————————————————————————————————
  Współpraca i Podejście
—————————————————————————————————————*/
.collaboration {
  margin: 2rem 0;
}
.collab-list {
  list-style: disc inside;
  margin: 0;
  padding: 0 1rem;
}
.collab-list li {
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.approach {
  margin: 2rem 0;
}
.approach p {
  margin-bottom: 1rem;
  line-height: 1.5;
}

/*—————————————————————————————————————
  CTA button
—————————————————————————————————————*/
.cta {
  text-align: center;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--tech-bg);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

/*—————————————————————————————————————
  Contact email
—————————————————————————————————————*/
.contact-email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.contact-email i {
  font-size: 1.2rem;
}
.contact-email a {
  color: var(--accent);
  text-decoration: none;
}

/* Mobile adjustments for profile & columns */
@media (max-width: 768px) {
  .profile {
    flex-direction: column;
    text-align: center;
  }
  .two-col {
    flex-direction: column;
  }
}

/* css_start_template */
:root {
  --tech-bg:   #1e2a33;
  --tech-text: #f8f1e6;
  --life-bg:   #f8f1e6;
  --life-text: #1e2a33;
  --accent:    #3ec5f1;
}

/* Reset & bazowe */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  width: 100%;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
#app {
  width: 100%;
  height: 100%;
}

/* Scroll – desktop */
@media (min-width: 769px) {
  html, body {
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
  }
  #app:has(.entry) {
    overflow: hidden;
  }
}

/* Scroll – mobile */
@media (max-width: 768px) {
  html, body, #app {
    height: auto;
    overflow: auto;
  }
}

/* Ekran startowy */
.entry {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  transition: all 0.5s ease-in-out;
}
.block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.block:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Animacja rozszerzenia */
.entry--animating .block {
  flex: 0;
  opacity: 0;
  pointer-events: none;
  transition: flex 0.4s ease, opacity 0.3s ease;
}
.entry--animating .block--expand {
  flex: 1 !important;
  opacity: 1 !important;
  pointer-events: auto;
  z-index: 10;
}

/* Tła i teksty */
.block--tech {
  background: var(--tech-bg);
  color: var(--tech-text);
}
.block--life {
  background: var(--life-bg);
  color: var(--life-text);
}

/* Nagłówki */
.block h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Języki */
.langs {
  display: flex;
  gap: 0.75rem;
}
a[data-lang] {
  background: transparent;
  border: 2px solid currentColor;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

/* Tech & Code – jednolite kolory */
.block--tech a[data-lang] {
  color: var(--tech-text);
  border-color: var(--tech-text);
}
.block--tech a[data-lang]:hover {
  background: var(--tech-text);
  color: var(--tech-bg);
  transform: translateY(-2px);
}

/* Life & Stories – jednolite kolory */
.block--life a[data-lang] {
  color: var(--life-text);
  border-color: var(--life-text);
}
.block--life a[data-lang]:hover {
  background: var(--life-text);
  color: var(--life-bg);
  transform: translateY(-2px);
}

/* Focus ring */
a[data-lang]:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .entry {
    flex-direction: column;
    height: auto;
  }
  .block {
    min-height: 50vh;
    padding: 2rem 1rem;
  }
  .block h1 {
    font-size: 2rem;
  }
  a[data-lang] {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
}

