/*
 * user.css - Slackware Community Forge custom styles
 * Placed at: $GITEA_CUSTOM/public/assets/css/user.css
 *
 * Loaded automatically by Forgejo after its own stylesheets.
 * All custom selectors are prefixed sw- to avoid conflicts with
 * Forgejo's Fomantic-UI classes.
 *
 * Color palette:
 *   --sw-blue       #24579C   primary brand blue
 *   --sw-blue-dark  #1a3e74   darker shade for gradients and headings
 *   --sw-blue-mid   #1e4d8c   mid-point for hover states
 *   --sw-blue-light #dde8f5   light tint for backgrounds and borders
 *   --sw-blue-faint #f0f5fb   very light wash for alternate sections
 */

/* ------------------------------------------------------------------ */
/* CSS custom properties - edit these to adjust the whole theme        */
/* ------------------------------------------------------------------ */

:root {
  --sw-blue:       #24579C;
  --sw-blue-dark:  #1a3e74;
  --sw-blue-mid:   #1e4d8c;
  --sw-blue-light: #dde8f5;
  --sw-blue-faint: #f0f5fb;
}

/* ------------------------------------------------------------------ */
/* Signed-in fallback (should rarely be seen)                          */
/* ------------------------------------------------------------------ */

.sw-signed-fallback {
  padding: 2rem 0;
  color: #555;
}

/* ------------------------------------------------------------------ */
/* Overall page wrapper                                                */
/* ------------------------------------------------------------------ */

.sw-forge-home {
  /* Remove any default padding the .home class might apply */
  padding: 0;
  margin: 0;
}

/* ------------------------------------------------------------------ */
/* Hero section                                                        */
/* ------------------------------------------------------------------ */

.sw-hero {
  background: linear-gradient(150deg, var(--sw-blue-dark) 0%, var(--sw-blue) 100%);
  padding: 4rem 0 3.5rem;
  text-align: center;
}

/* Wordmark: CSS text rather than an image, so no font file dependency  */
.sw-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: 1.75rem;
  line-height: 1;
}

.sw-wordmark-main {
  font-family: 'Arial Black', 'Arial Bold', Impact, Arial, sans-serif;
  font-weight: 900;
  font-size: 3.75rem;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.sw-wordmark-sub {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.80);
  letter-spacing: 0.30em;
  text-transform: uppercase;
}

/* Tagline */
.sw-tagline {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  line-height: 1.55;
  max-width: 540px;
  margin: 0 auto 2.25rem;
  padding: 0 1rem;
}

/* Sign-in button and "no account" note */
.sw-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.sw-btn-signin.ui.button {
  background-color: #ffffff !important;
  color: var(--sw-blue) !important;
  font-weight: 700 !important;
  border: none !important;
  padding: 0.85em 2.2em !important;
}
.sw-btn-signin.ui.button:hover {
  background-color: var(--sw-blue-light) !important;
  color: var(--sw-blue-dark) !important;
}

.sw-no-account {
  color: rgba(255, 255, 255, 0.80);
  font-size: 0.95rem;
}
.sw-no-account a {
  color: #ffffff;
  text-decoration: underline;
}
.sw-no-account a:hover {
  color: var(--sw-blue-light);
}

/* ------------------------------------------------------------------ */
/* Shared section heading style                                         */
/* ------------------------------------------------------------------ */

.sw-section-heading {
  color: var(--sw-blue-dark) !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.10em !important;
  border-bottom: 2px solid var(--sw-blue-light) !important;
  padding-bottom: 0.6rem !important;
  margin-bottom: 1.75rem !important;
}

/* ------------------------------------------------------------------ */
/* Features section                                                    */
/* ------------------------------------------------------------------ */

.sw-features {
  background-color: var(--sw-blue-faint);
  border-top: 1px solid var(--sw-blue-light);
  border-bottom: 1px solid var(--sw-blue-light);
  padding: 3rem 0;
}

