/*
 * Dodgeball Champions Tour - Redesign
 * Color scheme inspired by Basketball Champions League
 */

:root {
  /* Primary Colors */
  --primary-navy: #151f38;
  --primary-gold: #d6ca96;
  --primary-teal: #04878e;

  /* Secondary Colors */
  --secondary-dark: #0a1428;
  --secondary-light: #f5f5f5;
  --white: #ffffff;
  --text-primary: #333333;
  --text-light: #666666;

  /* Spacing */
  --nav-height: 80px;
  --container-width: 1200px;

  /* Like Button Colors */
  --like-button-bg: #e8e8e8;
  --like-button-hover: #d0d0d0;
  --like-button-liked: #ff6b6b;
  --like-message-bg: #4caf50;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-primary);
  background-color: var(--white);
  line-height: 1.6;
}

/* Navigation Bar */
.navbar {
  background-color: var(--primary-navy);
  height: var(--nav-height);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar-logo {
  height: 60px;
  cursor: pointer;
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.navbar-menu-item {
  position: relative;
}

.navbar-menu-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s ease;
  padding: 5px 0;
}

.navbar-menu-link:hover {
  color: var(--primary-gold);
}

.navbar-menu-link.active {
  color: var(--primary-gold);
  border-bottom: 2px solid var(--primary-gold);
}

.navbar-login {
  display: none; /* Initially hidden as requested */
}

/* Language Selector Dropdown */
.language-selector {
  position: relative;
  margin-left: auto;
}

.language-current {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
  padding: 0;
}

.language-current:hover {
  background: rgba(214, 202, 150, 0.2);
  border-color: var(--primary-gold);
  transform: scale(1.05);
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--primary-navy);
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: none;
  flex-direction: column;
  gap: 8px;
  min-width: 50px;
  z-index: 1000;
}

.language-dropdown.show {
  display: flex;
}

.language-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  padding: 0;
}

.language-option:hover {
  background: rgba(214, 202, 150, 0.2);
  border-color: var(--primary-gold);
  transform: scale(1.05);
}

.language-option.active {
  background: var(--primary-gold);
  border-color: var(--primary-gold);
}

/* Mobile Menu Toggle */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.navbar-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--white);
  margin: 5px 0;
  transition: 0.3s;
}

/* Main Content */
.main-content {
  min-height: calc(100vh - var(--nav-height) - 400px);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 20px;
}

/* Footer */
.footer {
  background-color: var(--primary-navy);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

.footer-section h3 {
  color: var(--primary-gold);
  margin-bottom: 20px;
  font-size: 18px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-gold);
}

.footer-social {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary-gold);
  color: var(--primary-navy);
  transform: translateY(-3px);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 15px;
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--primary-gold);
}

/* Page Styles */
.page-header {
  background-color: var(--primary-navy);
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
}

.page-header h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-gold);
}

.page-header p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
}

.page-content {
  padding: 60px 20px;
}

.page-content h2 {
  color: var(--primary-navy);
  font-size: 32px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-content h3 {
  color: var(--primary-navy);
  font-size: 24px;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-content p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.page-content ul, .page-content ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.page-content li {
  margin-bottom: 10px;
}

/* Section Titles */
.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 40px;
  text-align: center;
}

/* News Section */
.news-section {
  padding: 80px 0;
  background-color: var(--secondary-light);
}

.news-carousel {
  position: relative;
  overflow: hidden;
  padding: 10px 60px 0px 0px;
}

.news-carousel-container {
  display: flex;
  gap: 30px;
  transition: transform 0.3s ease;
}

.news-card {
  flex: 0 0 calc(33.333% - 20px);
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.news-card.view-all-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-teal);
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: var(--white);
  min-height: 150px;
}

.news-card.view-all-card:hover {
  box-shadow: 0 8px 24px rgba(4, 135, 142, 0.3);
  transform: translateY(-4px);
}

.news-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: var(--primary-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-teal);
  background-color: rgba(4, 135, 142, 0.1);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.news-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: var(--secondary-color);
}


