body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f7f7f7;
  color: #222;
  text-align: center;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

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

/* Navigation */
.nav {
  margin: 20px 0 40px 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav a {
  color: #ff6600;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 5px;
  border: 2px solid #ff6600;
  transition: all 0.3s ease;
}

.nav a:hover,
.nav a.active {
  background-color: #ff6600;
  color: white;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  h1 {
    font-size: 2em;
  }

  .nav {
    gap: 10px;
  }

  .nav a {
    padding: 8px 12px;
    font-size: 0.9em;
  }

  button {
    padding: 12px 20px;
    font-size: 1em;
  }
}

.logo {
  width: 100px;
  margin-bottom: 10px;
}

h1 {
  font-size: 2.5em;
  margin-bottom: 0;
}

.tagline {
  font-style: italic;
  color: #ff6600;
  margin-bottom: 30px;
}

.timer h2 {
  font-size: 2em;
  margin: 10px 0;
}

button {
  background-color: #ff6600;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.2em;
  cursor: pointer;
  border-radius: 6px;
  margin-top: 10px;
}

button:hover {
  background-color: #e05500;
}

.affirmation {
  margin-top: 30px;
  font-style: italic;
  color: #555;
}

.score {
  margin-top: 40px;
  font-weight: bold;
}

.title-display {
  font-size: 0.9em;
  color: #ff6600;
  margin-top: 10px;
  font-weight: normal;
}

/* Achievement notification styles */
.achievement-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

/* Tier badge styles */
.tier-badge {
  font-size: 2em;
  margin: 10px 0;
}

.tier-badge-large {
  font-size: 4em;
  margin: 20px 0;
}

/* SlackLog page styles */
.slacklog-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.current-tier {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
}

.tier-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.tier-info h3 {
  margin: 0;
  color: #333;
}

.tier-progression {
  margin: 30px 0;
}

.tiers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tier-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.tier-emoji {
  font-size: 1.5em;
  width: 40px;
  text-align: center;
}

.tier-name {
  flex: 1;
  font-weight: bold;
}

.tier-requirement {
  color: #666;
  font-size: 0.9em;
}

.recent-affirmations {
  margin: 30px 0;
}

.affirmation-history-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 15px;
  margin: 10px 0;
}

.affirmation-history-item p {
  margin: 0 0 5px 0;
  font-style: italic;
}

.affirmation-history-item small {
  color: #666;
}

.no-affirmations {
  text-align: center;
  color: #666;
  font-style: italic;
}

/* Button improvements */
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Achievement popup styles */
.achievement-popup {
  background: linear-gradient(135deg, #ff6600, #e05500);
  color: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.4);
  text-align: center;
  font-size: 1.1em;
  animation: slideDown 0.5s ease-out;
  max-width: 350px;
}

.achievement-popup .trophy {
  font-size: 1.3em;
  margin: 10px 0;
}

.achievement-popup .unlocks {
  font-size: 0.9em;
  margin-top: 10px;
  opacity: 0.9;
  font-style: italic;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page-specific styles */
.affirmation-display,
.excuse-display {
  margin: 40px 0;
  padding: 30px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.affirmation-display h2,
.excuse-display h2 {
  font-size: 1.5em;
  margin-bottom: 20px;
  color: #333;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.affirmation-counter,
.excuse-categories {
  margin: 20px 0;
}

.excuse-categories select {
  padding: 8px;
  margin-left: 10px;
  border: 2px solid #ff6600;
  border-radius: 5px;
  background-color: white;
}

#copyExcuseBtn {
  background-color: #28a745;
  margin-left: 10px;
}

#copyExcuseBtn:hover {
  background-color: #218838;
}

/* Tier system styles */
.current-status {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tier-list {
  display: grid;
  gap: 20px;
}

.tier {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-left: 5px solid #ddd;
}

.tier.unlocked {
  border-left-color: #28a745;
}

.tier.current {
  border-left-color: #ff6600;
  background-color: #fff5f0;
}

.tier.locked {
  opacity: 0.6;
  border-left-color: #ccc;
}

.tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.tier-header h3 {
  margin: 0;
  color: #ff6600;
}

.tier-minutes {
  font-size: 0.9em;
  color: #666;
}

.tier-description {
  color: #333;
  margin: 10px 0;
}

.tier-trophy {
  font-size: 1.2em;
  margin: 10px 0;
}

.tier-unlocks {
  font-style: italic;
  color: #666;
  font-size: 0.9em;
}

.tier-progress {
  margin-top: 10px;
  color: #ff6600;
  font-weight: bold;
}

/* Widget styles */
.excuse-widget {
  background-color: #fff;
  padding: 25px;
  margin: 40px 0;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-left: 5px solid #ff6600;
}

.excuse-widget h3 {
  color: #ff6600;
  margin-bottom: 15px;
}

.excuse-widget p {
  font-style: italic;
  margin-bottom: 15px;
  min-height: 40px;
}

.slack-streak {
  font-size: 0.9em;
  color: #28a745;
  margin-top: 5px;
  font-weight: normal;
}

/* Email signup */
.email-signup {
  background: linear-gradient(135deg, #ff6600, #e05500);
  color: white;
  padding: 30px;
  margin: 40px 0;
  border-radius: 15px;
  text-align: center;
}

.email-signup h3 {
  margin-bottom: 10px;
}

.email-signup p {
  margin-bottom: 20px;
  opacity: 0.9;
}

.email-signup form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.email-signup input {
  padding: 12px 15px;
  border: none;
  border-radius: 5px;
  flex: 1;
  max-width: 300px;
  font-size: 1em;
}

.email-signup button {
  background-color: white;
  color: #ff6600;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.email-signup button:hover {
  background-color: #f0f0f0;
}

#shareExcuseBtn {
  background-color: #28a745;
  font-size: 0.9em;
  padding: 8px 15px;
}

#shareExcuseBtn:hover {
  background-color: #218838;
}

/* Enhanced email signup styles */
.signup-success {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  margin-top: 15px;
}

.signup-success ul {
  margin: 15px 0;
  padding-left: 20px;
}

.signup-success li {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.9);
}

