/* Design System & Core Styles */
:root {
  --primary-color: #ef4444; /* Blood Red */
  --primary-hover: #b91c1c;
  --bg-color: #030303;
  --card-bg: #0d0d0d;
  --text-main: #ffffff;
  --text-muted: #666666;
  --accent-color: #991b1b;
  --success-color: #22c55e;
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --transition-all: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Glassmorphism Effect */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0) 70%);
  z-index: -1;
}

h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -2px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-all);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(239, 68, 68, 0.4);
}

/* Mobile Header Optimizations */
@media (max-width: 640px) {
    header {
        height: 60px;
    }
    .logo {
        font-size: 1.1rem;
    }
    nav {
        gap: 1rem !important;
    }
    nav a {
        font-size: 0.75rem !important;
    }
    .btn-primary {
        padding: 0.4rem 0.8rem !important;
    }
}

/* Ad Placement Containers */
/* This is how you would style an ad container for Google AdSense */
.ad-slot-header {
  width: 100%;
  height: 90px;
  max-width: 1200px;
  margin: 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.ad-sidebar {
  width: 300px;
  height: 600px;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  margin: 4rem 0;
}

.articles {
  display: grid;
  gap: 2rem;
}

.article-card {
  padding: 2rem;
  border-radius: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  transition: var(--transition-all);
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.article-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.article-card p {
  color: var(--text-muted);
}

/* Footer */
footer {
  padding: 4rem 0;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  margin-top: 4rem;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Full Image Card Specific Styles */
.game-card {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    cursor: pointer;
    background: var(--card-bg);
    aspect-ratio: 16 / 9;
    padding: 0 !important; /* Force no padding for full image */
    border: 1px solid var(--glass-border);
}

.game-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-all);
    display: block;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition-all);
}

.game-card:hover .game-thumb {
    transform: scale(1.1);
}

.game-card:hover .card-overlay {
    padding-bottom: 2.5rem;
}

.version-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--primary-color);
    color: black;
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    z-index: 2;
}

.mod-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
}

.mod-text h3 {
    font-size: 1.75rem;
    margin-bottom: 0.4rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    white-space: nowrap;
}

@media (max-width: 640px) {
    .main-title {
        font-size: 1.8rem !important;
        white-space: nowrap;
    }
    .mod-text h3 {
        font-size: 1.1rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .card-overlay {
        padding: 1rem;
    }
    .mod-info {
        flex-direction: row !important;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }
    .mod-text {
        flex: 1;
        min-width: 0;
    }
    .mod-text h3 {
        font-size: 1rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .game-card .btn {
        flex-shrink: 0;
        padding: 0.5rem 1rem !important;
        font-size: 0.75rem !important;
    }
    .game-card {
        aspect-ratio: 16 / 9;
    }
}

.mod-text p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    max-width: 80%;
    margin: 0;
}

/* Modal Implementation */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 2rem;
    max-width: 500px;
    width: 90%;
    border: 1px solid var(--glass-border);
    position: relative;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-all);
}

.modal-close:hover {
    background: var(--primary-color);
}

.download-links {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: var(--transition-all);
}

.download-link:hover {
    border-color: var(--primary-color);
    background: rgba(245, 158, 11, 0.1);
}

.download-link i {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Responsive fixes */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .ad-sidebar {
    width: 100%;
    height: 250px;
  }
}

@media (max-width: 640px) {
  h1 { font-size: 2.5rem; }
  .ad-slot-header { height: 50px; }
}