.news-card-description {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-card-date {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

.news-card-excerpt {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.news-card-link {
  display: inline-block;
  color: var(--primary-teal);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-card-link:hover {
  color: var(--primary-navy);
}

/* News Grid Layout (for news.html page) */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  padding: 60px 0;
}

/* Cookie Table Styles */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.cookie-table th {
  padding: 10px;
  border: 1px solid #ddd;
  background-color: var(--primary-navy);
  color: white;
}

.cookie-table td {
  padding: 10px;
  border: 1px solid #ddd;
}

.cookie-table tr:nth-child(even) {
  background-color: #f5f5f5;
}

/* Club Page Utility Styles */
.no-roster-cell {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.no-roster-title {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 700;
}

.stats-legend-text {
  margin: 0 0 10px 0;
}

/* News Article Styles */
.pot-description {
  margin-left: 20px;
}

.additional-info-heading {
  margin-top: 40px;
}

/* News Card Timer Bar - Mobile Only */
.news-card-timer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary-teal);
  width: 0%;
  transition: width 0.1s linear;
  display: none; /* Hidden by default on desktop */
}

@media (max-width: 768px) {
  .news-card-timer {
    display: block;
  }

  .news-card-timer.active {
    animation: timer-progress 5s linear;
  }
}

@keyframes timer-progress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* Carousel Navigation */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-nav:hover {
  background-color: var(--primary-navy);
  color: var(--white);
}

.carousel-nav svg {
  width: 24px;
  height: 24px;
}

.carousel-nav-prev {
  left: 0;
}

.carousel-nav-next {
  right: 0;
}

/* Games Section */
.games-section {
  padding: 80px 0;
  background-color: var(--white);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: var(--container-width);
}

.game-card {
  background: var(--white);
  border: 2px solid var(--secondary-light);
  border-radius: 8px;
  padding: 24px;
  transition: all 0.3s ease;
}

.game-card:hover {
  border-color: var(--primary-teal);
  box-shadow: 0 4px 12px rgba(4, 135, 142, 0.1);
}

.game-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--secondary-light);
}

.game-date {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-teal);
}

.game-venue {
  font-size: 12px;
  color: var(--text-light);
}

.game-card-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.game-team {
  flex: 1;
  text-align: center;
}

.game-team-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-navy);
  display: block;
}

.game-vs {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-gold);
  background-color: var(--primary-navy);
  padding: 8px 12px;
  border-radius: 4px;
}

.game-card.view-all-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-teal);
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: var(--white);
  min-height: 150px;
}

.game-card.view-all-card:hover {
  box-shadow: 0 8px 24px rgba(4, 135, 142, 0.3);
  transform: translateY(-4px);
}

.view-all-content {
  text-align: center;
}

.view-all-icon {
  font-size: 48px;
  margin-bottom: 12px;
  color: var(--primary-gold);
}

.view-all-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

/* News Article Page */
.news-article {
  padding: 40px 0 80px;
  background-color: var(--white);
}

.article-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--secondary-light);
}

.article-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-teal);
  background-color: rgba(4, 135, 142, 0.1);
  padding: 6px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.article-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 20px;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

.article-meta span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background-color: var(--primary-teal);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.article-meta span:first-child::before {
  display: none;
}

.article-image {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 50px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
}

.article-lead {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.article-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.article-content h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary-navy);
  margin-top: 30px;
  margin-bottom: 15px;
}

.article-content h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-navy);
  margin-top: 30px;
  margin-bottom: 30px;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content a {
  color: var(--primary-teal);
  text-decoration: none;
  border-bottom: 1px solid var(--primary-teal);
  transition: color 0.3s ease;
}

.article-content a:hover {
  color: var(--primary-navy);
  border-bottom-color: var(--primary-navy);
}

.article-contact {
  background-color: var(--secondary-light);
  padding: 30px;
  border-radius: 8px;
  margin-top: 50px;
}

.article-contact h3 {
  margin-top: 0;
}

/* Team Profiles */
.team-profile {
  margin-bottom: 40px;
}

.team-header {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.team-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 2px;
}

.team-header-text {
  flex: 1;
}

.team-header-text h3 {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 22px;
  font-weight: 600;
  color: var(--primary-navy);
}

.team-info {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 0;
  font-weight: 500;
}

