/* Calendario Tool AI - Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #0a0a0a;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigation Header */
.nav-header {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: #00D4FF;
  transition: opacity 0.2s;
}

.nav-logo:hover {
  opacity: 0.8;
}

.logo-img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 2px;
}

.back-link {
  color: #00D4FF;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
}

.back-link:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.3);
}

/* Main Container */
.tools-calendar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  flex: 1;
}

.calendar-header {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
  padding: 3rem 2rem 2rem;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.2);
  margin-bottom: 3rem;
  backdrop-filter: blur(10px);
}

.calendar-header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #00D4FF 0%, #7B2CBF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.calendar-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 400px;
  margin-bottom: 2rem;
}

.nav-btn {
  background: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3);
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 212, 255, 0.5);
}

.nav-btn:active {
  transform: translateY(0);
}

.nav-btn:disabled {
  background: rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
  box-shadow: none;
}

.month-year {
  font-size: 1.5rem;
  font-weight: 600;
  font-family: 'Orbitron', sans-serif;
  color: #00D4FF;
}

/* FILTRI */
.filters-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.filters-title {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.filters-count {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Inter', sans-serif;
}

.filters-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  font-size: 0.875rem;
  background: rgba(26, 26, 26, 0.6);
  color: white;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-input:focus {
  outline: none;
  border-color: #00D4FF;
  background: rgba(26, 26, 26, 0.9);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.125rem;
  opacity: 0.6;
}

.category-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 0.625rem 1.25rem;
  border: 2px solid rgba(0, 212, 255, 0.3);
  background: rgba(26, 26, 26, 0.6);
  border-radius: 24px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Inter', sans-serif;
}

.filter-chip:hover {
  border-color: #00D4FF;
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.filter-chip.active {
  background: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);
  color: white;
  border-color: #00D4FF;
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.4);
}

.filter-chip .count {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.125rem 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.filter-chip.active .count {
  background: rgba(255, 255, 255, 0.25);
}

.clear-filters {
  background: transparent;
  border: none;
  color: #00D4FF;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.625rem 1.25rem;
  transition: all 0.2s;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
}

.clear-filters:hover:not(:disabled) {
  background: rgba(0, 212, 255, 0.1);
  text-decoration: underline;
}

.clear-filters:disabled {
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
}

/* Calendar Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.day-card {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  backdrop-filter: blur(10px);
}

.day-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 212, 255, 0.3);
  border-color: #00D4FF;
}

/* STILE SPECIALE PER TOOL AFFILIATO */
.day-card--affiliate {
  background: linear-gradient(135deg, #7B2CBF 0%, #5A189A 100%);
  border: 3px solid #FFD700;
  box-shadow: 0 12px 40px rgba(123, 44, 191, 0.5);
  transform: scale(1.05);
}

.day-card--affiliate:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 16px 48px rgba(123, 44, 191, 0.6);
}

.affiliate-badge {
  position: absolute;
  top: -14px;
  right: 1.5rem;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #1a1a1a;
  padding: 0.5rem 1.25rem;
  border-radius: 24px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.day-number {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #00D4FF;
  font-family: 'Orbitron', sans-serif;
}

.day-card--affiliate .day-number {
  color: #FFD700;
}

.tool-preview h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
  font-weight: 600;
}

.tool-description {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

.day-card--affiliate .tool-description {
  color: rgba(255, 255, 255, 0.9);
}

.tool-category {
  display: inline-block;
  background: rgba(0, 212, 255, 0.2);
  color: #00D4FF;
  padding: 0.375rem 1rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: 0.75rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
  font-family: 'Inter', sans-serif;
}

.day-card--affiliate .tool-category {
  background: rgba(255, 215, 0, 0.2);
  color: #FFD700;
  border-color: rgba(255, 215, 0, 0.4);
}

.affiliate-tag {
  display: inline-block;
  background: rgba(255, 215, 0, 0.3);
  color: #FFD700;
  padding: 0.375rem 1rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-left: 0.5rem;
  border: 1px solid rgba(255, 215, 0, 0.4);
  font-family: 'Inter', sans-serif;
}

/* Messaggio nessun risultato */
.no-results {
  text-align: center;
  padding: 5rem 2rem;
  color: rgba(255, 255, 255, 0.6);
}

.no-results-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  opacity: 0.3;
}

.no-results h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Orbitron', sans-serif;
}

