/* General Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #000000 0%, #111111 100%);
  background-attachment: fixed;
  color: #ffffff;
  line-height: 1.6;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 20%, rgba(46, 164, 97, 0.1) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(46, 164, 97, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Header */
header {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #2ea461 0%, #248a52 100%);
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  z-index: 1;
}

header > * {
  position: relative;
  z-index: 2;
}

header h1 {
  margin: 0 0 0.5rem 0;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin-top: 0.5rem;
  font-weight: 400;
  opacity: 0.95;
  letter-spacing: 0.02em;
}

/* Navigation Bar */
.fun-nav {
  text-align: center;
  margin: 2rem 0;
  padding: 1rem;
}

/* Fun Posts Container */
#posts-container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 2rem;
}

.post {
  background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
  border-radius: 16px;
  margin-bottom: 2rem;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(46, 164, 97, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.post::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(46, 164, 97, 0.02), transparent);
  pointer-events: none;
}

.post:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(46, 164, 97, 0.2);
  border-color: rgba(46, 164, 97, 0.3);
}

.post h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.post p {
  margin: 0.8rem 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e0e0e0;
}

.post .date {
  font-size: 0.95rem;
  color: #2ea461;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post .excerpt {
  font-size: 1rem;
  line-height: 1.7;
  color: #cccccc;
  margin: 1rem 0;
}

.post a {
  color: #2ea461;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.post a:hover {
  color: #37FF8B;
  border-bottom-color: #37FF8B;
}

.post .read-more {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, #2ea461 0%, #248a52 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.post .read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 164, 97, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #37FF8B 0%, #2ea461 100%);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
  background: linear-gradient(135deg, #000000 0%, #111111 100%);
  border-top: 1px solid rgba(46, 164, 97, 0.3);
}

footer p {
  margin: 0.5rem 0;
  color: #999999;
  font-size: 0.9rem;
}

/* Navigation Buttons */
.nav-button {
  display: inline-block;
  padding: 1rem 2rem;
  margin: 0.5rem;
  background: linear-gradient(135deg, #2ea461 0%, #248a52 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  box-shadow: 0 4px 16px rgba(46, 164, 97, 0.3);
}

.nav-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.nav-button:hover::before {
  left: 100%;
}

.nav-button:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 32px rgba(46, 164, 97, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #37FF8B 0%, #2ea461 100%);
}

.nav-button:active {
  transform: translateY(-2px) scale(1.02);
  transition: all 0.1s ease;
}

/* Loading State */
.loading {
  text-align: center;
  padding: 3rem;
  font-size: 1.2rem;
  color: #999999;
  font-style: italic;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  #posts-container {
    padding: 1rem;
  }
  
  .post {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .post h2 {
    font-size: 1.5rem;
  }
  
  .nav-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    margin: 0.3rem;
  }
  
  header {
    padding: 2rem 1rem;
  }
}

/* Hovering Left Navigation Tab */
.nav-tab {
  position: fixed;
  top: 50%;
  left: -250px;
  transform: translateY(-50%);
  width: 280px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border: 1px solid rgba(46, 164, 97, 0.3);
  border-left: none;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.nav-tab:hover {
  left: 0;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
  border-color: rgba(46, 164, 97, 0.5);
}

.nav-tab-trigger {
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 80px;
  background: linear-gradient(135deg, #2ea461 0%, #248a52 100%);
  border: 1px solid rgba(46, 164, 97, 0.3);
  border-left: none;
  border-radius: 0 8px 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-tab:hover .nav-tab-trigger {
  background: linear-gradient(135deg, #37FF8B 0%, #2ea461 100%);
  border-color: rgba(46, 164, 97, 0.7);
}

.nav-tab-trigger::before {
  content: '▶';
  color: white;
  font-size: 0.8rem;
  transform: rotate(90deg);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-tab-content {
  padding: 1.5rem;
  color: white;
}

.nav-tab-header {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(46, 164, 97, 0.3);
}

.nav-tab-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2ea461;
  margin: 0;
  letter-spacing: 0.02em;
}

.nav-tab-location {
  font-size: 0.9rem;
  color: #cccccc;
  margin: 0.3rem 0 0 0;
  font-style: italic;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(46, 164, 97, 0.1), transparent);
  transition: left 0.3s ease;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  background: rgba(46, 164, 97, 0.15);
  border-color: rgba(46, 164, 97, 0.3);
  transform: translateX(5px);
}

.nav-link.active {
  background: linear-gradient(135deg, #2ea461 0%, #248a52 100%);
  border-color: rgba(46, 164, 97, 0.5);
  box-shadow: 0 2px 8px rgba(46, 164, 97, 0.3);
}

.nav-link.active:hover {
  background: linear-gradient(135deg, #37FF8B 0%, #2ea461 100%);
  transform: translateX(3px);
}

.nav-link-icon {
  margin-right: 0.8rem;
  font-size: 1rem;
  opacity: 0.8;
}

.nav-link-text {
  flex: 1;
}

.nav-link-arrow {
  font-size: 0.7rem;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.nav-link:hover .nav-link-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* Responsive adjustments for nav-tab */
@media screen and (max-width: 768px) {
  .nav-tab {
    left: -240px;
    width: 260px;
  }
  
  .nav-tab-trigger {
    right: -25px;
    width: 25px;
    height: 70px;
  }
  
  .nav-tab-content {
    padding: 1rem;
  }
  
  .nav-link {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
}