/* frontend/style.css - V2.2 Arhitectul Digital - Cu design nou pentru buton */

/* --- Variabile & Setări Globale (Neschimbat) --- */
:root {
    --bg-dark: #0D1B2A;
    --bg-light: #1B263B;
    --bg-glass: rgba(27, 38, 59, 0.6);
    --text-primary: #E0E1DD;
    --text-secondary: #a0a0b4;
    --accent-blue: #36A2EB;
    --accent-gold: #FFC107;
    --border-color: rgba(54, 162, 235, 0.2);
    --gradient-bg: linear-gradient(45deg, #0D1B2A, #1B263B);
}

/* ... Restul stilurilor generale (body, h1, etc.) rămân neschimbate ... */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--gradient-bg); font-family: 'Lato', sans-serif; color: var(--text-primary); line-height: 1.7; overflow-x: hidden; }
body::before { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 20% 20%, rgba(54, 162, 235, 0.15), transparent 30%), radial-gradient(circle at 80% 70%, rgba(255, 193, 7, 0.12), transparent 25%); animation: move-glow 25s infinite alternate ease-in-out; z-index: -1; }
@keyframes move-glow { from { transform: translate(0, 0); } to { transform: translate(5vw, 10vh); } }
.container { max-width: 1100px; margin: 0 auto; padding: 100px 20px; position: relative; z-index: 1; }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; text-shadow: 0 0 15px rgba(54, 162, 235, 0.2); }
h2 { font-size: 2.8rem; margin-bottom: 20px; text-align: center; }
.subtitle { font-size: 1.25rem; color: var(--text-secondary); max-width: 650px; margin: 0 auto 40px auto; text-align: center; }


/* --- Hero Section (Cu butonul nou) --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    margin-bottom: 20px;
    line-height: 1.2;
}

/* MODIFICAT: Stil nou pentru butonul principal */
.cta-button {
    display: inline-block;
    background: var(--accent-blue);
    color: white;
    padding: 14px 35px;
    border-radius: 50px; /* Creează forma de pastilă */
    text-decoration: none;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    border: none; /* Fără margine vizibilă */
    cursor: pointer;
    /* Efectul de strălucire (glow) din imagine */
    box-shadow: 0 0 15px 1px rgba(54, 162, 235, 0.6);
    transition: all 0.3s ease-in-out;
}

.cta-button:hover {
    /* Intensificăm efectul la hover pentru o experiență mai bună */
    transform: scale(1.05);
    box-shadow: 0 0 25px 4px rgba(54, 162, 235, 0.7);
}


.hero-content .cursor { display: inline-block; width: 4px; height: 1em; background-color: var(--accent-gold); animation: blink 0.8s infinite; vertical-align: bottom; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }


/* --- Restul stilurilor (Trust, Chat, Footer, etc.) rămân exact la fel --- */
section { border-bottom: 1px solid rgba(54, 162, 235, 0.1); }
section:last-of-type { border-bottom: none; }
#trust .trust-icons { display: flex; justify-content: center; gap: 50px; margin-top: 50px; flex-wrap: wrap; }
#trust .trust-icons div { font-size: 1.1rem; color: var(--text-secondary); text-align: center; }
#trust .trust-icons i { color: var(--accent-blue); font-size: 1.8rem; display: block; margin-bottom: 10px; }

.hidden { display: none !important; }
#chat-widget { position: fixed; bottom: 30px; right: 30px; z-index: 1000; }
#chat-button { width: 60px; height: 60px; background-color: var(--accent-blue); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: all 0.3s ease; }
#chat-button:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(54, 162, 235, 0.5); }
#chat-window { width: 370px; height: 600px; max-height: 80vh; background: var(--bg-glass); border-radius: 15px; border: 1px solid var(--border-color); box-shadow: 0 10px 40px rgba(0,0,0,0.6); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(15px); display: flex; flex-direction: column; transition: opacity 0.3s ease-out, transform 0.3s ease-out; transform-origin: bottom right; overflow: hidden; }
#chat-window.hidden { opacity: 0; transform: translateY(20px) scale(0.95); pointer-events: none; }
#chat-header { padding: 15px 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
#chat-header h4 { margin: 0; }
#close-chat { font-size: 24px; cursor: pointer; color: var(--text-secondary); transition: color 0.2s; }
#close-chat:hover { color: var(--text-primary); }
#chat-body { flex-grow: 1; padding: 20px; overflow-y: auto; min-height: 0; }
.chat-message { display: flex; margin-bottom: 15px; }
.chat-message p { padding: 10px 15px; max-width: 85%; word-wrap: break-word; margin: 0; line-height: 1.5; }
.chat-message.ai { justify-content: flex-start; }
.chat-message.ai p { background-color: var(--bg-light); color: var(--text-primary); border-radius: 15px 15px 15px 0; }
.chat-message.user { justify-content: flex-end; }
.chat-message.user p { background-color: var(--accent-blue); color: white; border-radius: 15px 15px 0 15px; }
.chat-message.typing p { font-style: italic; color: var(--text-secondary); background: transparent; }
.chat-message.ai p strong { color: var(--accent-gold); font-weight: 700; }
#chat-footer { display: flex; padding: 15px; border-top: 1px solid var(--border-color); flex-shrink: 0; }
#chat-input { flex-grow: 1; background: rgba(0,0,0,0.2); border: 1px solid var(--border-color); border-radius: 20px; padding: 10px 15px; font-size: 1rem; margin-right: 10px; color: var(--text-primary); font-family: 'Lato', sans-serif; }
#chat-input:focus { outline: none; border-color: var(--accent-blue); }
#send-button { background-color: var(--accent-blue); color: white; border: none; border-radius: 50%; width: 42px; height: 42px; cursor: pointer; font-size: 16px; flex-shrink: 0; transition: background-color 0.2s; }
#send-button:hover { background-color: #4db1ec; }
footer { text-align: center; padding: 40px 20px; color: var(--text-secondary); background-color: transparent; border-top: 1px solid var(--border-color); }
@media (max-width: 768px) {
    h2 { font-size: 2.2rem; }
    .container { padding: 80px 20px; }
    #chat-widget { bottom: 15px; right: 15px; width: calc(100% - 30px); }
    #chat-button { position: fixed; bottom: 15px; right: 15px; }
    #chat-window { width: 100%; height: 75vh; max-height: 80vh; position: fixed; bottom: 15px; right: 15px; border-radius: 15px; }
}

