/* ==============================================
   Only Fortress - Static Site
   Dark theme with gold (#d5af5f) accents
   Font: Raleway
   ============================================== */

/* --- CSS Variables --- */
:root {
  --bg-body: #222222;
  --bg-block-alt: #272727;
  --bg-header: #333333;
  --bg-footer: #1c1c1c;
  --bg-secondary: #3a3a3a;
  --bg-secondary-hover: #474747;

  --text-body: #bbbbbb;
  --text-heading: #e9e9e9;
  --text-white: #ffffff;
  --text-muted: rgba(187, 187, 187, 0.55);

  --accent: #d5af5f;
  --accent-hover: #d2a953;

  --btn-primary-text: #f9f9f9;

  --divider: rgba(187, 187, 187, 0.15);

  --font-main: 'Raleway', sans-serif;

  --container-max: 1100px;
  --nav-height: 60px;
  --transition: 0.25s ease;
}

/* --- Reset / Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  color: var(--text-heading);
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1em; }

ul, ol { margin-bottom: 1em; padding-left: 1.5em; }
li { margin-bottom: 0.4em; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section--alt {
  background-color: var(--bg-block-alt);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
  border: none;
  text-align: center;
}

.btn--primary {
  background-color: var(--accent);
  color: var(--btn-primary-text);
}
.btn--primary:hover {
  background-color: var(--accent-hover);
  color: var(--btn-primary-text);
}

.btn--secondary {
  background-color: var(--bg-secondary);
  color: var(--text-body);
}
.btn--secondary:hover {
  background-color: var(--bg-secondary-hover);
}

.btn--social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  font-size: 1.4rem;
  background-color: var(--accent);
  color: var(--btn-primary-text);
  margin: 0 6px;
}
.btn--social:hover {
  background-color: var(--accent-hover);
  color: var(--btn-primary-text);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: var(--bg-body);
  z-index: 1000;
  border-bottom: 1px solid var(--divider);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo img {
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  color: var(--text-heading);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color var(--transition), color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-heading);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px;
}

/* --- Mobile Menu --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-body);
  z-index: 999;
  flex-direction: column;
  padding: 20px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: var(--text-heading);
  padding: 14px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--divider);
  transition: color var(--transition);
}
.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--accent);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  background-color: var(--bg-header);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 0 80px;
  text-align: center;
  margin-top: var(--nav-height);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(34,34,34,0.85));
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-logo {
  max-width: 280px;
  margin: 0 auto 30px;
}

.hero-media {
  position: relative;
  max-width: 640px;
  margin: 0 auto 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.hero-media img {
  width: 100%;
  display: block;
}

.hero-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--btn-primary-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: transform var(--transition), background-color var(--transition);
  box-shadow: 0 4px 20px rgba(213, 175, 95, 0.4);
}
.hero-play-btn:hover {
  background-color: var(--accent-hover);
  color: var(--btn-primary-text);
  transform: translate(-50%, -50%) scale(1.1);
}
.hero-play-btn i {
  margin-left: 4px;
}

/* --- CTA Section --- */
.cta-section {
  padding: 50px 0 40px;
  text-align: center;
}

.cta-section h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.cta-section p {
  font-size: 1rem;
  color: var(--text-body);
  margin-bottom: 28px;
}

.store-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badges img {
  height: auto;
}

.store-badges a:first-child img {
  width: 200px;
}

.store-badges a:last-child img {
  width: 240px;
}

/* --- Feature Row (image + text side by side) --- */
.feature-row {
  padding: 60px 0;
}

.feature-row .container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.feature-row__media {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
}

.feature-row__media img {
  width: 100%;
  border-radius: 10px;
}

.feature-row__text {
  flex: 1;
}

.feature-row__text h3 {
  margin-bottom: 12px;
}

.feature-row__text p,
.feature-row__text div {
  color: var(--text-body);
  line-height: 1.7;
}

/* --- Feature Cards (3-column) --- */
.feature-cards {
  padding: 60px 0;
}

.feature-cards .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--divider);
  transition: border-color var(--transition);
}
.feature-card:hover {
  border-color: var(--accent);
}

.feature-card__image {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.feature-card__image img {
  width: 100%;
  border-radius: 8px;
}

.feature-card h4 {
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-body);
}

/* --- Full-Width Feature --- */
.feature-full {
  padding: 60px 0;
  text-align: center;
}

.feature-full__image {
  max-width: 900px;
  margin: 0 auto 24px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.feature-full__image img {
  width: 100%;
}

.feature-full h3 {
  margin-bottom: 10px;
}

.feature-full p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-body);
}

/* --- Connect / Social Section --- */
.connect-section {
  padding: 60px 0;
  text-align: center;
}

