/* ============================================================
   AstroEnergy — Platforma dla Doradców OZE
   ============================================================ */

/* --- Password Gate --- */
.password-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  position: relative;
}

.password-gate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/bg-top.jpg') center/cover no-repeat;
  opacity: 0.2;
}

.password-gate__box {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.password-gate__logo {
  max-width: 180px;
  margin: 0 auto 2rem;
}

.password-gate__title {
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.password-gate__desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
}

.password-gate__input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 1rem;
  text-align: center;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.password-gate__input::placeholder {
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em;
}

.password-gate__input:focus {
  outline: none;
  border-color: var(--accent);
}

.password-gate__error {
  color: #ef4444;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  display: none;
}

/* --- Platform Content (hidden by default) --- */
.platform-content {
  display: none;
}

.platform-content.active {
  display: block;
}

/* --- Hero --- */
.platform-hero {
  position: relative;
  overflow: hidden;
}

.platform-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/bg-top.jpg') center/cover no-repeat;
  opacity: 0.15;
  z-index: 0;
}

.platform-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to bottom, transparent, #fff);
  z-index: 0;
}

.platform-hero .container {
  position: relative;
  z-index: 1;
}

/* --- Video Categories --- */
.platform-category {
  margin-bottom: 3rem;
}

.platform-category__title {
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent-bg);
}

.platform-videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.platform-video {
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.platform-video:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-color: rgba(104, 41, 106, 0.2);
}

.platform-video__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.platform-video__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.platform-video:hover .platform-video__thumb img {
  transform: scale(1.04);
}

.platform-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(104, 41, 106, 0.85);
  border-radius: 50%;
  transition: all 0.3s;
}

.platform-video:hover .platform-video__play {
  background: rgba(138, 61, 140, 0.95);
  transform: translate(-50%, -50%) scale(1.1);
}

.platform-video__title {
  padding: 0.875rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.4;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .platform-videos {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .platform-videos {
    grid-template-columns: 1fr;
  }
}