.article-footer {
  max-width: 800px;
  margin: 50px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--secondary-light);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background-color: var(--primary-navy);
  color: var(--white);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-back:hover {
  background-color: var(--primary-teal);
  transform: translateX(-5px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .news-card {
    flex: 0 0 calc(50% - 15px);
  }
}

@media (max-width: 768px) {
  .navbar-menu {
    position: fixed;
    left: -100%;
    top: var(--nav-height);
    flex-direction: column;
    background-color: var(--primary-navy);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    gap: 20px;
  }

  .navbar-menu.active {
    left: 0;
  }

  .navbar-toggle {
    display: block;
  }

  .page-header h1 {
    font-size: 36px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-social {
    justify-content: center;
  }

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

  .news-section,
  .games-section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .news-card {
    flex: 0 0 100%;
  }

  .news-carousel {
    padding: 0 50px;
  }

  .carousel-nav {
    width: 36px;
    height: 36px;
  }

  .carousel-nav svg {
    width: 20px;
    height: 20px;
  }

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

  .language-selector {
    gap: 8px;
  }

  .language-option {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .article-title {
    font-size: 32px;
  }

  .article-lead {
    font-size: 18px;
  }

  .article-content h2 {
    font-size: 24px;
  }

  .article-content h3 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .navbar-logo {
    height: 50px;
  }

  .page-header h1 {
    font-size: 28px;
  }

  .page-header p {
    font-size: 16px;
  }

  .news-section,
  .games-section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .news-carousel {
    padding: 0 40px;
  }

  .news-card-title {
    font-size: 18px;
  }

  .game-card {
    padding: 20px;
  }

  .game-team-name {
    font-size: 14px;
  }

  .article-title {
    font-size: 28px;
  }

  .article-lead {
    font-size: 16px;
  }

  .article-content {
    font-size: 15px;
  }

  .article-content h2 {
    font-size: 22px;
  }

  .article-content h3 {
    font-size: 18px;
  }

  .article-contact {
    padding: 20px;
  }
}

/* News Story Like Button Styles */
.news-like-container {
  margin: 30px 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.news-like-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: var(--like-button-bg);
  border: 2px solid transparent;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-like-button:hover:not(:disabled) {
  background-color: var(--like-button-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.news-like-button:active:not(:disabled) {
  transform: translateY(0);
}

.news-like-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.news-like-button.liked {
  background-color: var(--like-button-liked);
  color: var(--white);
  border-color: var(--like-button-liked);
}

.news-like-button.liked:hover:not(:disabled) {
  background-color: #ff5252;
}

.heart-icon {
  font-size: 20px;
  display: inline-flex;
  align-items: center;
}

.like-count {
  font-weight: 700;
  font-size: 18px;
}

.like-message {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--like-message-bg);
  color: var(--white);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  animation: fadeInOut 3s ease;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  90% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Like button in news cards (on index.html and news.html) */
.news-card-like {
  margin-top: auto;
  padding-top: 8px;
}

.news-card-like .news-like-button {
  padding: 3px 14px 2px 14px;
  font-size: 14px;
}

.news-card-like .heart-icon {
  font-size: 16px;
}

.news-card-like .like-count {
  font-size: 14px;
}

/* For news.html page - align Read More and like button horizontally */
.news-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}

.news-card-actions .news-card-like {
  margin-top: 0;
  padding-top: 0;
}

/* Container for share and like buttons on news.html */
.news-card-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* For index.html page - limit margin-top to prevent overflow */
.news-card-description {
  flex-grow: 1;
}

.news-card-description + .news-card-like {
  margin-top: 16px;
}

/* For index.html page - overlay like button on image */
.news-card-like-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  margin: 0;
  padding: 0;
  z-index: 10;
}

.news-card-like-overlay .news-like-button {
  background-color: rgba(232, 232, 232, 0.9);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.news-card-like-overlay .news-like-button:hover:not(:disabled) {
  background-color: rgba(208, 208, 208, 0.95);
}

.news-card-like-overlay .news-like-button.liked {
  background-color: rgba(255, 107, 107, 0.95);
}

.news-card-like-overlay .news-like-button.liked:hover:not(:disabled) {
  background-color: rgba(255, 82, 82, 0.95);
}

/* Share Button Styles */
.news-card-share {
  display: flex;
  align-items: center;
}

.news-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background-color: var(--like-button-bg);
  border: 2px solid transparent;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-share-button:hover {
  background-color: var(--like-button-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.news-share-button:active {
  transform: translateY(0);
}

.news-share-button svg {
  color: var(--text-primary);
}

/* Share button overlay positioning for index.html */
.news-card-share-overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  margin: 0;
  padding: 0;
  z-index: 10;
}

.news-card-share-overlay .news-share-button {
  background-color: rgba(232, 232, 232, 0.9);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.news-card-share-overlay .news-share-button:hover {
  background-color: rgba(208, 208, 208, 0.95);
}

/* Share Modal Styles */
.share-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.2s ease;
}

.share-modal.active {
  display: flex;
}

.share-modal-content {
  background-color: var(--white);
  border-radius: 12px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
  position: relative;
}

.share-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.share-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 0;
}

.share-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-light);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
}

.share-modal-close:hover {
  background-color: var(--secondary-light);
  color: var(--text-primary);
}

.share-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background-color: var(--secondary-light);
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--text-primary);
}

.share-option:hover {
  background-color: var(--white);
  border-color: var(--primary-teal);
  transform: translateX(4px);
}

.share-option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.share-option-icon.copy {
  background-color: var(--primary-navy);
  color: var(--white);
}

.share-option-icon.whatsapp {
  background-color: #25D366;
  color: var(--white);
}

.share-option-icon.messenger {
  background-color: #0084FF;
  color: var(--white);
}

.share-option-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.share-option-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.share-option-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-navy);
}

.share-option-description {
  font-size: 13px;
  color: var(--text-light);
}

.share-success-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--like-message-bg);
  color: var(--white);
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  animation: fadeInOut 2s ease;
  pointer-events: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments for share modal */
@media (max-width: 480px) {
  .share-modal-content {
    padding: 24px;
    width: 95%;
  }

  .share-modal-title {
    font-size: 20px;
  }

  .share-option {
    padding: 12px;
  }

  .share-option-icon {
    width: 40px;
    height: 40px;
  }

  .share-option-icon svg {
    width: 20px;
    height: 20px;
  }

  .share-option-title {
    font-size: 14px;
  }

  .share-option-description {
    font-size: 12px;
  }
}