.sw-card {
  background: #ffffff;
  border: 1px solid var(--sw-blue-light);
  border-top: 3px solid var(--sw-blue);
  border-radius: 3px;
  padding: 1.5rem 1.5rem 1.25rem;
  height: 100%;
  box-sizing: border-box;
}

.sw-card h3 {
  color: var(--sw-blue-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.sw-card p {
  color: #444;
  font-size: 0.93rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.sw-card p:last-child {
  margin-bottom: 0;
}

/* docker pull example line in the registry card */
.sw-pull-example {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  background: var(--sw-blue-faint);
  border: 1px solid var(--sw-blue-light);
  border-radius: 3px;
  padding: 0.4rem 0.6rem;
  color: var(--sw-blue-dark);
  word-break: break-all;
}

/* ------------------------------------------------------------------ */
/* About Slackware section                                             */
/* ------------------------------------------------------------------ */

.sw-about {
  background: #ffffff;
  padding: 3rem 0;
}

.sw-about-text p {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 720px;
  margin-bottom: 1rem;
}
.sw-about-text p:last-child {
  margin-bottom: 0;
}

.sw-about-text code {
  background: var(--sw-blue-faint);
  border: 1px solid var(--sw-blue-light);
  border-radius: 3px;
  padding: 0.1em 0.35em;
  font-size: 0.88em;
  color: var(--sw-blue-dark);
}

/* ------------------------------------------------------------------ */
/* Community links section                                             */
/* ------------------------------------------------------------------ */

.sw-community {
  background: var(--sw-blue-faint);
  border-top: 1px solid var(--sw-blue-light);
  border-bottom: 1px solid var(--sw-blue-light);
  padding: 3rem 0;
}

.sw-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sw-link-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #dde3ea;
}
.sw-link-list li:last-child {
  border-bottom: none;
}

.sw-link-list a {
  color: var(--sw-blue);
  font-weight: 600;
  font-size: 0.93rem;
  text-decoration: none;
}
.sw-link-list a:hover {
  color: var(--sw-blue-dark);
  text-decoration: underline;
}

.sw-link-list span {
  color: #666;
  font-size: 0.84rem;
  line-height: 1.4;
}

/* ------------------------------------------------------------------ */
/* Account access section                                              */
/* ------------------------------------------------------------------ */

.sw-access {
  background: #ffffff;
  padding: 3rem 0 3.5rem;
}

.sw-access p {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 1.25rem;
}

.sw-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sw-contact-list li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: #444;
}

.sw-contact-list code {
  background: var(--sw-blue-faint);
  border: 1px solid var(--sw-blue-light);
  border-radius: 3px;
  padding: 0.1em 0.4em;
  font-size: 0.90em;
  color: var(--sw-blue-dark);
}

/* ------------------------------------------------------------------ */
/* Responsive adjustments                                              */
/* ------------------------------------------------------------------ */

@media (max-width: 768px) {
  .sw-wordmark-main {
    font-size: 2.75rem;
  }
  .sw-wordmark-sub {
    letter-spacing: 0.18em;
  }
  .sw-tagline {
    font-size: 1.05rem;
  }
  .sw-hero {
    padding: 3rem 0 2.5rem;
  }
  /* Fomantic stackable grid already handles column stacking;
     add a gap between stacked cards */
  .sw-card {
    margin-bottom: 1rem;
  }
}
/* ------------------------------------------------------------------ */
/* Site-wide footer - rendered on every page via                        */
/* $GITEA_CUSTOM/templates/custom/footer.tmpl                          */
/* ------------------------------------------------------------------ */

.sw-site-footer {
    background: var(--sw-blue);
    border-top: 3px solid var(--sw-blue-dark);
    padding: 1.75rem 0 2rem;
    margin-top: 1.5rem;
}

.sw-site-footer-heading {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.60);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 0.55rem;
    margin-bottom: 1.25rem;
}

.sw-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sw-footer-links li {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sw-footer-links li:last-child {
    border-bottom: none;
}

.sw-footer-links a {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
}
.sw-footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.sw-footer-links span {
    color: rgba(255, 255, 255, 0.50);
    font-size: 0.78rem;
    line-height: 1.35;
}
