/*
Theme Name: Aline Flow Studio
Theme URI: https://aline.ro/
Author: Codex
Author URI: https://openai.com/
Description: Tema WordPress moderna pentru prezentarea si folosirea pluginului Aline Flow CRM.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: aline-flow-studio
*/

:root {
  --afs-bg: #eff8ff;
  --afs-bg-soft: #f9fbff;
  --afs-surface: rgba(255, 255, 255, 0.86);
  --afs-surface-strong: #ffffff;
  --afs-text: #1f2645;
  --afs-muted: #66709b;
  --afs-line: rgba(87, 100, 166, 0.14);
  --afs-accent: #7356ea;
  --afs-accent-2: #a58cff;
  --afs-accent-3: #8ad7ff;
  --afs-deep: #322e72;
  --afs-shadow: 0 22px 60px rgba(75, 90, 150, 0.14);
  --afs-radius-xl: 32px;
  --afs-radius-lg: 24px;
  --afs-radius-md: 18px;
  --afs-container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--afs-text);
  background:
    radial-gradient(circle at 12% 14%, rgba(138, 215, 255, 0.44), transparent 20%),
    radial-gradient(circle at 86% 18%, rgba(165, 140, 255, 0.28), transparent 24%),
    linear-gradient(180deg, #f7fbff 0%, #ecf6ff 48%, #f5f8ff 100%);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.afs-site-shell {
  min-height: 100vh;
}

.afs-container {
  width: min(calc(100% - 32px), var(--afs-container));
  margin: 0 auto;
}

.afs-container.afs-container-full {
  width: min(calc(100% - 20px), 1680px);
}

.afs-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(247, 251, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.74);
}

.afs-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}

.afs-nav-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex: 1;
}

.afs-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.afs-brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: #fff;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--afs-accent), #4b7dff);
  box-shadow: 0 12px 28px rgba(115, 86, 234, 0.28);
}

.afs-brand-copy p,
.afs-brand-copy strong {
  margin: 0;
}

.afs-brand-copy p {
  font-size: 0.78rem;
  color: var(--afs-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.afs-brand-copy strong {
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
}

.afs-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.afs-menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  color: var(--afs-text);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(87, 100, 166, 0.12);
}

.afs-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  border-radius: 999px;
  background: var(--afs-deep);
}

.afs-menu-toggle strong {
  font-size: 0.94rem;
}

.afs-menu a {
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--afs-muted);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.afs-menu a:hover,
.afs-menu .current-menu-item > a,
.afs-menu .current_page_item > a {
  color: var(--afs-text);
  background: rgba(115, 86, 234, 0.08);
  transform: translateY(-1px);
}

.afs-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.afs-button,
.wp-element-button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--afs-accent), #4b7dff);
  box-shadow: 0 16px 34px rgba(115, 86, 234, 0.24);
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.afs-button:hover,
.wp-element-button:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(115, 86, 234, 0.28);
}

.afs-button.is-ghost {
  color: var(--afs-text);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(87, 100, 166, 0.12);
}

.afs-main {
  padding: 42px 0 64px;
}

.afs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 26px;
  align-items: stretch;
  margin-bottom: 28px;
}

.afs-panel {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border-radius: var(--afs-radius-xl);
  background: var(--afs-surface);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--afs-shadow);
  backdrop-filter: blur(18px);
}

.afs-panel::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -54px;
  width: 170px;
  height: 170px;
  border-radius: 36px;
  transform: rotate(18deg);
  opacity: 0.5;
  background: linear-gradient(135deg, rgba(115, 86, 234, 0.34), rgba(138, 215, 255, 0.28));
}

.afs-eyebrow {
  margin: 0 0 10px;
  color: var(--afs-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.afs-hero h1,
.afs-section-title,
.entry-title {
  margin: 0;
  font-family: "Sora", sans-serif;
  line-height: 0.95;
}

.afs-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  max-width: 9ch;
}

.afs-lead {
  max-width: 52ch;
  margin: 18px 0 22px;
  color: var(--afs-muted);
  font-size: 1.05rem;
}

.afs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.afs-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.afs-metric {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(87, 100, 166, 0.08);
}

.afs-metric strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.afs-showcase {
  display: grid;
  gap: 16px;
}

.afs-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.afs-mini-card {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 246, 255, 0.82));
  box-shadow: inset 0 0 0 1px rgba(87, 100, 166, 0.08);
}

.afs-mini-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Sora", sans-serif;
}

.afs-ribbon {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--afs-accent), #00a6ff);
  font-size: 0.82rem;
  font-weight: 700;
}

.afs-section {
  margin-top: 24px;
}

.afs-section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}

.afs-section-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.afs-section-copy {
  max-width: 58ch;
  margin: 10px 0 0;
  color: var(--afs-muted);
}

.afs-feature-grid,
.afs-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.afs-feature-card,
.afs-story-card,
.afs-page-card,
.entry-content > *:not(.alignwide):not(.alignfull) {
  padding: 24px;
  border-radius: var(--afs-radius-lg);
  background: var(--afs-surface);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--afs-shadow);
}

.afs-feature-card h3,
.afs-story-card h3 {
  margin: 0 0 10px;
  font-family: "Sora", sans-serif;
}

.afs-story-card p,
.afs-feature-card p,
.afs-mini-card p,
.afs-section-copy {
  max-width: 44ch;
}