.no-results p {
  font-size: 1.125rem;
  font-family: 'Inter', sans-serif;
}

/* MODAL STYLES */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 24px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 24px 64px rgba(0, 212, 255, 0.3);
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-100px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal--affiliate {
  background: linear-gradient(135deg, #7B2CBF 0%, #5A189A 100%);
  border-color: #FFD700;
  box-shadow: 0 24px 64px rgba(123, 44, 191, 0.5);
}

.modal-header {
  padding: 2.5rem;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  position: relative;
}

.modal--affiliate .modal-header {
  border-bottom-color: rgba(255, 215, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: rotate(90deg);
}

.modal-day {
  font-size: 1rem;
  color: #00D4FF;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-family: 'Inter', sans-serif;
}

.modal--affiliate .modal-day {
  color: #FFD700;
}

.modal-title {
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
  font-family: 'Orbitron', sans-serif;
  color: white;
}

.modal-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.modal-body {
  padding: 2.5rem;
}

.modal-section {
  margin-bottom: 2.5rem;
}

.modal-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: #00D4FF;
  font-family: 'Orbitron', sans-serif;
}

.modal--affiliate .modal-section h3 {
  color: #FFD700;
}

.modal-section p {
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.0625rem;
  font-family: 'Inter', sans-serif;
}

.features-list {
  list-style: none;
  margin-top: 1.25rem;
}

.features-list li {
  padding: 1rem 0;
  padding-left: 2.5rem;
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
}

.features-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #00D4FF;
  font-weight: bold;
  font-size: 1.5rem;
}

.modal--affiliate .features-list li:before {
  color: #FFD700;
}

.modal-cta {
  display: flex;
  gap: 1.25rem;
  margin-top: 2.5rem;
  justify-content: center;
}

.btn {
  padding: 1.25rem 2.5rem;
  border: none;
  border-radius: 12px;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Space Grotesk', sans-serif;
  min-width: 250px;
}

.btn-primary {
  background: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 212, 255, 0.6);
}

.modal--affiliate .btn-primary {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #1a1a1a;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.modal--affiliate .btn-primary:hover {
  box-shadow: 0 8px 28px rgba(255, 215, 0, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(0, 212, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #00D4FF;
}

.modal--affiliate .btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 215, 0, 0.4);
}

.modal--affiliate .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #FFD700;
}

.pricing-box {
  background: rgba(0, 212, 255, 0.1);
  border: 2px solid rgba(0, 212, 255, 0.3);
  padding: 2rem;
  border-radius: 16px;
  margin-top: 1.25rem;
}

.modal--affiliate .pricing-box {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.4);
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: #00D4FF;
  font-family: 'Orbitron', sans-serif;
}

.modal--affiliate .price {
  color: #FFD700;
}

.price-period {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Inter', sans-serif;
}

/* Footer */
.calendar-footer {
  background: rgba(26, 26, 26, 0.95);
  border-top: 1px solid rgba(0, 212, 255, 0.2);
  padding: 2rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-container p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: #00D4FF;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

/* Scrollbar personalizzata */
.modal::-webkit-scrollbar {
  width: 10px;
}

.modal::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

.modal::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.5);
  border-radius: 10px;
}

.modal::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 255, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }

  .logo-text {
    display: none;
  }

  .tools-calendar {
    padding: 1rem;
  }

  .calendar-header {
    padding: 2rem 1.5rem;
  }

  .calendar-header h1 {
    font-size: 2rem;
  }

  .calendar-subtitle {
    font-size: 1rem;
  }

  .calendar-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .modal {
    margin: 1rem;
    border-radius: 16px;
  }

  .modal-header,
  .modal-body {
    padding: 1.5rem;
  }

  .modal-title {
    font-size: 1.75rem;
  }

  .modal-cta {
    flex-direction: column;
  }

  .filters-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    min-width: 100%;
  }

  .filters-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .month-nav {
    width: 100%;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .day-card--affiliate {
    transform: scale(1);
  }

  .day-card--affiliate:hover {
    transform: translateY(-8px) scale(1);
  }
}
