/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #023557;
  color: #333;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input,
textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

body::after {
  content: "© AI Games Guru";
  position: fixed;
  bottom: 10px;
  right: 10px;
  opacity: 0.3;
  font-size: 12px;
  pointer-events: none;
}

/* Header */
header {
  background: #023557;
  color: #fff;
  padding: 2rem;
  text-align: center;
}

header h1 {
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
}

header p {
  font-size: 1.2rem;
}

/* Grid */
.website-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

/* Card */
.website-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  color: inherit;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  cursor: pointer;
}

.website-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.website-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.website-card h3 {
  padding: 1rem;
  font-size: 1.5rem;
}

.website-card p {
  padding: 0 1rem 1rem;
  font-size: 1rem;
}

/* Twitter handle link inside card */
.twitter-handle {
  font-size: 0.9rem;
  color: #555;
  padding: 0 1rem 1rem;
}

.twitter-handle a {
  color: #1da1f2;
  text-decoration: none;
}

.twitter-handle a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: #222;
  color: #ddd;
  text-align: center;
  padding: 1rem;
  position: fixed;
  bottom: 0;
  width: 100%;
}

/* Responsive */
@media (min-width: 1024px) {
  .website-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  header {
    padding: 1rem;
  }
  
  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1em;
  }
  
  .website-grid {
    padding: 1rem;
    gap: 1rem;
  }
  
  .website-card h3 {
    padding: 0.5rem;
    font-size: 1.3rem;
  }
  
  .website-card p {
    padding: 0 0.5rem 0.5rem;
    font-size: 0.9rem;
  }
  
  .sponsored-container {
    padding: 0.25m 0.5;
    gap: 0.25rem;
    margin-bottom: 0.25em;
  }
  
  .sponsored-banner {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Filter container */
.filter-container {
  padding: 1rem 2rem;
  text-align: center;
  background-color: #023557;
}

.filter-container input {
  width: 100%;
  max-width: 400px;
  padding: 0.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
}

/* Sponsored container */
.sponsored-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background-color: #f4f4f4;
  margin-bottom: 1rem;
}

.sponsored-banner {
  display: inline-block;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 2px solid #023557;
  color: #023557;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s;
  position: relative;
}

.sponsored-banner:hover {
  background-color: green;
  color: #fff;
}

.ad-banner {
  border: 2px solid green;
  animation: pulse 2s infinite;
}

.sponsored-info {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  font-size: 0.8rem;
  color: grey;
}

.sponsored-text {
  margin-right: 0.25rem;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* New styles for card buttons container */
.card-button-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
}

/* Twitter button style */
.twitter-button {
  background-color: #fff;
  border: 2px solid #1da1f2;
  border-radius: 4px;
  color: #1da1f2;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.twitter-button:hover {
  background-color: #1da1f2;
  color: #fff;
}

/* Share button style modified */
.share-button {
  margin: 0.5rem 0;
  padding: 0.5rem 1rem;
  background-color: #1da1f2;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.share-button:hover {
  background-color: #0d8ddb;
}

/* Back to Top button styles */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 0.75rem 1.5rem;
  background-color: #023557;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Load More button styles */
.load-more-container {
  text-align: center;
  margin: 2rem 0;
}

.load-more {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: #2783c0;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  font-size: 1.2rem;
  animation: pulse-load-more 2s infinite;
}

.load-more:hover {
  background-color: #0d8ddb;
}

@keyframes pulse-load-more {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
