/* 
* CS Gaming Hub - Main Stylesheet
* Theme: Gaming/CS2 Focus
*/

/* Base Styles & Reset */
:root {
  --primary-color: #ff5722;
  --secondary-color: #2c3e50;
  --accent-color: #3498db;
  --dark-color: #1a1a1a;
  --light-color: #f5f5f5;
  --text-color: #333333;
  --text-light: #ffffff;
  --text-muted: #999999;
  --border-color: #e0e0e0;
  --border-radius: 4px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
}

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

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

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

ul {
  list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5em;
  color: var(--secondary-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-weight: 600;
}

.btn:hover {
  background-color: #e64a19;
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: #1a2530;
}

.btn-accent {
  background-color: var(--accent-color);
}

.btn-accent:hover {
  background-color: #217dbb;
}

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

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

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

nav ul {
  display: flex;
  gap: 1.5rem;
}

nav ul li a {
  color: var(--text-light);
  font-weight: 500;
  padding: 0.5rem;
  position: relative;
}

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

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

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

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/8.jpg') no-repeat center center/cover;
  color: var(--text-light);
  padding: 6rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* Featured Posts */
.featured-posts {
  padding: 4rem 0;
}

.featured-posts h2 {
  text-align: center;
  margin-bottom: 2rem;
}

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

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

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

.post-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.tag {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tag.new {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.post-content {
  padding: 1.5rem;
}

.post-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--primary-color);
}

.read-more:hover {
  text-decoration: underline;
}

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

/* Tip of the Day */
.tip-of-the-day {
  background-color: var(--secondary-color);
  color: var(--text-light);
  padding: 3rem 0;
}

.tip-of-the-day h2 {
  color: var(--text-light);
  text-align: center;
  margin-bottom: 2rem;
}

.tip-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 2rem;
}

.tip-content img {
  width: 100%;
  border-radius: var(--border-radius);
}

.tip-text h3 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

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

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

.newsletter p {
  max-width: 600px;
  margin: 0 auto 2rem;
}

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

.newsletter-form input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  outline: none;
}

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

/* Blog Page */
.page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/9.jpg') no-repeat center center/cover;
  color: var(--text-light);
  padding: 4rem 0;
  text-align: center;
}

.page-header h1 {
  color: var(--text-light);
}

.blog-content {
  padding: 3rem 0;
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;
}

.blog-sidebar {
  position: sticky;
  top: 100px;
}

.search-box,
.categories,
.sidebar-tip {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  box-shadow: var(--box-shadow);
}

.search-box h3,
.categories h3 {
  margin-bottom: 1rem;
}

.search-box form {
  display: flex;
}

.search-box input {
  flex: 1;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  outline: none;
}

.search-box button {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  padding: 0 1rem;
  cursor: pointer;
}

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

