/* main.css */

.logo {
    transition: transform 0.3s ease;
}
.logo:hover {
    transform: scale(1.1);
}

.cta-btn, .btn-dashboard, .btn-back {
    background-color: #0078d7;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}
.cta-btn:hover, .btn-dashboard:hover {
    background-color: #005bb5;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 0.5s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsywność */
@media (max-width: 768px) {
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        display: none;
        flex-direction: column;
        padding: 10px;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    #menu-toggle {
        display: block;
    }
    #menu.hidden {
        display: flex;
    }
}

#capsule-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

#capsule-slider {
    display: flex;
    gap: 10px;
    padding: 20px;
    max-width: 100%;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    touch-action: pan-y;
    cursor: grab;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 50%;
    scroll-padding-right: 50%;
    scrollbar-width: none; /* Firefox */
}

#capsule-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }

#capsule-slider:active {
    cursor: grabbing;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.slider-arrow.left {
    left: 10px;
    top: 50%;
}
  
.slider-arrow.right {
    right: 10px;
    top: 50%;
}

.cube {
    flex: 0 0 auto;
    width: 180px;
    height: 180px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    scroll-snap-align: center;
    transform-style: preserve-3d;
    transform: rotateY(0deg) scale(1);
    background: #f0f0f0;
    border-radius: 12px;
    text-align: center;
    padding: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.cube.active {
    box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.3);
    transform: rotateY(0deg) scale(1.05) translateY(-10px);
    z-index: 2;
}

.cube.active::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 15px;
    background: rgba(0, 0, 0, 0.2);
    filter: blur(6px);
    border-radius: 50%;
    z-index: -1;
}

  
.cube:not(.active) {
    transform: rotateY(40deg) scale(0.85) translateY(15px);
    opacity: 0.5;
    z-index: 1;
}

.hexagon {
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    background: #f0f0f0;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cube-face.name {
    font-weight: bold;
    margin-top: 8px;
}

.cube-face.date {
    font-size: 14px;
    color: #666;
}

#autoplay-toggle {
    display: inline-block;
    margin-bottom: 10px;
    background-color: #007bff;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.cube-face.date,
.cube-face.time,
.cube-face.name {
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  color: #000;
}

.cube-face.name {
  font-weight: bold;
  margin-top: 4px;
}
.cube.deleting {
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.4s ease;
}

.swiper-slide {
    width: auto;
    transform-style: preserve-3d;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cube.hexagon {
    position: relative;
    width: 160px;
    height: 140px;
    background: #f0f0f0;
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.cube.hexagon:hover {
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.cube-face {
    font-size: 14px;
    text-align: center;
    color: #333;
}

.cube .name {
    font-weight: bold;
    margin-top: 5px;
}

.delete-capsule {
    margin-top: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
  }
  
  .delete-capsule:hover {
    opacity: 1;
  }
  

.swiper {
    padding: 0 60px;
}
    .swiper-button-next, .swiper-button-prev {
    color: #555;
}

.cube.hexagon {
    border: 2px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    background-color: #fff;
    border-radius: 12px;
  }
  
  /* Tryb ciemny */
  body.dark .cube.hexagon {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.08);
  }
  
  /* Zaznaczona kapsuła */
  .cube.hexagon.active {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3), 0 6px 18px rgba(0, 123, 255, 0.4);
  }
  
  /* Hover efekt – tylko jeśli nie jest aktywna */
  .cube.hexagon:hover:not(.active) {
    border-color: #bbb;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    transform: scale(1.015);
  }

  @keyframes pulseGlow {
    0% {
      box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3), 0 6px 18px rgba(0, 123, 255, 0.4);
    }
    50% {
      box-shadow: 0 0 0 6px rgba(0, 123, 255, 0.1), 0 8px 24px rgba(0, 123, 255, 0.2);
    }
    100% {
      box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3), 0 6px 18px rgba(0, 123, 255, 0.4);
    }
  }
  
  .cube.hexagon.active {
    border-color: #007bff;
    animation: pulseGlow 2s infinite;
    background-color: #ffffff;
    z-index: 10;
  }
  
  
