/* ===== MARIS SCHEDULES PLUGIN STYLES ===== */

.maris-schedules-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: "DM Sans", sans-serif;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #4a90e2 100%);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ===== TYTUŁ ===== */
.maris-schedules-title {
  color: #ffd700;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 700;
}

/* ===== PRZYCISKI GRAFIKÓW ===== */
.maris-schedules-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  justify-content: center;
}

.maris-schedule-btn {
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  min-width: 200px;
  text-align: center;
}

.maris-schedule-btn:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: #ffd700;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.maris-schedule-btn.active {
  background: rgba(255, 215, 0, 0.3);
  border-color: #ffd700;
  color: #ffd700;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* ===== KONTENER NA GRAFIKI ===== */
.maris-schedules-content {
  position: relative;
  min-height: 400px;
}

.maris-schedule-image {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.maris-schedule-image.active {
  display: block;
}

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

/* ===== PLACEHOLDER OBRAZKA ===== */
.maris-image-placeholder {
  position: relative;
  width: 100%;
  text-align: center;
}

.maris-image-placeholder img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.maris-image-placeholder img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .maris-schedules-container {
    padding: 15px;
    margin: 10px;
  }

  .maris-schedules-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }

  .maris-schedules-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .maris-schedule-btn {
    min-width: auto;
    padding: 12px 15px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .maris-schedules-container {
    padding: 10px;
    margin: 5px;
  }

  .maris-schedules-title {
    font-size: 1.4rem;
  }

  .maris-schedule-btn {
    padding: 10px 12px;
    font-size: 0.75rem;
  }
}

/* ===== ACCESSIBILITY ===== */
.maris-schedule-btn:focus {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}

/* ===== LOADING STATE ===== */
.maris-schedule-image.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.maris-schedule-image.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid rgba(255, 215, 0, 0.3);
  border-top: 3px solid #ffd700;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .maris-schedules-container {
    background: white;
    color: black;
    box-shadow: none;
  }

  .maris-schedule-btn {
    display: none;
  }

  .maris-schedule-image {
    display: block !important;
    page-break-inside: avoid;
  }
}
