/* Modern CSS for WorkDayTracker GitHub Pages */

:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #ff9a9e;
  --light-bg: #f8f9ff;
  --dark-text: #333;
  --light-text: #fff;
  --border-radius: 15px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  background-attachment: fixed;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  padding: 40px 20px;
  color: var(--light-text);
}

.app-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  background: white;
  padding: 10px;
}

h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tagline {
  font-size: 1.5rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.badges {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

.content {
  background: var(--light-text);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 40px;
  margin-bottom: 40px;
}

h2 {
  color: var(--primary-color);
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.feature-card {
  background: var(--light-bg);
  padding: 25px;
  border-radius: var(--border-radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.feature-card h3::before {
  content: "✓";
  margin-right: 10px;
  color: var(--primary-color);
  font-weight: bold;
}

.screenshots {
  margin: 40px 0;
}

.carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 50px;
}

.carousel {
  display: flex;
  width: 100%;
  height: 500px;
  overflow: hidden;
  position: relative;
  align-items: center;
  justify-content: center;
}

.screenshot {
  flex: 0 0 auto;
  width: 750px;
  height: 500px;
  transition: transform 0.3s ease;
  object-fit: contain;
  object-position: center;
  position: absolute;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.3s ease;
}

.screenshot.active {
  opacity: 1;
  position: relative;
  z-index: 1;
}

.screenshot.prev {
  opacity: 0.5;
  transform: translateX(-50px) scale(0.9);
  z-index: 0;
}

.screenshot.next {
  opacity: 0.5;
  transform: translateX(50px) scale(0.9);
  z-index: 0;
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  position: absolute;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: white;
  transform: scale(1.1);
}

.prev-btn {
  left: 0;
  margin-left: 10px;
}

.next-btn {
  right: 0;
  margin-right: 10px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s ease;
}

.indicator.active {
  background: var(--primary-color);
}

.links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--light-text);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-coffee {
  background: linear-gradient(135deg, var(--accent-color) 0%, #fad0c4 100%);
  color: var(--dark-text);
}

.download-note {
  text-align: center;
  margin-top: 20px;
}

.download-note h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.download-note ol {
  text-align: left;
  max-width: 600px;
  margin: 0 auto 20px;
  padding-left: 20px;
}

.download-note li {
  margin-bottom: 10px;
  text-align: left;
}

.download-note p {
  color: #666;
  margin: 0;
}

footer {
  text-align: center;
  padding: 30px;
  color: var(--light-text);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  h1 {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1.2rem;
  }

  .content {
    padding: 20px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .screenshot {
    width: 220px;
    height: 400px;
  }

  .carousel {
    height: 400px;
  }

  .links {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 80%;
    text-align: center;
  }

  .carousel-container {
    padding: 0 20px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}