
/* General Reset */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #121212;
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
}

body > .container {
  flex: 1; /* Ocupă spațiul rămas între header și footer */
}

/* Main Container */
.container {
  width: 100%;
  max-width: 900px;
  margin: auto;
  padding: 40px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Top Bar */

.top-bar {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 30px;
  padding: 10px 20px;
  background-color: #1a1a1a;
  border-bottom: 1px solid #00ff88;
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.top-bar-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Top Bar Right Links */
.top-bar-right a,
.mobile-menu a {
  color: #00ff88;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.top-bar-right a:hover,
.mobile-menu a:hover {
  background-color: #00cc70;
  color: #000;
}

.top-bar-right span {
  color: #ccc;
  font-size: 14px;
  margin-right: 10px;
}

.top-bar-left img.logo {
  height: 64px;
  width: auto;
}

.desktop-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hamburger {
  display: none;
  font-size: 28px;
  color: #00ff88;
  cursor: pointer;
  margin-left: auto;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #1a1a1a;
  padding: 10px 20px;
  border-top: 1px solid #00ff88;
}

.mobile-menu a {
  padding: 10px 0;
  color: #00ff88;
}

.mobile-menu.show {
  display: flex;
}

/* Auth Box */
.auth-box {
  background-color: #1e1e1e;
  padding: 30px;
  margin: auto;
  width: 100%;
  max-width: 450px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,255,136,0.1);
  text-align: center;
}

.auth-box h3 {
  color: #00ff88;
  margin-bottom: 25px;
  font-size: 24px;
}

/* Form Fields */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  max-width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  background-color: #222;
  color: #fff;
  border: 1px solid #444;
  border-radius: 5px;
}

textarea {
  font-family: monospace;
  height: 200px;
}

/* Buttons */
button, .button {
  padding: 12px 24px;
  background-color: #00ff88;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 16px;
}

button:hover, .button:hover {
  background-color: #00cc70;
}

/* Code Style */
pre, code {
  background-color: #1c1c1c;
  padding: 20px;
  border-radius: 5px;
  color: #0f0;
  font-family: monospace;
  white-space: pre-wrap;   /* păstrează indentarea și linii */
  word-break: break-word;  /* rupe cuvinte foarte lungi */
  overflow-x: auto;        /* scroll dacă e prea lung */
  max-width: 100%;
}

/* Footer */
footer {
  background-color: transparent; /* sau scoate complet linia */
  color: #888;
  font-size: 14px;
  padding: 20px 0;
  text-align: center;
  width: 100%;
  border-top: none;
  display: flex;
  justify-content: center;
}

footer > div {
  max-width: 900px;
  width: 100%;
  background-color: #1a1a1a; /* mutăm aici! */
  border-top: 1px solid #00ff88;
  padding: 20px;
  box-sizing: border-box;
}

footer a {
  color: #00ff88;
  text-decoration: none;
  margin: 0 5px;
}

footer a:hover {
  text-decoration: underline;
}


/* Utility */
.subtitle {
  text-align: center;
  color: #ccc;
  font-size: 1.2em;
  margin-bottom: 20px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.text-center {
  text-align: center;
}

p {
  text-align: justify;
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 20px 0;
}

.card {
  background: #1a1a1a;
  color: #00ff88;
  border: 1px solid #00ff88;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  width: 220px; /* dimensiune fixă pe desktop */
  box-sizing: border-box;
  transition: transform 0.2s;
}
.card:hover {
  transform: scale(1.05);
}

.blog-list article {
  background: #1a1a1a;
  border-left: 4px solid #00ff88;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 6px;
}

.blog-list article h3 {
  margin-top: 0;
}

.blog-list article h3 a {
  color: #00ff88;
  text-decoration: none;
}

.blog-list article h3 a:hover {
  text-decoration: underline;
}

.blog-list article p {
  color: #ccc;
}

.blog-list article small {
  font-size: 12px;
  color: #777;
}


/* Pe mobil: 100% lățime pentru fiecare
/* Responsive */
@media (max-width: 768px) {
  .auth-box, .container {
    padding: 20px;
    max-width: 100%;
  }

.cards-container {
    flex-direction: column;
    align-items: stretch;
  }

  .card {
    width: 100%;
  }

  input, select, textarea {
    max-width: 100%;
  }
  .desktop-menu {
    display: none;
  }

  .hamburger {
    display: block;
    margin-left: auto;
  }

   .top-bar-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }   
    
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-bar-right {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #1a1a1a;
    padding: 10px 20px;
    border-top: 1px solid #00ff88;
  }

  .mobile-menu.show {
    display: flex;
  }
  footer > div {
    padding: 0 10px;
  }

}