/* blog.css - Blog specific styles only */

/* Blog layout */
.blog-container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.blog-container h1 {
  text-align: center;
  color: var(--turquoise);
  margin-bottom: 40px;
}

.blog-post {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-post:hover {
  border-color: var(--black);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transform: translateY(-4px);
}

.blog-text {
  padding: 20px 30px;
}
.blog-text h2 {
  margin: 0 0 10px;
}
.blog-text a {
  color: var(--turquoise);
  text-decoration: none;
  transition: color 0.2s ease;
}
.blog-text a:hover {
  text-decoration: underline;
  color: var(--turquoise-light);
}
.blog-text p {
  color: #333;
  line-height: 1.6;
}

.blog-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 800px) {
  .blog-post {
    grid-template-columns: 1fr;
  }
  .blog-post img {
    height: 240px;
  }
}
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}
.article-container {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
}

.article-header {
  text-align: center;
}

.cover-image {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

.article-body h2 {
  margin-top: 40px;
  color: var(--turquoise);
}

.article-body p {
  line-height: 1.6;
  margin: 20px 0;
}

.article-image {
  width: 100%;
  border-radius: 8px;
  margin: 20px 0;
}

.article-body ul {
  margin-left: 20px;
  list-style: disc;
}

/* Main Content Layout */
.main-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

/* Blog preview */
.recent-posts h2 {
  color: var(--turquoise);
  margin-bottom: 20px;
}

.recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.recent-post {
  display: flex;
  align-items: center;
  background: #f8f8f8;
  border-radius: 10px;
  padding: 10px;
  border: 2px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.recent-post:hover {
  transform: translateY(-2px);
  border-color: var(--black);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.recent-post img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 15px;
}

.recent-post a {
  color: #222;
  text-decoration: none;
  font-weight: bold;
}

.recent-post p {
  font-size: 0.9rem;
  color: #555;
  margin-top: 5px;
}

.view-all {
  display: inline-block;
  margin-top: 20px;
  font-weight: bold;
  color: var(--turquoise);
  text-decoration: none;
  transition: color 0.2s ease;
}

.view-all:hover {
  color: var(--turquoise-light);
}

/* Tools Section on Main Page */
.tools-section h2 {
  color: var(--turquoise);
  margin-bottom: 20px;
}

.tool-card-link {
  text-decoration: none;
  display: block;
}

.tool-card {
  background: var(--white);
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
}

.tool-card-link:hover .tool-card {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(64, 224, 208, 0.3);
  border-color: var(--turquoise);
}

.tool-card h3 {
  color: var(--turquoise);
  margin: 0 0 12px;
  font-size: 20px;
}

.tool-card p {
  color: #666;
  line-height: 1.6;
  margin: 0 0 12px;
  font-size: 15px;
}

.tool-arrow {
  color: var(--turquoise);
  font-size: 24px;
  font-weight: bold;
  display: inline-block;
  transition: transform 0.3s ease;
}

.tool-card-link:hover .tool-arrow {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .main-content {
    grid-template-columns: 1fr;
  }
}

/* DefCon Table Section */
.defcon-section {
  background: #f8f9fa;
  padding: 60px 20px;
  margin-top: 40px;
}

.tables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
}

.defcon-container {
  width: 100%;
}

.defcon-container.offset {
  margin-top: 60px;
}

.defcon-container h2 {
  color: var(--turquoise);
  text-align: center;
  margin-bottom: 25px;
  font-size: 22px;
}

.table-wrapper {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  border: 2px solid var(--accent);
}

.defcon-table {
  width: 100%;
  border-collapse: collapse;
}

.defcon-table thead {
  background: linear-gradient(135deg, var(--turquoise) 0%, var(--turquoise-dark) 100%);
  color: var(--black);
}

.defcon-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.defcon-table tbody tr {
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.2s ease;
}

.defcon-table tbody tr:hover {
  background-color: rgba(64, 224, 208, 0.08);
}

.defcon-table tbody tr:last-child {
  border-bottom: none;
}

.defcon-table td {
  padding: 11px 16px;
  font-size: 14px;
  color: #333;
}

.defcon-table .player-name {
  font-weight: 600;
  color: var(--black);
}

.defcon-table .matches-played {
  text-align: center;
  color: #666;
}

.defcon-table .success-rate {
  text-align: center;
  font-weight: 700;
  color: var(--turquoise);
}

.defcon-table .loading,
.defcon-table .error-message {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-style: italic;
}

.defcon-table .error-message {
  color: #dc3545;
}

@media (max-width: 1024px) {
  .tables-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .defcon-container.offset {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .defcon-section {
    padding: 40px 15px;
  }

  .defcon-container h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .table-wrapper {
    overflow-x: auto;
  }

  .defcon-table th,
  .defcon-table td {
    padding: 12px 15px;
    font-size: 14px;
  }

  .defcon-table th {
    font-size: 12px;
  }
}