/* Main Styles for Takaboss Landing Page */

/* Footer Styles */
footer {
  background: #111;
  padding: 1rem;
  font-size: 0.8rem;
  color: #aaa;
  text-align: center;
}

.language-switcher {
  margin-bottom: 1rem;
}

.language-switcher a {
  color: #1d8f54;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid #1d8f54;
  border-radius: 4px;
}

.language-switcher a:hover {
  background: #1d8f54;
  color: #fff;
}

.social {
  margin: 0.5rem 0;
}

.social a {
  margin: 0 0.5rem;
  color: #aaa;
  text-decoration: none;
}

.social a:hover {
  color: #fff;
}

.footer-badges {
  width: 100%;
  max-width: 360px;
  margin: 1rem auto;
}

.footer-badges img {
  width: 100%;
  height: auto;
}

.footer-description {
  max-width: 680px;
  margin: 1rem auto;
  font-size: 0.8rem;
  color: #aaa;
  line-height: 1.5;
}

/* Age Note */
.age-note {
  font-size: 0.7rem;
  color: #999;
  margin-top: 1rem;
}

/* Additional Intro Section */
#additionalIntro {
  padding: 2rem 1rem;
  background: #333333;
}

.additionalIntroContent {
  max-width: 1100px;
  margin: 0 auto;
}

#additionalIntro h2 {
  font-size: 1.6rem;
  margin: 1rem 0 0.5rem;
}

#additionalIntro p {
  font-size: 1rem;
  color: #ddd;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

#additionalIntro a {
  color: #6580f9;
  text-decoration: underline;
}

/* Gallery */
.gallery {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}

.gallery picture {
  flex: 1;
}

.gallery span {
  font-size: 0.75rem;
  color: #ddd;
  display: block;
  margin-top: 0.5rem;
}

/* Navbar Menu Styles */
.navbar-menu li {
  position: relative;
}

.navbar-menu a.active {
  color: #1d8f54;
}

.navbar-menu a:hover {
  color: #1d8f54;
}

/* Blog Styles */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.blog-header {
  text-align: center;
  margin-bottom: 2rem;
}

.blog-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.blog-header p {
  color: #aaa;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: #222;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-content {
  padding: 1rem;
}

.blog-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.blog-card h2 a {
  color: #fff;
  text-decoration: none;
}

.blog-card h2 a:hover {
  color: #1d8f54;
}

.blog-card p {
  color: #aaa;
  font-size: 0.9rem;
  line-height: 1.5;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  color: #666;
  font-size: 0.8rem;
  margin-top: 1rem;
}

/* Blog Post Styles */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.blog-post-header {
  margin-bottom: 2rem;
}

.blog-post-header h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.blog-post-meta {
  color: #aaa;
  font-size: 0.9rem;
}

.blog-post-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.blog-post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ddd;
}

.blog-post-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: #fff;
}

.blog-post-content h3 {
  font-size: 1.3rem;
  margin: 1.5rem 0 0.75rem;
  color: #fff;
}

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

.blog-post-content a {
  color: #1d8f54;
}

.blog-post-content ul,
.blog-post-content ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

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

.blog-post-content blockquote {
  border-left: 4px solid #1d8f54;
  padding-left: 1rem;
  margin: 1rem 0;
  color: #aaa;
  font-style: italic;
}

.blog-post-content code {
  background: #333;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
}

.blog-post-content pre {
  background: #222;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1rem 0;
}

.blog-post-content pre code {
  background: transparent;
  padding: 0;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tag {
  background: #333;
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  text-decoration: none;
}

.tag:hover {
  background: #1d8f54;
}

/* Language Switcher in Blog */
.blog-language-switcher {
  margin-bottom: 1rem;
  text-align: right;
}

.blog-language-switcher a {
  color: #1d8f54;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Related Posts */
.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #333;
}

.related-posts h3 {
  margin-bottom: 1rem;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

/* Game Providers */
.game-providers {
  background-color: #1c1c1c;
  padding: 2rem;
  border-radius: 12px;
  margin-top: 2rem;
}

.game-providers h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #fff;
}

.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
  align-items: center;
}

.provider-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.providers-grid img {
  max-width: 100%;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  padding: 0.5rem;
  box-sizing: border-box;
  width: 100%;
}

