/* style/player-community-sharing.css */

/* Variables */
:root {
  --mcw87-primary-color: #007bff;
  --mcw87-secondary-color: #ffc107;
  --mcw87-text-dark: #212529; /* Adjusted for contrast */
  --mcw87-text-light: #ffffff;
  --mcw87-bg-light: #f8f9fa;
  --mcw87-bg-dark: #343a40;
  --mcw87-border-color: #dee2e6;
  --mcw87-shadow: rgba(0, 0, 0, 0.1);
}

/* Base styles for the page content area */
.page-player-community-sharing {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--mcw87-text-dark);
  background-color: var(--mcw87-bg-light);
}

.page-player-community-sharing__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-player-community-sharing__section {
  padding: 60px 0;
  text-align: center;
}

.page-player-community-sharing__section--about {
  background-color: var(--mcw87-bg-light);
}

.page-player-community-sharing__section--stories {
  background-color: #e9ecef;
}

.page-player-community-sharing__section--tips {
  background-color: var(--mcw87-bg-light);
}

.page-player-community-sharing__section--reviews {
  background-color: #e9ecef;
}

.page-player-community-sharing__section--events {
  background-color: var(--mcw87-bg-light);
}

.page-player-community-sharing__section--responsible {
  background-color: #f0f8ff; /* Lighter blue tint for emphasis */
  color: #333;
}

.page-player-community-sharing__section--join {
  background: linear-gradient(135deg, var(--mcw87-primary-color) 0%, #0056b3 100%);
  color: var(--mcw87-text-light);
  padding: 80px 0;
}

.page-player-community-sharing__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: var(--mcw87-primary-color);
  font-weight: bold;
}

.page-player-community-sharing__section--join .page-player-community-sharing__section-title {
  color: var(--mcw87-text-light);
}

.page-player-community-sharing__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-player-community-sharing__hero {
  background: linear-gradient(135deg, var(--mcw87-primary-color) 0%, #0056b3 100%);
  color: var(--mcw87-text-light);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-player-community-sharing__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: var(--mcw87-text-light);
}

.page-player-community-sharing__hero-subtitle {
  font-size: 1.5em;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-player-community-sharing__hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Buttons */
.page-player-community-sharing__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.1em;
  cursor: pointer;
}

.page-player-community-sharing__btn--primary {
  background-color: var(--mcw87-secondary-color);
  color: var(--mcw87-text-dark);
  border: 2px solid var(--mcw87-secondary-color);
}

.page-player-community-sharing__btn--primary:hover {
  background-color: #e0a800; /* Darker secondary */
  border-color: #e0a800;
  transform: translateY(-2px);
}

.page-player-community-sharing__btn--secondary {
  background-color: transparent;
  color: var(--mcw87-text-light);
  border: 2px solid var(--mcw87-text-light);
}

.page-player-community-sharing__btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: var(--mcw87-text-light);
  transform: translateY(-2px);
}

.page-player-community-sharing__btn--text {
  color: var(--mcw87-primary-color);
  text-decoration: none;
  padding: 8px 0;
  display: inline-block;
  font-weight: bold;
}

.page-player-community-sharing__btn--text:hover {
  text-decoration: underline;
  color: #0056b3;
}

.page-player-community-sharing__btn--large {
  padding: 18px 35px;
  font-size: 1.2em;
}

/* Image Styles */
.page-player-community-sharing__image-full-width {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 12px;
  margin: 40px auto;
  display: block;
  box-shadow: 0 8px 25px var(--mcw87-shadow);
}

.page-player-community-sharing__image-celebration {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 12px;
  margin-top: 50px;
  box-shadow: 0 8px 25px var(--mcw87-shadow);
}

