/* advanced-modal.css - Modal dla funkcji YourPT */

/* ==========================================================
   MODAL OVERLAY & CONTAINER
   ========================================================== */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.show-modal {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Modal content container */
.advanced-modal-content {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  overflow: hidden;
  animation: slideUp 0.3s ease;
  position: relative;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Close button (X) */
.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #666;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.2);
  color: #333;
  transform: rotate(90deg);
}

/* ==========================================================
   LEFT COLUMN - Icon + Menu + WATCH
   ========================================================== */

.modal-left {
  width: 280px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  padding: 40px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  flex-shrink: 0;
}

/* Tool icon */
.modal-tool-icon {
  width: 120px;
  height: 120px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

.modal-tool-icon:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.25));
}

.modal-tool-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Tool name */
.modal-tool-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  text-align: center;
  line-height: 1.3;
}

/* Functions menu */
.modal-functions-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  flex: 1;
}

.modal-function-btn {
  background: white;
  border: 2px solid transparent;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  line-height: 1.4;
}

.modal-function-btn:hover {
  background: #f0f4f8;
  color: #2d3748;
  border-color: #e2e8f0;
}

.modal-function-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* WATCH button */
.modal-watch-btn {
  background: linear-gradient(135deg, #1a5632 0%, #145028 100%);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(26, 86, 50, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: auto;
  text-decoration: none;
}

.modal-watch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 86, 50, 0.5);
  background: linear-gradient(135deg, #145028 0%, #0f3d1f 100%);
}

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

.modal-watch-btn::before {
  content: '▶';
  font-size: 0.9rem;
}

/* ==========================================================
   RIGHT COLUMN - Content
   ========================================================== */

.modal-right {
  flex: 1;
  padding: 40px 45px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Custom scrollbar */
.modal-right::-webkit-scrollbar {
  width: 8px;
}

.modal-right::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.modal-right::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
}

.modal-right::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

/* Content title */
.modal-content-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0;
  line-height: 1.2;
}

/* Content description */
.modal-content-description {
  font-size: 1.05rem;
  color: #4a5568;
  line-height: 1.7;
  margin: 0;
}

/* Highlight box */
.modal-highlight-box {
  background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
  border-left: 4px solid #48bb78;
  padding: 20px 24px;
  border-radius: 8px;
  margin-top: 10px;
}

.modal-highlight-box p {
  font-size: 1rem;
  color: #2d3748;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

/* ==========================================================
   RESPONSIVE - MEDIUM (Tablet)
   ========================================================== */

@media (max-width: 1024px) {
  .advanced-modal-content {
    flex-direction: column;
    max-height: 85vh;
  }
  
  .modal-left {
    width: 100%;
    padding: 30px 20px 25px;
  }
  
  .modal-tool-icon {
    width: 80px;
    height: 80px;
  }
  
  .modal-tool-name {
    font-size: 1.15rem;
  }
  
  /* Menu w jednej linii dla medium */
  .modal-functions-menu {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  
  .modal-function-btn {
    flex: 0 1 auto;
    min-width: 140px;
    padding: 10px 14px;
    font-size: 0.85rem;
  }
  
  .modal-watch-btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
  
  .modal-right {
    padding: 30px 35px;
  }
  
  .modal-content-title {
    font-size: 1.75rem;
  }
  
  .modal-content-description {
    font-size: 1rem;
  }
}

/* ==========================================================
   RESPONSIVE - MOBILE
   ========================================================== */

@media (max-width: 768px) {
  .modal-overlay {
    padding: 10px;
  }
  
  .advanced-modal-content {
    border-radius: 16px;
    max-height: 92vh;
  }
  
  .modal-left {
    padding: 25px 15px 20px;
    gap: 20px;
  }
  
  .modal-tool-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
  }
  
  .modal-tool-name {
    font-size: 1.1rem;
  }
  
  /* Menu pionowo na mobile */
  .modal-functions-menu {
    flex-direction: column;
    gap: 8px;
  }
  
  .modal-function-btn {
    width: 100%;
    padding: 11px 14px;
    font-size: 0.88rem;
  }
  
  .modal-watch-btn {
    padding: 13px 20px;
    font-size: 0.95rem;
  }
  
  .modal-right {
    padding: 25px 20px;
  }
  
  .modal-content-title {
    font-size: 1.5rem;
  }
  
  .modal-content-description {
    font-size: 0.95rem;
  }
  
  .modal-highlight-box {
    padding: 16px 18px;
  }
  
  .modal-highlight-box p {
    font-size: 0.93rem;
  }
  
  .modal-close {
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    font-size: 18px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .modal-left {
    padding: 20px 12px 18px;
  }
  
  .modal-tool-icon {
    width: 60px;
    height: 60px;
  }
  
  .modal-tool-name {
    font-size: 1rem;
  }
  
  .modal-function-btn {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  
  .modal-right {
    padding: 20px 15px;
  }
  
  .modal-content-title {
    font-size: 1.35rem;
  }
  
  .modal-content-description {
    font-size: 0.9rem;
  }
}