/* --- Buton Programeaza-te care duce spre calendar --- */
.calendar-button {
  display: block;              /* Face ca butonul să ocupe un rând complet */
  width: 250px;                /* Lățimea butonului */
  margin: 30px auto;           /* Auto centrează butonul orizontal */
  padding: 15px 0;             /* Spațiu vertical pentru text */
  text-align: center;          /* Textul la mijloc */
  background-color: #1976d2;   /* Albastru */
  color: white;                /* Text alb */
  text-decoration: none;       /* Scoate linia sub text */
  font-size: 18px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.calendar-button:hover {
  background-color: #145a9e;   /* Albastru mai închis la hover */
}

/* Butonul CTA din chat (moștenește variabile existente) */
.cta-chat-btn {
    display:inline-block; margin:8px 0;
    background: var(--accent-blue); color:#fff;
    padding:10px 22px; border-radius:30px; font-weight:700;
    text-decoration:none; transition:transform .2s, box-shadow .2s;
}
.cta-chat-btn:hover {
    transform:scale(1.05);
    box-shadow:0 0 12px rgba(54,162,235,.6);
}
/* ——— Chat CTA: Deschide video ——— */
#chat-window .cta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

#chat-window .cta-button.chat-cta {
  /* pornește de la stilul .cta-button existent, dar mai compact pentru chat */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  line-height: 1;
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 0 12px rgba(54, 162, 235, 0.5);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  margin-top: 6px;
}

#chat-window .cta-button.chat-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(54, 162, 235, 0.7);
}

#chat-window .cta-button.chat-cta:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

#chat-window .cta-button.chat-cta::before {
  content: "▶";
  font-size: 0.95rem;
  opacity: 0.95;
}

/* Variantă „secondary” (dacă vrei un stil mai discret lângă butonul principal) */
#chat-window .cta-button.chat-cta.secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: none;
}

#chat-window .cta-button.chat-cta.secondary:hover {
  background: rgba(54, 162, 235, 0.12);
}


/* --- Card demo video --- */
#demo-video .video-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 26px;
  align-items: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

#demo-video .video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  border-radius: 12px;
  background: radial-gradient(circle at 40% 40%, rgba(54,162,235,.35), rgba(27,38,59,.6));
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

#demo-video .video-icon {
  font-size: 56px;
  color: #fff;
  text-shadow: 0 0 18px rgba(54,162,235,.8);
  transform: translateY(0);
  transition: transform .25s ease;
}
#demo-video .video-thumb:hover .video-icon { transform: translateY(-3px); }

#demo-video .video-meta h3 { margin-bottom: 8px; }
#demo-video .video-desc { color: var(--text-secondary); margin: 6px 0 16px; }

@media (max-width: 900px) {
  #demo-video .video-card { grid-template-columns: 1fr; }
}

/* ——— Chat CTA: Deschide video ——— */
#chat-window .cta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

#chat-window .cta-button.chat-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  line-height: 1;
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 0 12px rgba(54, 162, 235, 0.5);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  margin-top: 6px;
}

#chat-window .cta-button.chat-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(54, 162, 235, 0.7);
}

#chat-window .cta-button.chat-cta:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

#chat-window .cta-button.chat-cta::before {
  content: "▶";
  font-size: 0.95rem;
  opacity: 0.95;
}

/* Variantă secundară (mai discretă) */
#chat-window .cta-button.chat-cta.secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: none;
}

#chat-window .cta-button.chat-cta.secondary:hover {
  background: rgba(54, 162, 235, 0.12);
}


