/* ============================================================
       TUTORIALS & HOW-TOS - STYLESHEET
       Golden Ratio Consulting
============================================================ */

/* ============================================================
       GLOBAL STYLES & VARIABLES
============================================================ */
:root {
  --color-gray-900: #0a0a0a;
  --color-gray-800: #1a1a1a;
  --color-gray-700: #2d2d2d;
  --color-gray-100: #f5f5f5;
  --color-primary: #DAA520;
  --color-primary-dark: #B8860B;
  --color-primary-light: #FFD700;
  --card-radius: 1rem;
  --transition-base: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
       TYPOGRAPHY
============================================================ */
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
       BUTTONS
============================================================ */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 2rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-base);
  cursor: pointer;
  border: none;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  box-shadow: 0 4px 12px rgba(218, 165, 32, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(218, 165, 32, 0.35);
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary-dark);
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  transition: var(--transition-base);
  display: inline-block;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white;
}

/* ============================================================
       HERO SECTION
============================================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0a0a2e 0%, #16213e 100%);
  padding: 5rem 0 4rem;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero__bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: white;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================================
       BREADCRUMB
============================================================ */
.breadcrumb {
  padding: 1.5rem 0;
  color: #6B7B7F;
  font-size: 0.875rem;
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ============================================================
       SECTIONS
============================================================ */
.section {
  padding: 4rem 0;
}

/* ============================================================
       SEARCH BAR
============================================================ */
.search-bar {
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

.search-bar input {
  width: 100%;
  padding: 0.85rem 1.5rem;
  border: 1px solid #ddd;
  border-radius: 2rem;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-base);
}

.search-bar input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(218, 165, 32, 0.1);
}

/* ============================================================
       CATEGORY TABS
============================================================ */
.category-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.category-tab {
  background: transparent;
  border: 1px solid #ddd;
  padding: 0.6rem 1.25rem;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  border-radius: 2rem;
  transition: var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.category-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.category-tab.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* ============================================================
       TUTORIALS GRID
============================================================ */
.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* ============================================================
       TUTORIAL CARD
============================================================ */
.tutorial-card {
  background: white;
  border-radius: var(--card-radius);
  padding: 1.5rem;
  border: 1px solid #eee;
  transition: var(--transition-base);
  cursor: pointer;
  position: relative;
}

.tutorial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 32px rgba(0, 0, 0, 0.1);
  border-color: var(--color-primary-light);
}

.tutorial-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.tutorial-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-beginner {
  background: #d4edda;
  color: #155724;
}

.badge-intermediate {
  background: #fff3cd;
  color: #856404;
}

.badge-advanced {
  background: #f8d7da;
  color: #721c24;
}

.tutorial-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: #111;
  padding-right: 4rem;
}

.tutorial-card p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.tutorial-card__meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: #888;
}

.tutorial-card__footer {
  border-top: 1px solid #eee;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.tutorial-link {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition-base);
}

.tutorial-card:hover .tutorial-link {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* ============================================================
       LOAD MORE BUTTON
============================================================ */
.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* ============================================================
       NO RESULTS
============================================================ */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: #666;
}

/* ============================================================
       HELP SECTION
============================================================ */
.help-section {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  text-align: center;
  color: white;
  margin-top: 3rem;
  
  /* Complete centering system - all four positions */
  position: relative;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  
  /* Flexbox for perfect center alignment */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
  /* Grid alternative (commented, but available) */
  /* display: grid;
  place-items: center; */
  
  /* Ensure content takes full height for vertical centering */
  min-height: 200px;
}

/* Ensure all child elements are centered */
.help-section > * {
  margin-left: auto;
  margin-right: auto;
}

/* Specific centering for headings */
.help-section h3 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  
  /* Centering reinforcement */
  text-align: center;
  width: 100%;
}

/* Specific centering for paragraphs */
.help-section p {
  margin-bottom: 1.5rem;
  opacity: 0.95;
  
  /* Centering reinforcement */
  text-align: center;
  width: 100%;
  max-width: 80%;
}

/* Centered button container */
.help-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

/* Button styles remain the same */
.help-section .btn-primary {
  background: white;
  color: var(--color-primary-dark);
}

.help-section .btn-outline {
  border-color: white;
  color: white;
}

.help-section .btn-outline:hover {
  background: white;
  color: var(--color-primary-dark);
}
/* ============================================================
       ANIMATIONS
============================================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
       HEADER SECTION
============================================================ */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.5rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo__image {
  height: 90px;
  width: auto;
  max-width: 100%;
  display: block;
}

.nav-list-desktop ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
}

.nav-list-desktop a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #111111;
  transition: var(--transition-base);
  white-space: nowrap;
}

.nav-list-desktop a:hover {
  color: var(--color-primary);
}

.nav-list-desktop .btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  text-transform: uppercase;
  padding: 0.5rem 1.5rem;
}

/* ============================================================
       FOOTER SECTION
============================================================ */
.site-footer {
  background: var(--color-gray-900);
  color: #aaa;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.footer-logo__image {
  max-width: 300px;
  width: 100%;
  height: auto;
}

.footer-brand p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #aaa;
}

.footer-heading {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: var(--transition-base);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
}

.footer-bottom__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-bottom__links a {
  color: #aaa;
  text-decoration: none;
  transition: var(--transition-base);
}

.footer-bottom__links a:hover {
  color: var(--color-primary);
}

.separator {
  color: #555;
}

.footer-bottom__copyright {
  opacity: 0.7;
}

.gold-text {
  color: #b8860b !important;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ============================================================
       RESPONSIVE STYLES
============================================================ */
@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .section {
    padding: 3rem 0;
  }

  .tutorials-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .category-tab {
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
  }

  .help-section {
    padding: 2rem 1.5rem;
  }

  .help-section h3 {
    font-size: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .site-logo__image {
    height: 50px;
  }

  .nav-list-desktop ul {
    gap: 0.75rem;
  }

  .nav-list-desktop a {
    font-size: 0.7rem;
  }

  .footer-bottom__links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .separator {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .tutorial-card h3 {
    font-size: 1rem;
    padding-right: 0;
  }

  .tutorial-card__badge {
    position: static;
    display: inline-block;
    margin-bottom: 0.5rem;
  }

  .help-links {
    flex-direction: column;
  }

  .help-links .btn {
    width: 100%;
    text-align: center;
  }

  .gold-text {
    font-size: 15px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .tutorials-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }
}

/* ============================================================
       PRINT STYLES
============================================================ */
@media print {
  .site-header,
  .nav-list-desktop,
  .btn,
  .site-footer,
  .category-tabs,
  .search-bar,
  .load-more-container,
  .help-section {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .tutorial-card {
    break-inside: avoid;
    border: 1px solid #ddd;
    box-shadow: none;
  }
}