/* Tryb nocny – stylizacja bloku informacji o czasie */
body.dark-mode .time-info {
    background-color: rgba(255, 255, 255, 0.05);
    color: #0a0a0a;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  }
  
  /* Tryb nocny – kapsuły */
  body.dark-mode .vault-hex {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease-in-out;
  }
  
  /* Podświetlenie przy hover i aktywna kapsuła */
  body.dark-mode .vault-hex:hover,
  body.dark-mode .vault-hex.active {
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.2);
  }
  
  /* Usuwamy prostokątne tło */
  body.dark-mode .swiper-slide {
    background: transparent !important;
    box-shadow: none !important;
  }
  
  .swiper-slide {
    width: auto;
    transform-style: preserve-3d;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .time-info {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
    font-size: 0.95em;
    background: var(--background-info, #f9f9f9);
    color: var(--text-color, #000);
  }
  body.dark .time-info {
    background: rgba(255, 255, 255, 0.08);
    color: #eee;
  }
  body.dark .cube.hexagon {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

/* Tryb nocny - poprawka dla listy aplikacji do pobrania */
body.dark .download-list li {
    background-color: rgba(255, 255, 255, 0.05);
    color: #eee;
  }
  
  body.dark .download-list li strong {
    color: #fff;
  }
  
  body.dark .download-list a {
    color: #9dd1ff;
    border: 1px solid #2b76c0;
  }
  
  body.dark .download-list a:hover {
    background-color: #2b76c0;
    color: white;
  }
  
  .pagination {
    text-align: center;
    margin-top: 20px;
  }
  .step-links a {
    margin: 0 5px;
  }


.encrypting {
    animation: pulse 1.5s infinite;
    opacity: 0.6;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}
#cak-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-surface, #2c3e50);
  color: var(--color-text, #ecf0f1);
  font-family: "Segoe UI", sans-serif;
  font-size: 14px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
  z-index: 9999;
}
.cak-banner-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.cak-banner-message {
  padding: 10px 20px;
  text-align: center;
}
.cak-banner-bar-container {
  width: 100%;
  height: 6px;
  background: #444;
}
.cak-banner-bar {
  height: 100%;
  background: linear-gradient(90deg, #3498db, #1abc9c);
  width: 100%;
  transition: width 1s linear;
}
@media (prefers-color-scheme: dark) {
  #cak-banner {
    background: #111;
    color: #ccc;
  }
  .cak-banner-bar-container {
    background: #222;
  }
  .cak-banner-bar {
    background: linear-gradient(90deg, #2980b9, #16a085);
  }
}

.pagination {
  margin-top: 20px;
  text-align: center;
}
.pagination a {
  padding: 6px 12px;
  margin: 2px;
  background-color: #eee;
  color: #333;
  border-radius: 4px;
  text-decoration: none;
}
.pagination span {
  margin: 0 10px;
  font-weight: bold;
}

.cak-banner {
  background: #1a1a1a;
  color: #79b8ff;
  font-family: monospace;
  text-align: center;
  padding: 8px;
  font-size: 14px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.cak-expired {
  background-color: #511;
  color: #fff;
}

.cak-modal {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #111;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255,255,255,0.1);
  z-index: 10000;
}
.cak-modal input {
  display: block;
  width: 100%;
  margin-top: 10px;
}
.hidden { display: none; }
.tab-content { margin-top: 1rem; }
    .tab-content textarea, .tab-content input { width: 100%; margin-top: .5rem; padding: .5rem; }
    .tabs { list-style: none; padding: 0; display: flex; gap: 1rem; }
    .tabs button { padding: .5rem 1rem; cursor: pointer; }
    .recorder-list-section h3 {
        margin-top: 2rem;
      }
      .recorder-list-section ul {
        list-style: none;
        padding: 0;
      }
      .recorder-list-section li {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid #ccc;
      }
      .custom-btn-dashboard {
        padding: 0.5rem 1rem;
        background: #f3f4f6;
        border: 1px solid #ccc;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
      }
      .custom-btn-dashboard:hover {
        background-color: #e5e7eb;
      }
      .custom-btn-dashboard.active {
        background-color: #2563eb;
        color: white;
      }
      .btn-start {
        background-color: #22c55e;
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 6px;
      }
      .btn-stop {
        background-color: #ef4444;
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 6px;
      }
      .btn-save {
        background-color: #3b82f6;
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 6px;
      }
       /* === Sekcja "O nas" === */
    .about-content-highlight {
      background: linear-gradient(to right, #1e1e1e, #2c2c2c);
      color: #fff;
      padding: 60px 30px;
      text-align: center;
      box-shadow: 0 10px 25px rgba(0,0,0,0.3);
      animation: fadeInUp 1.2s ease-out forwards;
      opacity: 0;
      transform: translateY(30px);
    }
    .about-content-highlight .content-wrapper {
      max-width: 800px;
      margin: 0 auto;
      font-size: 1.25rem;
      line-height: 1.6;
      position: relative;
    }
    .about-content-highlight .content-wrapper::before {
      content: '';
      position: absolute;
      top: -20px;
      left: 50%;
      transform: translateX(-50%);
      width: 60px;
      height: 5px;
      background: #00ffd5;
      border-radius: 5px;
    }
    
    /* === Animacje === */
    @keyframes fadeInUp {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    @keyframes glassFadeIn {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    @keyframes parallaxFadeIn {
      0% {
        opacity: 0;
        transform: scale(1.1);
      }
      100% {
        opacity: 1;
        transform: scale(1);
      }
    }
    @keyframes overlayShift {
      0% {
        background-position: 0% 50%;
      }
      100% {
        background-position: 100% 50%;
      }
    }
    
    /* === Responsywność === */
    @media (max-width: 768px) {
      .glass-hero-content,
      .glass-content-wrapper {
        padding: 25px;
        font-size: 1.4rem;
      }
      .cta-btn {
        padding: 12px 24px;
        font-size: 1rem;
      }
      .about-content-highlight {
        padding: 40px 15px;
      }
      .about-content-highlight .content-wrapper {
        font-size: 1.1rem;
      }
    }
    .plan-card-glass {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        overflow: hidden;
        color: #fff;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        max-height: 550px;
        position: relative;
        cursor: pointer;
      }
      
      .plan-card-glass.expanded {
        max-height: 900px;
      }
      
      .plan-body {
        padding: 30px 20px;
        text-align: center;
        color: #1a1a1a; /*  lub np. #333 dla ciemnego tekstu */
      }
      
      .plan-body h4 {
        margin-top: 15px;
        font-weight: bold;
        color: #1a1a1a; /*  lub np. #333 dla ciemnego tekstu */
      }
      
      .component-list {
        list-style: none;
        padding: 0;
        margin: 10px 0;
        max-height: 150px;
        overflow: hidden;
        transition: max-height 0.3s ease;
        color: #1a1a1a; /*  lub np. #333 dla ciemnego tekstu */
      }
      .plan-card-glass.expanded .component-list {
        max-height: 400px;
      }
      
      .plan-body ul li {
        padding: 5px 0;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
        color: #1a1a1a; /*  lub np. #333 dla ciemnego tekstu */
      }
      
      .expand-info {
        font-size: 0.9rem;
        color: #ccc;
        margin-top: 10px;
        transition: opacity 0.3s;
      }
      .plan-card-glass.expanded .expand-info {
        opacity: 0;
      }
      .plan-header {
        background-color: rgba(255, 136, 0, 0.9);
        padding: 20px;
        text-align: center;
        font-weight: bold;
        font-size: 1.4rem;
        letter-spacing: 1px;
        color: #fff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
      }
      .plan-btn {
        display: inline-block;
        margin-top: 10px;
        padding: 12px 24px;
        font-size: 1rem;
        border-radius: 30px;
        background-color: #ff8800;
        color: #fff;
        text-decoration: none;
        font-weight: bold;
        transition: background 0.3s;
      }
      .plan-btn:hover {
        background-color: #e07300;
      }
      /* Gradientowy cień na dole listy komponentów */
.component-list-wrapper {
  position: relative;
  overflow: hidden;
}

.component-list::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 50px;
  width: 100%;
  background: linear-gradient(to top, #ffffff, rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 2;
}

/* Strzałka rozszerzania */
.expand-indicator {
  font-size: 1.5rem;
  color: #999;
  margin-top: 10px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Gdy karta jest rozwinięta – obracamy strzałkę */
.plan-card-glass.expanded .expand-indicator {
  transform: rotate(180deg);
  opacity: 0.7;
}
.plans-wrapper::-webkit-scrollbar {
  height: 8px;
}
.plans-wrapper::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
.plans-wrapper {
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  overflow-y: visible;
  -ms-overflow-style: none;  /* Internet Explorer / Edge */
  scrollbar-width: none;     /* Firefox */
}
.plans-wrapper::-webkit-scrollbar {
  display: none;             /* Chrome / Safari / Opera */
}
.plan-card-glass {
  scroll-snap-align: start;
}
#plans {
  overflow: visible;
}