/* Story Grid */
.page-player-community-sharing__story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-player-community-sharing__story-card {
  background-color: var(--mcw87-text-light);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-player-community-sharing__story-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-player-community-sharing__story-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-player-community-sharing__story-title {
  font-size: 1.6em;
  color: var(--mcw87-primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-player-community-sharing__story-excerpt {
  font-size: 0.95em;
  color: #555;
  margin-bottom: 20px;
}

/* Feature Grid (Tips Section) */
.page-player-community-sharing__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-player-community-sharing__feature-card {
  background-color: var(--mcw87-text-light);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 5px solid var(--mcw87-primary-color);
}

.page-player-community-sharing__feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-player-community-sharing__feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

.page-player-community-sharing__feature-title {
  font-size: 1.5em;
  color: var(--mcw87-primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-player-community-sharing__feature-description {
  font-size: 0.95em;
  color: #555;
  margin-bottom: 15px;
}

.page-player-community-sharing__list {
  list-style: none;
  padding-left: 0;
  text-align: left;
  margin-top: 15px;
}

.page-player-community-sharing__list li {
  margin-bottom: 8px;
  color: #444;
  position: relative;
  padding-left: 25px;
}

.page-player-community-sharing__list li::before {
  content: '✔️';
  position: absolute;
  left: 0;
  color: var(--mcw87-secondary-color);
}

.page-player-community-sharing__cta-center {
  margin-top: 50px;
}

/* Review Grid */
.page-player-community-sharing__review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-player-community-sharing__review-card {
  background-color: var(--mcw87-text-light);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: left;
  position: relative;
  min-height: 220px; /* Ensure consistent height */
}

.page-player-community-sharing__review-text {
  font-style: italic;
  color: #444;
  margin-bottom: 25px;
  font-size: 1em;
}

.page-player-community-sharing__reviewer {
  display: flex;
  align-items: center;
  margin-top: auto; /* Push to bottom */
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 30px;
}

.page-player-community-sharing__reviewer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  border: 2px solid var(--mcw87-secondary-color);
}

.page-player-community-sharing__reviewer-name {
  font-weight: bold;
  color: var(--mcw87-primary-color);
  font-size: 1.1em;
}

/* Event Grid */
.page-player-community-sharing__event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-player-community-sharing__event-card {
  background-color: var(--mcw87-text-light);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding-bottom: 25px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.page-player-community-sharing__event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-player-community-sharing__event-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  margin-bottom: 20px;
}

.page-player-community-sharing__event-card h3,
.page-player-community-sharing__event-card p,
.page-player-community-sharing__event-card a {
  padding: 0 25px;
}

.page-player-community-sharing__event-title {
  font-size: 1.4em;
  color: var(--mcw87-primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-player-community-sharing__event-description {
  font-size: 0.9em;
  color: #555;
  margin-bottom: 20px;
}

/* Responsible Gambling Section */
.page-player-community-sharing__list--responsible {
  text-align: left;
  max-width: 800px;
  margin: 30px auto;
  padding-left: 0;
}

.page-player-community-sharing__list--responsible li {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #333;
  position: relative;
  padding-left: 35px;
}

.page-player-community-sharing__list--responsible li strong {
  color: var(--mcw87-primary-color);
}

.page-player-community-sharing__list--responsible li::before {
  content: '⚠️';
  position: absolute;
  left: 0;
  font-size: 1.2em;
}

/* Join Section */
.page-player-community-sharing__join-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-player-community-sharing__join-content .page-player-community-sharing__paragraph {
  color: var(--mcw87-text-light);
  opacity: 0.9;
}

.page-player-community-sharing__join-content .page-player-community-sharing__cta-group {
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-player-community-sharing__hero-title {
    font-size: 2.8em;
  }

  .page-player-community-sharing__hero-subtitle {
    font-size: 1.3em;
  }

  .page-player-community-sharing__section-title {
    font-size: 2em;
  }

  .page-player-community-sharing__story-grid,
  .page-player-community-sharing__feature-grid,
  .page-player-community-sharing__review-grid,
  .page-player-community-sharing__event-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-player-community-sharing__hero {
    padding: 80px 0;
  }

  .page-player-community-sharing__hero-title {
    font-size: 2.2em;
  }

  .page-player-community-sharing__hero-subtitle {
    font-size: 1.1em;
  }

  .page-player-community-sharing__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-player-community-sharing__btn {
    width: 80%;
    max-width: 300px;
  }

  .page-player-community-sharing__section {
    padding: 40px 0;
  }

  .page-player-community-sharing__section-title {
    font-size: 1.8em;
  }

  .page-player-community-sharing__paragraph {
    font-size: 1em;
  }

  .page-player-community-sharing__review-card {
    min-height: auto;
    padding-bottom: 90px;
  }

  .page-player-community-sharing__reviewer {
    bottom: 20px;
    left: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .page-player-community-sharing__hero-title {
    font-size: 1.8em;
  }

  .page-player-community-sharing__hero-subtitle {
    font-size: 0.95em;
  }

  .page-player-community-sharing__btn {
    width: 90%;
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-player-community-sharing__section-title {
    font-size: 1.5em;
  }

  .page-player-community-sharing__story-card,
  .page-player-community-sharing__feature-card,
  .page-player-community-sharing__review-card,
  .page-player-community-sharing__event-card {
    padding: 20px;
  }

  .page-player-community-sharing__story-title,
  .page-player-community-sharing__feature-title,
  .page-player-community-sharing__event-title {
    font-size: 1.3em;
  }

  .page-player-community-sharing__list li {
    font-size: 0.9em;
  }

  .page-player-community-sharing__list--responsible li {
    font-size: 0.95em;
  }
}