/* Chess Page Styles */

/* General Styling */
.chess-page {
  background-color: var(--background-color);
  color: var(--default-color);
  font-family: var(--default-font);
}

/* Hero Section */
.chess-hero {
  padding: 120px 0 80px;
  background-color: var(--background-color);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.02) 100%);
}

.chess-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-image: url('../img/chess/chess-pattern.png');
  background-size: 300px;
  opacity: 0.05;
  z-index: 1;
}

.chess-hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--heading-color);
  letter-spacing: -0.5px;
}

.hero-content p {
  font-size: 1.3rem;
  line-height: 1.7;
  margin-bottom: 30px;
  color: var(--default-color);
}

/* About Chess Section */
.about-chess {
  padding: 80px 0;
}

.chess-about-img {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.chess-about-img img {
  transition: transform 0.5s ease;
}

.chess-about-img:hover img {
  transform: scale(1.03);
}

.chess-about-content {
  padding: 0 20px;
}

.chess-about-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.chess-quote {
  padding: 30px;
  margin: 30px 0;
  position: relative;
  background-color: var(--surface-color);
  border-left: 5px solid var(--accent-color);
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.chess-quote i {
  position: absolute;
  top: 10px;
  left: 10px;
  color: var(--accent-color);
  opacity: 0.2;
  font-size: 2rem;
}

.chess-quote p {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--heading-color);
}

.chess-quote small {
  display: block;
  text-align: right;
  color: var(--accent-color);
  font-weight: 500;
}

/* Chess Stats Section */
.chess-stats {
  padding: 80px 0;
}

.stat-card {
  background-color: var(--surface-color);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  margin-bottom: 20px;
}

.stat-icon i {
  font-size: 2.5rem;
  color: var(--accent-color);
}

.stat-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--heading-color);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--heading-color);
}

.stat-card p {
  font-size: 0.95rem;
  color: var(--default-color);
  opacity: 0.8;
}

/* Chess Openings Section */
.chess-openings {
  padding: 80px 0;
}

.openings-container {
  margin-top: 40px;
}

.opening-card {
  background-color: var(--surface-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.opening-card h3 {
  font-size: 1.5rem;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--heading-color);
}

.opening-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.opening-item {
  position: relative;
}

.opening-item h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--heading-color);
  font-weight: 600;
}

.opening-item p {
  font-size: 0.95rem;
  margin-bottom: 15px;
  color: var(--default-color);
}

.board-preview {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.board-preview img {
  transition: transform 0.5s ease;
}

.opening-item:hover .board-preview {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.opening-item:hover .board-preview img {
  transform: scale(1.05);
}

/* Chess Resources Section */
.chess-resources {
  padding: 80px 0;
}

.resources-container {
  margin-top: 40px;
}

.resource-card {
  background-color: var(--surface-color);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.resource-icon {
  margin-bottom: 20px;
}

.resource-icon i {
  font-size: 2.5rem;
  color: var(--accent-color);
}

.resource-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--heading-color);
}

.resource-card p {
  font-size: 0.95rem;
  color: var(--default-color);
  margin-bottom: 20px;
  opacity: 0.9;
}

.resource-link {
  color: var(--accent-color);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.resource-link i {
  transition: transform 0.3s ease;
}

.resource-link:hover {
  color: color-mix(in srgb, var(--accent-color) 80%, black);
}

.resource-link:hover i {
  transform: translateX(5px);
}

/* Play With Me Section */
.play-with-me {
  padding: 80px 0;
  background-color: var(--surface-color);
  text-align: center;
}

.play-with-me h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--heading-color);
}

.play-with-me p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--default-color);
}

.chess-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.chess-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  background-color: #7FA650;
  color: white;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.chess-btn.lichess {
  background-color: #4d4d4d;
}

.chess-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
  color: white;
}

.platform-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Chess Achievements Section */
.chess-achievements {
  padding: 80px 0;
}

