/* style/tintc.css */

/* Body background is dark from shared.css, so use light text */
.page-tintc {
  color: var(--text-main);
  background-color: var(--bg-color); /* #08160F */
}

.page-tintc__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-tintc__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Hero Section */
.page-tintc__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--bg-color);
}

.page-tintc__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
}

.page-tintc__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-tintc__hero-content {
  text-align: center;
  max-width: 800px;
  color: var(--text-main);
}

.page-tintc__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow */
}

.page-tintc__hero-description {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.page-tintc__cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.page-tintc__btn-primary,
.page-tintc__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-tintc__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

.page-tintc__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-tintc__btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border-color); /* #2E7A4E */
}

.page-tintc__btn-secondary:hover {
  background-color: rgba(46, 122, 78, 0.2); /* #2E7A4E with transparency */
  transform: translateY(-2px);
}

/* Section Titles and Descriptions */
.page-tintc__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main);
  text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-tintc__section-description {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-secondary);
}

/* News Grid */
.page-tintc__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Card Styling */
.page-tintc__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
}

.page-tintc__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-tintc__card-image-wrapper {
  width: 100%;
  height: 200px; /* Fixed height for consistent card appearance */
  overflow: hidden;
}

.page-tintc__card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-tintc__card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-tintc__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-tintc__card-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tintc__card-title a:hover {
  color: var(--glow); /* #57E38D */
}

.page-tintc__card-date {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.page-tintc__card-text {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-tintc__card-link {
  display: inline-block;
  color: var(--glow); /* #57E38D */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-tintc__card-link:hover {
  text-decoration: underline;
}

.page-tintc__view-all-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* Promotions Analysis Section */
.page-tintc__promotions-analysis-section {
  background-color: var(--deep-green); /* #0A4B2C */
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-tintc__promotions-analysis-section .page-tintc__section-title,
.page-tintc__promotions-analysis-section .page-tintc__section-description {
  color: var(--text-main);
}

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

.page-tintc__feature-item {
  text-align: center;
  padding: 30px;
}

.page-tintc__feature-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--gold); /* #F2C14E */
}

.page-tintc__feature-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Game Guides Section */
.page-tintc__game-guides-section .page-tintc__container {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-tintc__guide-content {
  margin-top: 40px;
  line-height: 1.7;
}

.page-tintc__guide-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-tintc__guide-text {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.page-tintc__guide-list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.page-tintc__guide-list li {
  margin-bottom: 10px;
  line-height: 1.5;
}

.page-tintc__guide-list li strong {
  color: var(--text-main);
}

/* Events Section */
.page-tintc__event-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-tintc__event-card {
  padding: 25px;
  text-align: center;
}

.page-tintc__event-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-tintc__event-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tintc__event-title a:hover {
  color: var(--glow); /* #57E38D */
}

.page-tintc__event-date {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.page-tintc__event-text {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* FAQ Section */
.page-tintc__faq-list {
  margin-top: 40px;
}

.page-tintc__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-tintc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--divider); /* #1E3A2A */
}

.page-tintc__faq-question:hover {
  background-color: rgba(46, 122, 78, 0.1); /* #2E7A4E with transparency */
}

.page-tintc__faq-item[open] .page-tintc__faq-question {
  border-bottom: 1px solid var(--divider);
}

.page-tintc__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow);
}

.page-tintc__faq-item[open] .page-tintc__faq-toggle {
  content: '−';
}

.page-tintc__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  /* For <details> native behavior, max-height is not needed here */
}

.page-tintc__faq-answer p {
  margin-top: 15px;
}

/* Floating Buttons */
.page-tintc__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.page-tintc__floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 50px; /* Pill shape */
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  white-space: nowrap;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-tintc__floating-btn--register {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-tintc__floating-btn--login {
  background: var(--gold); /* #F2C14E */
}

.page-tintc__floating-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-tintc__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-tintc__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-tintc__hero-description {
    font-size: 1rem;
  }

  .page-tintc__cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-tintc__btn-primary,
  .page-tintc__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

  .page-tintc__section {
    padding: 40px 15px;
  }

  .page-tintc__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }

  .page-tintc__section-description {
    font-size: 0.95rem;
  }

  .page-tintc__news-grid,
  .page-tintc__promo-features,
  .page-tintc__event-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-tintc__card-image-wrapper {
    height: 180px;
  }

  .page-tintc__card-title {
    font-size: 1.2rem;
  }

  .page-tintc__feature-title {
    font-size: 1.4rem;
  }

  .page-tintc__guide-subtitle {
    font-size: 1.6rem;
  }

  .page-tintc__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-tintc__faq-answer {
    padding: 0 20px 15px 20px;
  }

  /* Mobile image responsiveness */
  .page-tintc img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure images take full width of their container */
    height: auto !important;
    display: block !important;
  }

  .page-tintc__hero-image-wrapper,
  .page-tintc__news-card .page-tintc__card-image-wrapper,
  .page-tintc__event-card .page-tintc__card-image-wrapper,
  .page-tintc__container,
  .page-tintc__section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Floating buttons for mobile */
  .page-tintc__floating-buttons {
    flex-direction: row;
    width: 100%;
    left: 0;
    right: 0;
    bottom: 0;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    background-color: rgba(8, 22, 15, 0.9); /* Semi-transparent dark background */
    padding: 10px 15px;
    justify-content: space-around;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
  }

  .page-tintc__floating-btn {
    flex: 1;
    margin: 0 5px;
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .page-tintc__floating-buttons {
    gap: 5px;
    padding: 8px 10px;
  }

  .page-tintc__floating-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}