.provider-item span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* Content Page Styles */
.content-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: #0c0c0c;
  min-height: 60vh;
  text-align: left;
}

.content-page h1 {
  color: #ffffff;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 900;
}

.content-page h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
  color: #ffffff;
  font-weight: 700;
  border-left: 4px solid #1d8f54;
  padding-left: 1rem;
}

.content-page h3 {
  font-size: 1.3rem;
  margin: 2rem 0 1rem;
  color: #fff;
  font-weight: 600;
}

.content-page p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  color: #ddd;
}

.content-page ul,
.content-page ol {
  margin: 1rem 0 1.5rem 0;
  padding-left: 1.5rem;
  line-height: 1.8;
}

.content-page ul {
  list-style: none;
}

.content-page ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  color: #ddd;
}

.content-page ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: #1d8f54;
  border-radius: 50%;
}

.content-page ol {
  list-style: none;
  counter-reset: item;
}

.content-page ol li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  color: #ddd;
  counter-increment: item;
}

.content-page ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: #1d8f54;
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-page a {
  color: #1d8f54;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.content-page a:hover {
  color: #15a049;
  text-decoration: underline;
}

.content-page strong {
  color: #fff;
  font-weight: 700;
}

.content-section {
  margin-bottom: 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(29, 143, 84, 0.2);
}

.content-section:hover {
  border-color: rgba(29, 143, 84, 0.4);
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

/* Content Page Tables */
.content-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 1rem;
}

.content-page table td {
  padding: 0.875rem 1rem;
  border: 1px solid #333;
  vertical-align: top;
}

.content-page table tr:nth-child(odd) {
  background: #1c1c1c;
}

.content-page table tr:nth-child(even) {
  background: transparent;
}

/* Content Page Info Box */
.content-page .info-box {
  background: #1c1c1c;
  border-left: 4px solid #1d8f54;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

.content-page .info-box p {
  margin: 0;
}

/* Content Page CTA Button */
.content-page .cta-wrapper {
  text-align: center;
  margin: 2.5rem 0;
}

.content-page .cta-button {
  display: inline-block;
  background: #1d8f54;
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.content-page .cta-button:hover {
  background: #15a049;
  text-decoration: none;
  transform: translateY(-2px);
}

/* Content Page Screenshots */
.content-page .screenshot {
  display: block;
  margin: 2rem auto;
  max-width: 400px;
  text-align: center;
}

.content-page .screenshot img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.content-page .screenshot-caption {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
  color: #888;
  font-size: 0.9rem;
}

/* Content Page Footer Note */
.content-page .footer-note {
  text-align: center;
  color: #888;
  font-size: 0.9rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #333;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    flex-direction: column;
  }

  .content-page {
    padding: 2rem 1rem;
  }

  .content-page h1 {
    font-size: 1.75rem;
  }

  .content-page h2 {
    font-size: 1.35rem;
  }

  .content-page h3 {
    font-size: 1.15rem;
  }

  .content-page p {
    font-size: 1rem;
  }

  .content-section {
    padding: 1.5rem 1rem;
  }

  .content-page ol li::before {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.75rem;
  }

  .content-page ol li {
    padding-left: 1.75rem;
  }

  .content-page .cta-button {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }

  .content-page table {
    font-size: 0.9rem;
  }

  .content-page table td {
    padding: 0.625rem 0.75rem;
  }
}

/* ========================================
   Events Page Styles
   ======================================== */

/* Events Hero Section */
.events-hero {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #1d2823 0%, #0f1612 100%);
}

.events-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.events-hero .subtitle {
  font-size: 1.1rem;
  color: #aaa;
  max-width: 600px;
  margin: 0 auto;
}

/* Events Section */
.events-section {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Events Filter */
.events-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid #1d8f54;
  color: #1d8f54;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #1d8f54;
  color: #fff;
}

/* Events Grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Event Card */
.event-card {
  background: #222;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(29, 143, 84, 0.2);
}

.event-image {
  position: relative;
  aspect-ratio: 1020 / 690;
  overflow: hidden;
  background: #222;
}

.event-image-blur {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  transform: scale(1.1);
  opacity: 0.6;
}

.event-image img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}

