/* Main Styles for GameDealHub */

/* Base Styles and Variables */
:root {
  --primary-color: #5e35b1;
  --primary-dark: #4527a0;
  --primary-light: #7e57c2;
  --secondary-color: #ff9100;
  --secondary-dark: #e68300;
  --secondary-light: #ffad33;
  --text-color: #333;
  --text-light: #666;
  --text-lighter: #999;
  --bg-color: #fff;
  --bg-light: #f8f9fa;
  --bg-dark: #f1f1f1;
  --border-color: #e0e0e0;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --error-color: #f44336;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-color);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Buttons */
.btn, 
button[type="submit"], 
.submit-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
}

.btn:hover, 
button[type="submit"]:hover, 
.submit-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.spell-check-btn {
  background-color: var(--secondary-color);
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.spell-check-btn:hover {
  background-color: var(--secondary-dark);
}

/* Header and Navigation */
header {
  padding: 1rem 0;
  background-color: var(--bg-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  max-width: 180px;
}

.logo img {
  height: 50px;
  width: auto;
}

nav ul {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  font-weight: 600;
  color: var(--text-color);
  padding: 0.5rem 0;
  position: relative;
}

nav a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

nav a:hover:after,
nav a.active:after {
  width: 100%;
}

nav a.active {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background-color: var(--primary-color);
  color: white;
  padding: 5rem 0;
  margin-bottom: 3rem;
  background-image: linear-gradient(to right, var(--primary-color), var(--primary-dark));
}

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

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Featured Consoles */
.featured-consoles {
  padding: 3rem 0;
}

.featured-consoles h2,
.recent-posts h2,
.blog-posts h2,
.about-content h2,
.team-section h2,
.related-posts h3 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  position: relative;
}

.featured-consoles h2:after,
.recent-posts h2:after,
.blog-posts h2:after,
.about-content h2:after,
.team-section h2:after,
.related-posts h3:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.consoles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.console-card {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.console-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

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

.console-card h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  font-size: 1.3rem;
}

.console-card p {
  padding: 0 1.5rem 1rem;
  color: var(--text-light);
}

.console-card .btn-small {
  margin: 0 1.5rem 1.5rem;
}

/* Recent Posts Section */
.recent-posts {
  padding: 3rem 0;
  background-color: var(--bg-light);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.post-card {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

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

.post-card h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  font-size: 1.3rem;
}

.post-card p {
  padding: 0 1.5rem 1rem;
  color: var(--text-light);
}

.read-more {
  display: inline-block;
  margin: 0 1.5rem 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  position: relative;
}

.read-more:after {
  content: '→';
  margin-left: 5px;
  transition: var(--transition);
}

.read-more:hover:after {
  margin-left: 10px;
}

.view-all-btn {
  text-align: center;
  margin-top: 1rem;
}

/* Newsletter Section */
.newsletter {
  background-color: var(--primary-color);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.newsletter h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.newsletter p {
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 1rem;
}

.newsletter-form button {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  background-color: var(--secondary-color);
}

.newsletter-form button:hover {
  background-color: var(--secondary-dark);
}

/* Footer */
footer {
  background-color: #222;
  color: white;
  padding: 4rem 0 2rem;
}

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

.footer-logo img {
  height: 50px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-logo p {
  color: #ccc;
  font-size: 0.9rem;
}

.footer-links h3, 
.footer-social h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: white;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a {
  color: #ccc;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: white;
  margin-left: 5px;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
  font-size: 0.9rem;
}

.copyright p {
  margin-bottom: 0.5rem;
}

/* Page Header */
.page-header {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 0;
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Blog Page Styles */
.blog-posts {
  padding: 2rem 0 4rem;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.blog-post {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.post-image {
  height: 100%;
}

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

.post-content {
  padding: 2rem;
}

.post-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-lighter);
  font-size: 0.9rem;
}

.post-content h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.post-content p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

/* About Page Styles */
.about-content {
  padding: 2rem 0 4rem;
}

.about-story {
  margin-bottom: 4rem;
}

.about-story p {
  margin-bottom: 1.5rem;
  max-width: 900px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.value-card {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.value-icon {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.team-member {
  text-align: center;
}

.team-member img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.team-member h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.team-member p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

/* Contact Page Styles */
.contact-content {
  padding: 2rem 0 4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.info-item {
  display: flex;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.info-icon {
  color: var(--primary-color);
  font-size: 1.5rem;
  min-width: 24px;
}

.info-text h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.info-text p {
  color: var(--text-light);
}

.social-contact {
  margin-top: 2rem;
}

.contact-form-container {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
}

.contact-form-container h2 {
  margin-bottom: 1.5rem;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.map-container {
  text-align: center;
}

.map {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  height: 400px;
}

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

/* Blog Post Page Styles */
.post-content {
  padding: 2rem 0 4rem;
}

.post-header {
  margin-bottom: 2rem;
  text-align: center;
}

.post-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.post-featured-image {
  margin-bottom: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.post-featured-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.post-body {
  max-width: 800px;
  margin: 0 auto;
}

.post-body h3 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
}

.post-body h4 {
  font-size: 1.4rem;
  margin: 1.5rem 0 1rem;
}

.post-body p {
  margin-bottom: 1.5rem;
}

.post-body ul,
.post-body ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.post-body ul li,
.post-body ol li {
  margin-bottom: 0.5rem;
}

.post-body ul {
  list-style-type: disc;
}

.post-body ol {
  list-style-type: decimal;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
}

.tag {
  background-color: var(--primary-light);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  font-size: 0.9rem;
}

.share-post {
  margin: 2rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.share-post h3 {
  font-size: 1.2rem !important;
  margin-bottom: 1rem !important;
  text-align: center;
}

.social-share {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--bg-light);
  color: var(--text-color);
  border-radius: 50%;
  transition: var(--transition);
}

.social-share a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.prev-post,
.next-post,
.back-to-blog {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.prev-post svg,
.next-post svg {
  transition: var(--transition);
}

.prev-post:hover svg {
  transform: translateX(-5px);
}

.next-post:hover svg {
  transform: translateX(5px);
}

/* Related Posts Section */
.related-posts {
  padding: 3rem 0;
  background-color: var(--bg-light);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.related-post {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.related-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.related-post img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.related-post h4 {
  padding: 1.2rem 1.2rem 0.5rem;
  font-size: 1.1rem;
}

.related-post .read-more {
  margin: 0 1.2rem 1.2rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.cookie-content h3 {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.cookie-content p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.btn-cookie {
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.accept {
  background-color: var(--success-color);
  color: white;
}

.customize {
  background-color: var(--bg-light);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.reject {
  background-color: var(--text-lighter);
  color: white;
}

.cookie-policy-link {
  font-size: 0.9rem;
}

/* Thank You Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.thank-you-content {
  text-align: center;
}

.thank-you-content svg {
  margin-bottom: 1.5rem;
}

.thank-you-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.thank-you-content p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .blog-post {
    grid-template-columns: 250px 1fr;
  }
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-post {
    grid-template-columns: 1fr;
  }
  
  .post-image img {
    height: 300px;
  }
  
  .post-content {
    padding: 1.5rem;
  }
  
  .hero-content h2,
  .page-header h2,
  .post-header h2 {
    font-size: 2rem;
  }
  
  .hero-content p,
  .page-header p {
    font-size: 1rem;
  }
  
  nav ul {
    gap: 1rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
  }
  
  .newsletter-form button {
    border-radius: var(--border-radius);
  }
}

@media (max-width: 576px) {
  header .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .post-header h2 {
    font-size: 1.8rem;
  }
  
  .post-body h3 {
    font-size: 1.5rem;
  }
  
  .post-body h4 {
    font-size: 1.3rem;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .related-post img {
    height: 150px;
  }
}