.achievement-card {
  background-color: var(--surface-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.achievement-img {
  position: relative;
  overflow: hidden;
}

.achievement-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.achievement-card:hover .achievement-img img {
  transform: scale(1.05);
}

.achievement-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.achievement-card:hover .achievement-overlay {
  opacity: 1;
}

.achievement-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.achievement-preview:hover {
  background-color: white;
  color: var(--accent-color);
  transform: scale(1.1);
}

.achievement-info {
  padding: 25px;
}

.achievement-info h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--heading-color);
  font-weight: 600;
}

.achievement-info p {
  font-size: 0.95rem;
  margin-bottom: 15px;
  color: var(--default-color);
}

.achievement-details {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.9rem;
  color: var(--accent-color);
}

.achievement-details span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.achievement-details i {
  font-size: 1rem;
}

/* Chess Achievements Section */
.chess-achievements {
  padding: 80px 0;
}

.achievement-container {
  margin-top: 30px;
}

.achievement-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.achievement-image img {
  transition: transform 0.5s ease;
}

.achievement-image:hover img {
  transform: scale(1.03);
}

.achievement-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--heading-color);
}

.achievement-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.achievement-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-color);
  font-weight: 500;
}

.achievement-meta span i {
  font-size: 1.2rem;
}

.achievement-details {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.achievement-details li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 1.05rem;
}

.achievement-details li:last-child {
  border-bottom: none;
}

.achievement-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--default-color);
}

.achievement-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

.btn-achievement {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.btn-achievement.certificate {
  background-color: rgb(52, 183, 167);
  color: white;
}

.btn-achievement.memento {
  background-color: rgb(52, 183, 167);
  color: white;
}

.btn-achievement:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  color: white;
  background-color: rgb(0, 0, 0);
}

.btn-achievement i {
  font-size: 1.2rem;
}

@media (max-width: 992px) {
  .achievement-content h3 {
    font-size: 1.6rem;
  }
  
  .achievement-meta {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .achievement-content {
    text-align: center;
  }
  
  .achievement-meta {
    justify-content: center;
  }
  
  .achievement-buttons {
    justify-content: center;
  }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .chess-hero {
    padding: 100px 0 60px;
  }
  
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .chess-about-content {
    margin-top: 30px;
    padding: 0;
  }
  
  .stat-card {
    margin-bottom: 30px;
  }
  
  .opening-card {
    margin-bottom: 30px;
  }
  
  .play-with-me h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .chess-hero {
    padding: 80px 0 50px;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .chess-quote {
    padding: 20px;
    margin: 20px 0;
  }
  
  .chess-quote p {
    font-size: 1rem;
  }
  
  .stat-value {
    font-size: 2rem;
  }
  
  .play-with-me {
    padding: 60px 0;
  }
  
  .chess-buttons {
    flex-direction: column;
    align-items: center;
  }

  .achievement-card {
    margin-bottom: 30px;
  }
}

@media (max-width: 576px) {
  .chess-hero {
    padding: 60px 0 40px;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .opening-card h3 {
    font-size: 1.3rem;
  }
  
  .opening-item h4 {
    font-size: 1.1rem;
  }
}

/* Favorite Chess Players Section */
.favorite-players {
  padding: 80px 0;
  background-color: var(--surface-color);
}

.favorite-players .section-title {
  margin-bottom: 50px;
}

.player-card {
  background-color: var(--surface-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.player-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.player-img {
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.player-img img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.player-card:hover .player-img img {
  transform: scale(1.05);
}

.player-info {
  padding: 25px;
  text-align: center;
}

.player-info h4 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--heading-color);
  position: relative;
  padding-bottom: 12px;
}

.player-info h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
}

.player-info p {
  font-size: 0.95rem;
  color: var(--default-color);
  line-height: 1.7;
}

.player-achievements {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.achievement-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .favorite-players {
    padding: 60px 0;
  }
  
  .player-info h4 {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .player-card {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .player-info p {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .favorite-players {
    padding: 50px 0;
  }
  
  .player-info {
    padding: 20px;
  }
  
  .player-info h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
}
