/* ==================== RESET & BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  min-height: 100vh;
  color: #1f2937;
  line-height: 1.6;
  padding: 20px;
}

/* ==================== HEADER ==================== */
.site-header {
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
  padding: 40px 20px 20px;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.site-name {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.5px;
}

.site-tagline {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  font-weight: 400;
  margin-top: 8px;
}

/* ==================== NAVIGATION ==================== */
.site-nav {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 12px 20px;
  display: inline-flex;
  gap: 8px;
  margin-top: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .site-nav {
    border-radius: 16px;
    flex-direction: row;
    gap: 6px;
    padding: 10px 15px;
  }
  
  .nav-link {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}


.nav-link {
  color: white;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ==================== CONTAINER ==================== */
input[type="text"]#timeInput {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #f9fafb;
}

input[type="text"]#timeInput:focus {
  outline: none;
  border-color: #6366f1;
  background: white;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

input[type="text"]#timeInput::placeholder {
  color: #9ca3af;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

h1 {
  text-align: center;
  color: white;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* ==================== GENERATOR CARD ==================== */
.generator {
  background: white;
  border-radius: 16px;
  padding: 35px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  margin-bottom: 30px;
  display: grid;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-icon {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

input[type="date"],
input[type="time"],
select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #f9fafb;
}

input[type="date"]:focus,
input[type="time"]:focus,
select:focus {
  outline: none;
  border-color: #6366f1;
  background: white;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234b5563' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 45px;
}

#generateBtn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  margin-top: 10px;
}

#generateBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

#generateBtn:active {
  transform: translateY(0);
}

/* ==================== RESULTS SECTION ==================== */
.results {
  background: white;
  border-radius: 16px;
  padding: 35px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.results h2 {
  color: #1f2937;
  font-size: 1.5rem;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 700;
}

#results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timestamp-block {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.timestamp-block:hover {
  border-color: #6366f1;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.timestamp-block strong {
  display: block;
  color: #6366f1;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  font-weight: 600;
}

.timestamp-content {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.timestamp-block code {
  flex: 1;
  background: white;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  word-break: break-all;
}

.timestamp-block .preview {
  display: block;
  color: #6b7280;
  font-size: 0.875rem;
  font-style: italic;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: white;
  border-radius: 6px;
  border-left: 3px solid #6366f1;
}

.timestamp-block button {
  padding: 10px 24px;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  white-space: nowrap;
}

.timestamp-block button:hover {
  background: #4f46e5;
  transform: translateY(-1px);
}

.timestamp-block button:active {
  transform: translateY(0);
}

.timestamp-block hr {
  display: none;
}

/* ==================== FOOTER ==================== */
.site-footer {
  max-width: 900px;
  margin: 50px auto 0;
  padding: 30px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
}

.site-footer p {
  margin: 8px 0;
  font-size: 0.95rem;
}

.site-footer a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  transition: border-color 0.3s ease;
}

.site-footer a:hover {
  border-bottom-color: white;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  .site-name {
    font-size: 2rem;
  }

  .site-tagline {
    font-size: 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .generator,
  .results {
    padding: 25px;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .timestamp-content {
    flex-direction: column;
    align-items: stretch;
  }

  .timestamp-block button {
    width: 100%;
  }
}

@media (min-width: 769px) {
  .generator {
    grid-template-columns: 1fr 1fr;
  }

  .input-group:last-of-type {
    grid-column: 1 / -1;
  }

  #generateBtn {
    grid-column: 1 / -1;
  }
}
