@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600&display=swap');

:root {
  --blue: #7ec4cf;
  --yellow: #ffe066;
  --pink: #ffb3c6;
  --green: #b5ead7;
  --purple: #cdb4db;
  --bg: #f9f6ff;
  --card: #f4f4f4;
  --text: #222;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Fredoka', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

header, header h1, header h1 a, nav, nav .menu-link, nav .menu-link svg, nav .menu-link:hover, .hamburger, .hamburger span {
  all: unset;
  box-sizing: border-box;
}

header {
  background: var(--blue);
  color: #fff;
  padding: 0.6em 0 0 0;
  text-align: center;
  position: relative;
}
header h1 a {
  color: #fff;
  text-decoration: none;
  font-size: 2.2em;
  font-weight: 600;
  letter-spacing: 2px;
}
nav {
  margin-top: 1em;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5em;
}
nav .menu-link {
  background: none;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--blue);
  border-radius: 22px;
  padding: 0.5em 1.2em;
  box-shadow: none;
  font-size: 1.05em;
  transition: background 0.18s, color 0.18s, border 0.18s;
}
nav .menu-link:hover {
  background: var(--blue);
  color: #fff;
  text-decoration: none;
}
nav .menu-link svg {
  width: 1.3em;
  height: 1.3em;
  display: inline-block;
}

/* Hamburger menu for mobile */
.hamburger {
  display: none;
  position: absolute;
  right: 1.5em;
  top: 1.5em;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 4px;
  margin: 5px 0;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width: 800px) {
  nav {
    flex-direction: column;
    align-items: center;
    gap: 0.7em;
    background: var(--blue);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding-bottom: 1em;
  }
  nav.active {
    display: flex;
  }
  .hamburger {
    display: block;
  }
}

main {
  padding: 0.5em 1em 2em 1em;
  max-width: 1100px;
  margin: 0 auto;
  margin-top: 0;
}
main h1 {
  margin-top: 0.2em;
  margin-bottom: 0.7em;
}

/* HERO SECTION */
.hero {
  background: var(--blue);
  color: #fff;
  border-radius: 32px;
  padding: 3em 2em 2em 2em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2em;
  margin-bottom: 2em;
}
.hero h2 {
  font-size: 2.5em;
  font-weight: 600;
  margin-bottom: 0.3em;
  line-height: 1.1;
}
.hero p {
  font-size: 1.3em;
  max-width: 500px;
}
.cta-btn {
  display: inline-block;
  margin-top: 1.2em;
  padding: 0.9em 2em;
  background: var(--yellow);
  color: var(--text);
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1em;
  text-decoration: none;
  box-shadow: 0 2px 8px #0002;
  transition: background 0.2s;
}
.cta-btn:hover {
  background: var(--pink);
  color: var(--text);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2em;
  margin-top: 2em;
}
.card {
  background: #fff;
  border-radius: 18px;
  border: 1.5px solid #e0e0e0;
  box-shadow: 0 2px 8px #0001;
  padding: 1.5em 1em 1em 1em;
  text-align: center;
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.card:hover {
  box-shadow: 0 6px 24px #0002;
  border-color: var(--blue);
  transform: translateY(-2px) scale(1.03);
  text-decoration: none;
}
.card .icon {
  width: 56px;
  height: 56px;
  margin-bottom: 0.7em;
  display: inline-block;
}
.card h2 {
  font-size: 1.2em;
  margin: 0.2em 0 0.5em 0;
  color: var(--blue);
}
.card p {
  color: #666;
  font-size: 1em;
}

footer {
  background: var(--purple);
  color: #fff;
  padding: 1.2em;
  text-align: center;
  border-radius: 24px 24px 0 0;
  margin-top: 3em;
}

img {
  max-width: 100%;
  border-radius: 10px;
}

/* Utility */
.hide {
  display: none !important;
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 2em 1em 1.5em 1em;
  }
  .hero img {
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .hero h2 {
    font-size: 1.5em;
  }
  .hero p {
    font-size: 1em;
  }
  .card .icon {
    width: 40px;
    height: 40px;
  }
  .card h2 {
    font-size: 1.1em;
  }
}

/***** HEADER MODERN *****/
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px #0001;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7em 2em;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.7em;
  text-decoration: none;
}
.logo-img {
  height: 44px;
  width: auto;
  border-radius: 12px;
  background: none;
  box-shadow: none;
}
.logo-text {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 1px;
  background: none;
  box-shadow: none;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.menu-link, .btn-link {
  background: none;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 0;
  padding: 0.3em 0.7em;
  box-shadow: none;
  transition: color 0.18s, text-decoration 0.18s;
}
.menu-link:hover, .btn-link:hover {
  color: var(--blue);
  text-decoration: underline;
  background: none;
}
.user-actions {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-left: 1.2em;
  padding-left: 1.2em;
  border-left: 2px solid #e0e0e0;
}
@media (max-width: 800px) {
  .user-actions {
    border-left: none;
    margin-left: 0;
    padding-left: 0;
    margin-top: 1em;
  }
}

.menu-toggle { display: none; }
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  cursor: pointer;
  margin-left: 1em;
  background: none;
  border: none;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 4px;
  margin: 4px 0;
  background: var(--blue);
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width: 900px) {
  .header-inner {
    padding: 0.7em 1em;
  }
}
@media (max-width: 800px) {
  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(255,255,255,0.97);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2em;
    padding: 1.2em 1.5em 1.2em 1.5em;
    box-shadow: 0 4px 24px #0002;
    display: none;
  }
  .main-nav.active {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .user-actions {
    border-left: none;
    margin-left: 0;
    padding-left: 0;
    margin-top: 1em;
  }
}


/* === UNIFICARE STIL ȘI POINTER PENTRU TOATE LINK-URILE DIN HEADER === */
.main-header .menu-link,
.main-header .main-links a,
.main-header .user-actions a {
  /* același stil ca .btn-link / .btn-link overrides */
  background: none;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 0;
  padding: 0.3em 0.7em;
  box-shadow: none;
  font-size: 1em;
  transition: color 0.18s, text-decoration 0.18s;
  display: inline-block;
  cursor: pointer;        /* pointer în loc de text cursor */
}

.main-header .menu-link:hover,
.main-header .main-links a:hover,
.main-header .user-actions a:hover {
  color: var(--blue);
  text-decoration: underline;
  background: none;
}

.home-main {
  margin-top: 2.5em;
}

.index-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2em;
  margin: 2em 0;
}
.index-gallery img {
  max-width: 100%;
  max-height: 180px;
  border-radius: 12px;
  background: #fafafa;
}

/* Galerie desene de colorat (comun home + galerie) */
.desene-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2em;
  margin: 2em 0;
}
.desen-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  box-shadow: 0 2px 8px #0001;
  padding: 1em;
  text-align: center;
  transition: box-shadow .2s;
}
.desen-card:hover {
  box-shadow: 0 4px 16px #0002;
}
.desen-card img {
  max-width: 100%;
  max-height: 180px;
  margin-bottom: 1em;
  border-radius: 12px;
  background: #fafafa;
}
.desen-title {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 0.5em;
  color: #222;
}
.desen-cat {
  font-size: 0.95em;
  color: #7ec4cf;
  margin-bottom: 0.5em;
}
@media (max-width: 600px) {
  .desene-grid { grid-template-columns: 1fr; }
}