.email-signup button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Logo animation */
.logo {
  animation: slowFloat 6s ease-in-out infinite;
}

@keyframes slowFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Contact form styles */
.contact-form {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff6600;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-submit-btn {
  background: linear-gradient(135deg, #ff6600, #e05500);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.contact-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
}

.contact-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.contact-info ul {
  list-style: none;
  padding: 0;
}

.contact-info li {
  margin-bottom: 10px;
  padding: 10px;
  background: rgba(255, 102, 0, 0.1);
  border-radius: 5px;
}

#contactConfirmation {
  margin-top: 20px;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
}

#contactConfirmation.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#contactConfirmation.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Footer contact button */
.footer-contact {
  margin-bottom: 15px;
}

.contact-btn {
  background: linear-gradient(135deg, #ff6600, #e05500);
  color: white !important;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: all 0.3s;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
  text-decoration: none;
}

/* Merch page styles */
.merch-intro {
  background-color: #fff;
  padding: 30px;
  margin: 30px 0;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-left: 5px solid #ff6600;
}

.merch-intro h2 {
  color: #ff6600;
  margin-bottom: 15px;
}

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

.product-card {
  background-color: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-color: #ff6600;
}

.product-image {
  font-size: 4em;
  margin-bottom: 15px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card h3 {
  color: #ff6600;
  margin-bottom: 10px;
  font-size: 1.3em;
}

.product-description {
  color: #666;
  font-size: 0.9em;
  line-height: 1.4;
  margin-bottom: 15px;
  min-height: 60px;
}

.product-price {
  font-size: 1.4em;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}

.buy-btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 1em;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  width: 100%;
}

.buy-btn:hover {
  background-color: #218838;
}

.merch-notice {
  background: linear-gradient(135deg, #ff6600, #e05500);
  color: white;
  padding: 30px;
  margin: 40px 0;
  border-radius: 15px;
  text-align: center;
}

.merch-notice h3 {
  margin-bottom: 15px;
}

.merch-notice p {
  margin-bottom: 10px;
  opacity: 0.95;
}

.merch-notice small {
  opacity: 0.8;
  font-style: italic;
}

/* Mobile responsiveness for merch grid */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-card {
    padding: 20px;
  }

  .product-image {
    font-size: 3em;
    height: 60px;
  }
}

/* Improved spacing */
.container > * {
  margin: 25px 0;
}

.timer, .affirmation, .score {
  margin: 35px 0;
}

/* Ad placeholders */
.ad-placeholder {
  background: #f0f0f0;
  border: 2px dashed #ccc;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
  color: #666;
  font-style: italic;
}

.secondary-ad {
  background: linear-gradient(45deg, #f0f0f0, #e8e8e8);
  border-color: #bbb;
  font-size: 0.9em;
}

/* Blog content styles */
.blog-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 1.1em;
}

.blog-content h2 {
  color: #ff6600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.4em;
}

.blog-content h3 {
  color: #333;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.blog-content p {
  margin-bottom: 1.2rem;
}

.blog-content ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
}

.blog-intro {
  font-style: italic;
  color: #666;
  border-left: 4px solid #ff6600;
  padding-left: 1rem;
  margin: 1.5rem 0;
}

.blog-grid {
  display: grid;
  gap: 2rem;
  max-width: 900px;
  margin: 2rem auto;
}

.blog-card {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #ff6600;
  transition: transform 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.blog-card.featured {
  background: linear-gradient(135deg, #ff6600, #ff8533);
  color: white;
  border-left: none;
}

.blog-card h2, .blog-card h3 {
  margin: 0 0 0.5rem 0;
}

.blog-card h2 a, .blog-card h3 a {
  color: #333;
  text-decoration: none;
}

.blog-card.featured h2 a {
  color: white;
  font-size: 1.5rem;
}

.blog-card h2 a:hover, .blog-card h3 a:hover {
  color: #ff6600;
}

.blog-card.featured h2 a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.blog-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.blog-card.featured .blog-meta {
  color: rgba(255, 255, 255, 0.9);
}

.excerpt {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.read-more {
  color: #ff6600;
  text-decoration: none;
  font-weight: 500;
}

.blog-card.featured .read-more {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  display: inline-block;
}

.read-more:hover {
  text-decoration: underline;
}

.subtitle {
  text-align: center;
  color: #666;
  font-style: italic;
  margin-bottom: 2rem;
  font-size: 1.1em;
}

/* Footer styles */
.footer-contact {
  text-align: center;
  margin: 2rem 0 1rem 0;
}

.contact-btn {
  background: #ff6600;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
  transition: background 0.3s ease;
}

.contact-btn:hover {
  background: #e55a00;
}

.footer {
  margin-top: 30px;
  text-align: center;
  font-size: 0.9em;
  color: #666;
}

.copyright {
  margin-top: 5px;
  font-size: 0.7em;
  color: #666;
}

/* Mobile responsiveness for new elements */
@media (max-width: 768px) {
  .tier-display {
    flex-direction: column;
    text-align: center;
  }

  .tier-item {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }

  .tier-badge-large {
    font-size: 3em;
  }

  .blog-content {
    padding: 15px;
  }

  .blog-content ul {
    padding-left: 20px;
  }
}