/* Modern Light Theme for Date Calculator
   Created by Claude - May 10, 2025 */

:root {
  --primary: #4361ee;
  --primary-light: #4895ef;
  --primary-dark: #3a0ca3;
  --secondary: #f72585;
  --text: #2b2d42;
  --text-light: #555b6e;
  --background: #f8f9fa;
  --card-bg: #ffffff;
  --border: #e9ecef;
  --shadow: rgba(149, 157, 165, 0.2);
  --success: #38b000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  padding: 0;
  margin: 0;
}

.wrapper {
  max-width: 800px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
}

h1 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-weight: 700;
}

h2 {
  font-size: 1.3rem;
  color: var(--text-light);
  margin: 1.5rem 0;
  font-weight: 500;
}

.date-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 2rem;
}

.date {
  font-size: 3rem;
  font-weight: bold;
  color: var(--secondary);
  margin: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.date span {
  display: inline-block;
  min-width: 100px;
  text-align: center;
}

.date-picker-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.date-picker-wrapper > div {
  flex: 1;
  min-width: 200px;
}

.date-picker-wrapper p {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input[type="date"] {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

input[type="date"]:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(72, 149, 239, 0.2);
}

input[type="date"]:hover {
  border-color: var(--primary-light);
}

hr {
  margin: 3rem auto;
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
  max-width: 800px;
}

/* Info section styles */
div:not(.wrapper):not(.date-content):not(.date-picker-wrapper) {
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

div:not(.wrapper):not(.date-content):not(.date-picker-wrapper) p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

div:not(.wrapper):not(.date-content):not(.date-picker-wrapper) strong {
  color: var(--primary-dark);
  font-weight: 600;
}

ul, ol {
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .wrapper {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  h1 {
    font-size: 1.7rem;
  }
  
  h2 {
    font-size: 1.1rem;
  }
  
  .date {
    font-size: 2.5rem;
  }
  
  div:not(.wrapper):not(.date-content):not(.date-picker-wrapper) {
    padding: 0 1.5rem;
  }
}

/* Animation for the result number */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.animate-result {
  animation: pulse 1s ease-in-out;
}

/* Additional styles for date result status */
.date.filled span {
  color: var(--success);
  font-weight: 700;
}

/* Button styles for potential future enhancements */
button {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: var(--primary-dark);
}

button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(72, 149, 239, 0.3);
}