/*
 * Stage11J Maker Unify
 *
 * This stylesheet unifies the visual appearance of the Strefa Twórców
 * hub and its related subpages with the rest of the DRR DAMSON site.
 * It introduces a dark gradient hero, consistent typography, button
 * styles, and card layouts to match the premium look of the updated
 * homepage and categories pages. Existing classes are left untouched
 * so functionality remains the same, while new styles override
 * visual details such as spacing, colour and sizing. Media queries
 * ensure the layout adapts gracefully on smaller screens.
 */

/* Root variables fallback: these will be ignored if already defined
   elsewhere in the site. */
 :root {
  --dark-bg: #0e0e0e;
  --dark-light: #161616;
  --text-light: #c9c9c9;
  --primary-gold: #d4af37;
  --primary-mint: #1ec28b;
 }

/* Hero section unify */
.drr-maker-hero {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.85) 100%);
  color: #fff;
  padding: 3rem 1.5rem;
  text-align: center;
  border-radius: 0.75rem;
}

.drr-maker-hero__kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-gold);
  margin-bottom: 0.4rem;
}

.drr-maker-hero h1 {
  font-size: clamp(1.8rem, 3vw + 1rem, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.drr-maker-hero p {
  font-size: clamp(0.9rem, 1.4vw + 0.6rem, 1.2rem);
  max-width: 800px;
  margin: 0 auto 1.5rem;
  color: var(--text-light);
}

.drr-maker-hero__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Maker button unify */
.drr-maker-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.15s ease-in-out;
}

.drr-maker-btn--mint {
  background-color: var(--primary-mint);
  color: var(--dark-bg);
}

.drr-maker-btn--gold {
  background-color: var(--primary-gold);
  color: var(--dark-bg);
}

.drr-maker-btn:not(.drr-maker-btn--mint):not(.drr-maker-btn--gold) {
  background-color: var(--dark-light);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.drr-maker-btn:hover {
  filter: brightness(1.1);
}

/* Maker grid unify */
.drr-maker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2rem 0;
  justify-content: center;
}

.drr-maker-card {
  background-color: var(--dark-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 1.5rem;
  width: calc(33.333% - 1rem);
  box-sizing: border-box;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  text-decoration: none;
  transition: transform 0.15s ease-in-out;
}

.drr-maker-card:hover {
  transform: translateY(-3px);
}

.drr-maker-card__icon i {
  font-size: 1.5rem;
  color: var(--primary-gold);
}

.drr-maker-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.drr-maker-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

.drr-maker-card span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-gold);
  margin-top: auto;
}

@media (max-width: 900px) {
  .drr-maker-card {
    width: calc(50% - 1rem);
  }
}

@media (max-width: 600px) {
  .drr-maker-card {
    width: 100%;
  }
  .drr-maker-hero {
    padding: 2rem 1rem;
  }
  .drr-maker-hero h1 {
    font-size: 1.8rem;
  }
  .drr-maker-hero p {
    font-size: 0.95rem;
  }
  .drr-maker-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* ------------------------------------------------------------------
 * Additional unify for project pages (SVG/DXF, generatory, kalkulatory, etc.)
 * Many subpages under the Strefa Twórców tree use the `projects-hero`
 * component. To align with the rest of the site, apply a dark gradient
 * background, consistent typography and button styles. This keeps the
 * hero sections visually cohesive with the maker hub and main site.
 */

/* Hero wrapper */
.projects-hero {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.85) 100%);
  color: #fff;
  padding: 3rem 1.5rem;
  border-radius: 0.75rem;
}

/* Eyebrow/kicker above main heading */
.projects-hero .projects-eyebrow {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-gold);
  margin-bottom: 0.4rem;
}

/* Main heading */
.projects-hero h1 {
  font-size: clamp(1.8rem, 3vw + 1rem, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* Lead text */
.projects-hero .projects-lead {
  font-size: clamp(0.9rem, 1.4vw + 0.6rem, 1.2rem);
  max-width: 800px;
  margin: 0 auto 1.5rem;
  color: var(--text-light);
}

/* Hero actions (buttons) */
.projects-hero .projects-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.projects-hero .projects-actions .btn-drr {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.15s ease-in-out;
  background-color: var(--dark-light);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.projects-hero .projects-actions .btn-drr:hover {
  filter: brightness(1.1);
}

.projects-hero .projects-actions .btn-drr.secondary {
  background-color: var(--dark-light);
  color: var(--primary-gold);
  border-color: var(--primary-gold);
}

@media (max-width: 600px) {
  .projects-hero {
    padding: 2rem 1rem;
  }
  .projects-hero h1 {
    font-size: 1.8rem;
  }
  .projects-hero .projects-lead {
    font-size: 0.95rem;
  }
  .projects-hero .projects-actions .btn-drr {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}