.connect-section h3 {
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* --- Page Header (for subpages) --- */
.page-header {
  padding: 100px 0 40px;
  margin-top: var(--nav-height);
  background-color: var(--bg-header);
  text-align: center;
}

.page-header h1 {
  font-size: 2.2rem;
  color: var(--text-white);
}

/* --- Devlog --- */
.devlog-feed {
  padding: 40px 0;
}

.devlog-post {
  background-color: var(--bg-block-alt);
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 24px;
  border: 1px solid var(--divider);
}

.devlog-post__date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.devlog-post__content {
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 16px;
}

.devlog-post__image {
  border-radius: 8px;
  overflow: hidden;
  margin-top: 16px;
}

.devlog-post__image img {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity var(--transition);
}
.devlog-post__image img:hover { opacity: 0.9; }

/* --- News List --- */
.news-feed {
  padding: 40px 0;
}

.news-card {
  display: flex;
  gap: 24px;
  background-color: var(--bg-block-alt);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--divider);
  transition: border-color var(--transition);
}
.news-card:hover {
  border-color: var(--accent);
}

.news-card__image {
  flex: 0 0 280px;
  overflow: hidden;
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.news-card:hover .news-card__image img {
  transform: scale(1.03);
}

.news-card__body {
  flex: 1;
  padding: 24px 24px 24px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-card__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.news-card__meta span {
  background-color: var(--bg-secondary);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-left: 8px;
}

.news-card__title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.news-card__title a {
  color: var(--text-heading);
}
.news-card__title a:hover {
  color: var(--accent);
}

.news-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__link {
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- News Article (single) --- */
.article {
  padding: 40px 0 60px;
}

.article .container {
  max-width: 800px;
}

.article__meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.article__meta span {
  background-color: var(--bg-secondary);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-left: 8px;
}

.article__banner {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
}

.article__banner img {
  width: 100%;
}

.article__content {
  line-height: 1.8;
  font-size: 1rem;
}

.article__content h2,
.article__content h3 {
  margin-top: 1.5em;
}

.article__content strong {
  color: var(--text-heading);
}

.article__content ul {
  margin: 1em 0;
  padding-left: 1.5em;
}

.article__content li {
  margin-bottom: 0.5em;
}

.article__share {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
  display: flex;
  gap: 12px;
}

.article__share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--bg-secondary);
  color: var(--text-body);
  font-size: 1rem;
  transition: background-color var(--transition);
}
.article__share a:hover {
  background-color: var(--bg-secondary-hover);
  color: var(--text-heading);
}

.article__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}
.article__back:hover { color: var(--accent); }

/* --- Media Gallery --- */
.media-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.media-tabs a {
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-body);
  background-color: var(--bg-secondary);
  transition: background-color var(--transition);
}
.media-tabs a:hover,
.media-tabs a.active {
  background-color: var(--accent);
  color: var(--btn-primary-text);
}

.gallery {
  padding: 0 0 60px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition), opacity var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
  opacity: 0.85;
}

/* --- Legal Pages --- */
.legal {
  padding: 40px 0 60px;
}

.legal .container {
  max-width: 800px;
}

.legal__content {
  line-height: 1.8;
}

.legal__content h3 {
  margin-top: 1.5em;
}

/* --- Footer --- */
.footer {
  background-color: var(--bg-footer);
  padding: 24px 0;
  border-top: 1px solid var(--divider);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-body);
}

.footer-text a {
  color: var(--text-body);
  margin: 0 4px;
}
.footer-text a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  color: var(--text-body);
  font-size: 1.2rem;
  transition: color var(--transition);
}
.footer-social a:hover {
  color: var(--accent);
}

/* --- Video Modal --- */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.video-modal.open {
  display: flex;
}

.video-modal__inner {
  position: relative;
  width: 90%;
  max-width: 900px;
  aspect-ratio: 16/9;
}

.video-modal__inner iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
}

.video-modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  transition: color var(--transition);
}
.video-modal__close:hover {
  color: var(--accent);
}

/* --- Image Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* --- Utilities --- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0; }
.mt-20 { margin-top: 20px; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .feature-row .container {
    flex-direction: column;
  }

  .feature-cards .container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .news-card {
    flex-direction: column;
  }

  .news-card__image {
    flex: none;
    height: 200px;
  }

  .news-card__body {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-logo {
    max-width: 200px;
  }

  .cta-section h1 {
    font-size: 1.5rem;
  }

  .store-badges a:first-child img { width: 160px; }
  .store-badges a:last-child img { width: 200px; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .page-header {
    padding: 80px 0 30px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .store-badges {
    flex-direction: column;
  }
}