.event-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1d8f54 0%, #145c37 100%);
  font-size: 1.5rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.8);
}

.event-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(29, 143, 84, 0.9);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.event-content {
  padding: 1rem;
}

.event-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.event-excerpt {
  font-size: 0.85rem;
  color: #999;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Event Detail Page */
.event-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.event-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.back-link {
  color: #1d8f54;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #2ab56d;
}

.event-category-badge {
  background: #1d8f54;
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* Two-column layout */
.event-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

.event-detail-main {
  min-width: 0;
}

.event-detail-content {
  background: #222;
  border-radius: 12px;
  padding: 2rem;
}

/* Sidebar */
.event-detail-sidebar {
  background: #222;
  border-radius: 12px;
  padding: 1.5rem;
  position: sticky;
  top: 2rem;
}

.event-detail-sidebar h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #444;
}

.related-events {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-event-card {
  display: flex;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.related-event-card:hover {
  background: #333;
}

.related-event-image {
  width: 80px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #333;
}

.related-event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-event-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1d8f54 0%, #145c37 100%);
  font-size: 0.6rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.8);
}

.related-event-info {
  flex: 1;
  min-width: 0;
}

.related-event-info h4 {
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.no-related {
  color: #888;
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem 0;
}

.view-all-link {
  display: block;
  text-align: center;
  color: #1d8f54;
  text-decoration: none;
  font-size: 0.9rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #444;
  transition: color 0.3s ease;
}

.view-all-link:hover {
  color: #2ab56d;
}

.event-detail-image {
  margin: -2rem -2rem 2rem -2rem;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.event-detail-image img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.event-detail-content h1 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.event-description {
  color: #ddd;
  line-height: 1.7;
  font-size: 1rem;
  text-align: left;
}

.event-description h2 {
  font-size: 1.4rem;
  margin: 1.5rem 0 1rem;
  color: #fff;
  text-align: left;
}

.event-description h3,
.event-description h4 {
  font-size: 1.2rem;
  margin: 1.25rem 0 0.75rem;
  color: #fff;
  text-align: left;
}

.event-description h4 {
  font-size: 1.1rem;
}

.event-description p {
  margin-bottom: 1rem;
  text-align: left;
}

.event-description strong {
  color: #fff;
}

.event-description ul {
  text-align: left;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.event-description li {
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
  text-align: left;
}

.event-description table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
}

.event-description table tr {
  border-bottom: 1px solid #444;
}

.event-description table th,
.event-description table td {
  padding: 0.75rem 1rem;
  color: #ddd;
  text-align: left;
}

.event-description table th {
  font-weight: bold;
  color: #fff;
  background: #1d8f54;
}

.event-description table tr:last-child {
  border-bottom: none;
}

.event-description table tr:nth-child(even) td {
  background: #333;
}

.event-cta {
  margin-top: 2rem;
  text-align: center;
}

.event-cta .cta-button {
  display: inline-block;
  background: #1d8f54;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.3s ease;
}

.event-cta .cta-button:hover {
  background: #2ab56d;
}

/* Events Responsive */
@media (max-width: 968px) {
  .event-detail-layout {
    grid-template-columns: 1fr;
  }

  .event-detail-sidebar {
    position: static;
    order: 2;
  }

  .related-events {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }

  .related-event-card {
    flex-direction: column;
    text-align: center;
  }

  .related-event-image {
    width: 100%;
    height: 100px;
  }
}

@media (max-width: 768px) {
  .events-hero h1 {
    font-size: 2rem;
  }

  .events-hero .subtitle {
    font-size: 1rem;
  }

  .events-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }

  .event-detail-content {
    padding: 1.5rem;
  }

  .event-detail-image {
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
  }

  .event-detail-content h1 {
    font-size: 1.5rem;
  }

  .related-events {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 480px) {
  .events-hero {
    padding: 2rem 1rem;
  }

  .events-hero h1 {
    font-size: 1.6rem;
  }

  .filter-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

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

  .event-content h3 {
    font-size: 1rem;
  }

  .event-detail-content {
    padding: 1rem;
  }

  .event-detail-image {
    margin: -1rem -1rem 1rem -1rem;
  }
}