.categories ul li a {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.categories ul li a:hover {
  padding-left: 0.5rem;
  color: var(--primary-color);
}

.sidebar-tip {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.sidebar-tip h3,
.sidebar-tip h4 {
  color: var(--text-light);
}

.sidebar-tip .tip-content {
  display: block;
  padding: 0;
}

.sidebar-tip img {
  margin-bottom: 1rem;
}

.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-post {
  background-color: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  display: grid;
  grid-template-columns: 1fr 2fr;
}

.blog-post .post-image {
  height: 100%;
}

.blog-post .post-content {
  padding: 2rem;
}

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

/* Single Post */
.single-post {
  padding: 3rem 0;
}

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

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

.post-content {
  line-height: 1.8;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: 2rem;
}

.post-content ul,
.post-content ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

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

.post-content .info-box,
.post-content .warning-box,
.post-content .example-tradeup,
.post-content .case-study {
  margin: 2rem 0;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background-color: #f9f9f9;
}

.post-content .warning-box {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
}

.post-content .pro-profile {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background-color: #f0f8ff;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--accent-color);
}

.post-content .formula {
  background-color: #f9f9f9;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: var(--border-radius);
  text-align: center;
  font-style: italic;
}

.post-content .code-block {
  background-color: var(--dark-color);
  color: var(--text-light);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
  overflow-x: auto;
}

.post-content .code-block pre {
  font-family: 'Courier New', monospace;
}

.post-content .market-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.post-content .market-table th,
.post-content .market-table td {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  text-align: left;
}

.post-content .market-table th {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.post-content .market-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

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

.post-tags span {
  font-weight: 600;
}

.post-tags a {
  background-color: #f0f0f0;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.85rem;
  transition: var(--transition);
}

.post-tags a:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.post-share {
  margin: 2rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-share span {
  font-weight: 600;
}

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

.post-share a.share-facebook {
  background-color: #3b5998;
}

.post-share a.share-twitter {
  background-color: #1da1f2;
}

.post-share a.share-linkedin {
  background-color: #0077b5;
}

.post-share a.share-email {
  background-color: #ea4335;
}

.post-share a:hover {
  transform: translateY(-3px);
}

.post-navigation {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.prev-post,
.next-post {
  padding: 1.5rem;
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.prev-post:hover,
.next-post:hover {
  transform: translateY(-3px);
}

.prev-post a,
.next-post a {
  display: block;
  color: var(--text-color);
}

.prev-post span,
.next-post span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.prev-post h3,
.next-post h3 {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.next-post {
  text-align: right;
}

.related-posts {
  padding: 3rem 0;
  background-color: #f9f9f9;
}

.related-posts h2 {
  text-align: center;
  margin-bottom: 2rem;
}

/* About Us Page */
.about-content {
  padding: 3rem 0;
}

.about-intro {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.about-text {
  padding-right: 2rem;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.our-values h2 {
  text-align: center;
  margin-bottom: 2rem;
}

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

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

.value-card:hover {
  transform: translateY(-5px);
}

.value-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 50%;
}

.team-section {
  margin-top: 4rem;
}

.team-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

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

.team-card {
  background-color: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.team-card h3 {
  margin: 1rem 0 0.25rem;
}

.team-card p {
  font-size: 0.9rem;
  padding: 0 1rem;
  margin-bottom: 0.5rem;
}

.team-card p:nth-of-type(1) {
  color: var(--primary-color);
  font-weight: 600;
}

.team-card .social-icons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.team-card .social-icons a {
  color: var(--secondary-color);
}

.team-card .social-icons a:hover {
  color: var(--primary-color);
}

.cta-section {
  padding: 4rem 0;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/10.jpg') no-repeat center center/cover;
  color: var(--text-light);
  text-align: center;
}

.cta-section h2 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Contact Page */
.contact-content {
  padding: 3rem 0;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.info-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-5px);
}

.info-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 50%;
}

.contact-form-section {
  background-color: #fff;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

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

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

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  outline: none;
  transition: var(--transition);
}

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

.map-section {
  padding: 3rem 0;
}

.map-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

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

.map-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: var(--text-light);
  padding: 4rem 0 1rem;
}

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

.footer-logo img {
  height: 60px;
  margin-bottom: 1rem;
}

.footer-links h3,
.footer-contact h3 {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.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: var(--primary-color);
  padding-left: 0.5rem;
}

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: #ccc;
}

.footer-contact p i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

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

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

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

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

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--secondary-color);
  color: var(--text-light);
  padding: 1rem;
  z-index: 1000;
  display: none;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

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

.btn-accept {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn-customize {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn-reject {
  background-color: transparent;
  color: var(--text-light);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  text-decoration: underline;
  transition: var(--transition);
}

.btn-accept:hover,
.btn-customize:hover,
.btn-reject:hover {
  opacity: 0.9;
}

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

.cookie-policy a {
  color: var(--primary-color);
  text-decoration: underline;
}

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

.modal-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
}

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

.modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #4caf50;
  color: var(--text-light);
  border-radius: 50%;
}

.modal-content h2 {
  margin-bottom: 1rem;
}

.close-btn {
  margin-top: 1.5rem;
}

/* Rare skin card styling for post3.html */
.rare-skin {
  background-color: #fff;
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  box-shadow: var(--box-shadow);
  border-left: 4px solid var(--primary-color);
}

/* Risk factors for post2.html */
.risk-factors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.risk-item {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border-top: 3px solid var(--accent-color);
}

.risk-item h3 {
  margin-bottom: 0.75rem;
}

/* Responsive design */
@media (max-width: 992px) {
  .blog-content {
    grid-template-columns: 1fr;
  }
  
  .blog-sidebar {
    display: none;
  }
  
  .about-intro {
    grid-template-columns: 1fr;
  }
  
  .tip-content {
    grid-template-columns: 1fr;
  }
  
  .blog-post {
    grid-template-columns: 1fr;
  }
  
  .blog-post .post-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero {
    padding: 4rem 0;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  header .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav ul {
    gap: 1rem;
  }
  
  .post-navigation {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .next-post {
    text-align: left;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
  }
  
  .newsletter-form button {
    border-radius: var(--border-radius);
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
}

/* Icon font */
.icon-location:before {
  content: "📍";
  margin-right: 0.5rem;
}

.icon-phone:before {
  content: "📞";
  margin-right: 0.5rem;
}

.icon-mail:before {
  content: "✉️";
  margin-right: 0.5rem;
}

.icon-search:before {
  content: "🔍";
}