.afs-feature-list,
.afs-quick-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.afs-feature-list li,
.afs-quick-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--afs-line);
}

.afs-feature-list li:last-child,
.afs-quick-list li:last-child {
  border-bottom: 0;
}

.afs-story-card.is-deep {
  color: #eff5ff;
  background: linear-gradient(180deg, #302c6d 0%, #4f48a9 100%);
}

.afs-story-card.is-deep p {
  color: rgba(239, 245, 255, 0.8);
}

.afs-page-shell {
  display: grid;
  gap: 20px;
}

.afs-page-shell.is-crm-fullwidth {
  gap: 0;
}

.afs-page-card .entry-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 14px;
}

.afs-page-card.is-crm-fullwidth {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.entry-content {
  display: grid;
  gap: 18px;
}

.entry-content.is-crm-fullwidth {
  gap: 0;
}

.entry-content > * {
  margin: 0;
}

.entry-content.is-crm-fullwidth > * {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.entry-content ul,
.entry-content ol {
  padding-left: 18px;
}

.alignwide {
  width: min(calc(100% - 32px), calc(var(--afs-container) + 120px));
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100%;
}

.afs-footer {
  padding: 22px 0 36px;
}

.afs-footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--afs-shadow);
}

.afs-footer small {
  color: var(--afs-muted);
}

.afs-login-page {
  min-height: 100vh;
}

.afs-login-shell {
  min-height: 100vh;
  padding: 28px;
  display: grid;
  place-items: center;
}

.afs-login-stage {
  width: min(100%, 1160px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 24px;
}

.afs-login-panel {
  padding: 34px;
  border-radius: var(--afs-radius-xl);
  background: var(--afs-surface);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: var(--afs-shadow);
  backdrop-filter: blur(18px);
}

.afs-login-brand-panel h1 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.98;
  max-width: 11ch;
}

.afs-login-brand-panel .afs-quick-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.afs-login-brand-panel .afs-quick-list li {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(87, 100, 166, 0.08);
}

.afs-login-form-wrap #loginform {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.afs-login-form-wrap label {
  display: block;
  margin-bottom: 8px;
  color: var(--afs-muted);
  font-size: 0.95rem;
}

.afs-login-form-wrap input[type="text"],
.afs-login-form-wrap input[type="password"] {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(87, 100, 166, 0.14);
  background: rgba(255, 255, 255, 0.86);
  color: var(--afs-text);
  font: inherit;
}

.afs-login-form-wrap .login-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--afs-muted);
}

.afs-login-form-wrap .login-remember label {
  margin: 0;
}

.afs-login-form-wrap .login-submit {
  margin: 6px 0 0;
}

.afs-login-form-wrap .button-primary {
  width: 100%;
}

@media (max-width: 1100px) {
  .afs-header-bar {
    align-items: flex-start;
  }

  .afs-nav-panel {
    gap: 12px;
  }

  .afs-menu a {
    padding: 10px 14px;
  }
}

@media (max-width: 960px) {
  .afs-hero,
  .afs-feature-grid,
  .afs-story-grid,
  .afs-login-stage {
    grid-template-columns: 1fr;
  }

  .afs-card-grid,
  .afs-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .afs-footer-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .afs-header-bar {
    position: relative;
    align-items: center;
    min-height: 78px;
  }

  .afs-menu-toggle {
    display: inline-flex;
  }

  .afs-nav-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 18px;
    border-radius: 24px;
    background: rgba(249, 251, 255, 0.96);
    box-shadow: var(--afs-shadow);
    border: 1px solid rgba(255, 255, 255, 0.72);
  }

  .afs-header.is-menu-open .afs-nav-panel {
    display: flex;
  }

  .afs-menu,
  .afs-header-actions {
    width: 100%;
  }

  .afs-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .afs-menu a {
    width: 100%;
    text-align: left;
  }

  .afs-header-actions .afs-button {
    width: 100%;
  }

  .afs-hero h1 {
    max-width: 11ch;
    font-size: clamp(2.5rem, 7vw, 4rem);
  }

  .afs-lead {
    max-width: 46ch;
  }
}

@media (max-width: 640px) {
  .afs-main {
    padding-top: 24px;
  }

  .afs-login-shell {
    padding: 14px;
  }

  .afs-panel,
  .afs-feature-card,
  .afs-story-card,
  .afs-page-card,
  .entry-content > *:not(.alignwide):not(.alignfull),
  .afs-login-panel {
    padding: 20px;
    border-radius: 22px;
  }

  .afs-card-grid,
  .afs-metrics {
    grid-template-columns: 1fr;
  }

  .afs-actions {
    width: 100%;
  }

  .afs-hero h1 {
    max-width: 100%;
    font-size: clamp(2.1rem, 10vw, 3rem);
    line-height: 1.02;
  }

  .afs-lead,
  .afs-story-card p,
  .afs-feature-card p,
  .afs-mini-card p,
  .afs-section-copy {
    max-width: 100%;
  }

  .afs-menu-toggle {
    min-height: 44px;
    padding: 0 14px;
  }
}

@media (max-width: 375px) {
  .afs-container {
    width: min(calc(100% - 20px), var(--afs-container));
  }

  .afs-panel,
  .afs-feature-card,
  .afs-story-card,
  .afs-page-card,
  .entry-content > *:not(.alignwide):not(.alignfull),
  .afs-login-panel {
    padding: 18px;
  }
}
