html {
  scroll-behavior: smooth;
}
:root {
    --accent: #2ecc71; /* Verde emerald */
    --dark: #2b2b2b;
    --light: #f9f9f9;
    --text: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: white;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- NAV --- */
header {
    background: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

nav a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--accent);
}

/* --- HERO --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 0;
    background-image: url("img/hero.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover; /* sau contain, în funcție de efectul dorit */
}

.hero .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.hero-text p {
    margin-bottom: 1.5rem;
    color: #555;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.8rem 1.6rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn:hover {
    background: #27ae60;
}

/* --- SECTIONS --- */
section {
    padding: 4rem 0;
    text-align: center;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

/* --- FEATURES --- */
.features .feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.feature {
    flex: 0 0 300px;
    width: 300px;              
    box-sizing: border-box;    
    
    background: white;
    border: 1px solid #eee;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .feature {
        flex: 0 0 90%;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}

.feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.17);
}

.feature h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* Divider cu text între categorii */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3rem 0 2rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--dark);
    position: relative;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    opacity: 0.6;
    margin: 0 1rem;
}

.divider span {
    color: var(--accent);
    font-size: 1rem;
}

/* --- PRICING --- */
.pricing p {
    margin-bottom: 1rem;
    color: #555;
}

/* --- CONTACT --- */
.contact a {
    color: var(--accent);
    font-weight: 600;
}

/* --- FOOTER --- */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 1.2rem 0;
    font-size: 0.9rem;
    margin-top: 3rem;
}
/* --- user box & hover card --- */
.user-box {
  position: relative;
  cursor: pointer;
  display:flex;
  align-items:center;
  gap:10px;
  padding:6px 10px;
  border-radius:6px;
}
.user-box #user-email { font-weight:600; color:var(--dark); }
.user-card {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: white;
  border: 1px solid #eee;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  min-width: 240px;
  display: none;
  z-index: 50;
}
.user-card .uc-row { margin:6px 0; color:#333; font-size:14px; }
.user-box:hover .user-card { display: block; }

/* --- modal styles --- */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  z-index: 100;
}
.modal-content {
  background: white;
  padding: 20px;
  width: 380px;
  border-radius: 10px;
  position: relative;
}
.modal-close {
  position: absolute;
  right: 10px;
  top: 8px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}
.tabs { display:flex; gap:8px; margin-bottom:12px; }
.tabs button { flex:1; padding:8px; border-radius:6px; border:1px solid #eee; background:#fff; cursor:pointer; }
.tabs button.active { background: var(--accent); color:#fff; border-color: var(--accent); }
.form input { width:100%; padding:10px; margin-bottom:10px; border:1px solid #ddd; border-radius:6px; }
.auth-message { margin-top:12px; color: #b71c1c; font-size: 0.95rem; }

/* responsive modal */
@media (max-width: 640px) {
  .modal-content { width: 92%; padding: 16px; }
}
/* --- user box & hover/focus card --- */
.user-box {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.2s;
}

.user-box #user-email {
    font-weight: 600;
    color: var(--dark);
}

/* card cont ascuns implicit */
.user-card {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: white;
    border: 1px solid #eee;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    min-width: 240px;
    display: none;
    z-index: 50;
}

.user-card .uc-row {
    margin: 6px 0;
    color: #333;
    font-size: 14px;
}

/* --- afișează card la hover sau focus --- */
.user-box:hover .user-card,
.user-box:focus-within .user-card {
    display: block;
}

/* optional: efect subtle la hover user-box */
.user-box:hover {
    background: rgba(46, 204, 113, 0.1);
}
