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

:root {
    --color-primary: #4caf50;
    --color-text-dark: #333;
    --color-text-light: #777;
    --color-bg-light: #ffffff;
    --color-bg-muted: #f7f9fc;
    --color-bg-sidebar: #1e1e1e;
    --color-bg-letters: #1c1c1c;
    --color-border-light: #ccc;
    --color-border-muted: #eee;
    --color-shadow-light: rgba(0, 0, 0, 0.06);
    --color-shadow-strong: rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    margin: 0;
}

/* HEADER */
.site-header-modern {
    background-color: var(--color-bg-light);
    padding: 20px 0;
    box-shadow: 0 2px 8px var(--color-shadow-light);
    font-family: 'Poppins', sans-serif;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container-modern {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 48px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.menu-modern {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.menu-modern li a {
    color: var(--color-text-dark);
    font-weight: 500;
    text-decoration: none;
    padding: 6px 8px;
    transition: color 0.3s ease;
}

.menu-modern li a:hover {
    color: var(--color-primary);
}

/* Hamburger button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 3px;
    background-color: var(--color-text-dark);
    border-radius: 2px;
    transition: 0.3s;
}

/* Mobile styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .main-nav-modern {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--color-bg-light);
        transform: translateY(-200%);
        transition: transform 0.3s ease;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .main-nav-modern.open {
        transform: translateY(0);
    }

    .menu-modern {
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 1.5rem;
    }

    .menu-modern li a {
        font-size: 1.2rem;
    }

    /* Hamburger animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* INFO SECTION */
.info-modern {
    background-color: var(--color-bg-muted);
    margin: 0 auto;
    padding: 30px 0;
}

.info-heading {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--color-text-dark);
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 700px;
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
}

.info-list li {
    margin-bottom: 16px;
    padding-left: 1.5rem;
    position: relative;
}

/* FAQ */
.faq-modern {
    background-color: var(--color-bg-light);
    padding: 60px 20px;
    border-top: 1px solid var(--color-border-muted);
}

.faq-heading {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
    color: var(--color-text-dark);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item h3 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 1rem;
    color: #444;
    line-height: 1.5;
}

/* FOOTER */
.footer-modern {
    background-color: #f0f0f0;
    padding: 20px 0;
    text-align: center;
    font-size: 0.95rem;
    color: var(--color-text-light);
    border-top: 1px solid #ddd;
}

/* Reuse container style */
.container-modern,
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* LETTER GENERATOR */
.letter-generator {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
}

.letter-generator h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
    color: #222;
}

.letter-generator p {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* FLEX CONTAINER FOR SIDEBAR + VIEW */
.row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 40px;
    flex-wrap: nowrap; /* ważne żeby nie łamało */
}

/* SIDEBAR */
.sidebar {
    background-color: var(--color-bg-sidebar);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--color-shadow-strong);
    width: 300px;
    box-sizing: border-box;
    color: white;
}

/* Każdy kontener w sidebarze */
.sidebar .input-container,
.sidebar .controls > div {
    margin-bottom: 20px;
}

/* Etykiety */
.sidebar label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--color-primary);
}

/* Inputy / selecty / kolory */
.sidebar input[type="text"],
.sidebar input[type="color"],
.sidebar select {
    width: 100%;
    padding: 10px;
    background-color: #2b2b2b;
    color: white;
    border: 1px solid #555;
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

input::placeholder {
    color: #fff;
    opacity: 1;
}

.sidebar input[type="text"]:focus,
.sidebar select:focus {
    border-color: var(--color-primary);
}

.sidebar input:hover,
.sidebar select:hover {
    border-color: var(--color-primary);
}

/* Przyciski radio do tła */
.background-option input {
    display: none;
}

.background-option span {
    border-radius: 6px;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.background-option span:hover {
    transform: scale(1.05);
}

/* Separator między sekcjami w sidebarze */
.sidebar .controls > div:not(:last-child) {
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

/* VIEW (główna zawartość) */
.view {
    flex: 1;
    min-width: 0; /* zapobiega rozjechaniu flexa */
}

/* Input w widoku */
.input-container input[type="text"] {
    width: 90%;
    padding: 12px;
    border: 1px solid var(--color-border-light);
    border-radius: 6px;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.controls label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    color: var(--color-primary);
}

/* Selekcje */
.color-selector,
.size-selector,
.font-selector,
.background-selector,
.background-size-selector {
    margin-bottom: 20px;
}

input[type="color"],
select {
    width: 100%;
    padding: 8px;
    border: 1px solid #aaa;
    border-radius: 4px;
}

/* Opcje tła */
.background-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Kontener liter */
.letters-container {
    min-height: 200px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: var(--color-bg-letters);
    border-radius: 12px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease;
}

/* Pojedyncza litera */
.letter-box {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 100px;
    margin: 4px;
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    background-color: #fafafa;
    font-weight: bold;
    transition: transform 0.2s ease-in-out;
    cursor: default;
}

.letter-box:hover {
    transform: scale(1.05);
}

/* Licznik */
.counter {
    margin-top: 20px;
    font-size: 1rem;
    color: #555;
}

/* Przycisk */
button {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background-color: var(--color-primary);
    color: white;
    font-size: 1.1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

button:hover:enabled {
    background-color: #45a045;
}

/* Kontener video */
.video-container {
    margin-top: 30px;
    text-align: center;
}

.video-container video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--color-border-light);
}

/* Ostatni wiersz (karty zamówienia) */
.row-last {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Styl pojedynczej karty zamówienia */
.last-order {
    background: var(--color-bg-light);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--color-border-muted);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Animacja hover */
.last-order:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Teksty w karcie */
.last-order p {
    margin: 6px 0;
    color: var(--color-text-dark);
    font-size: 0.95rem;
}

/* Nagłówek w karcie */
.last-order span {
    font-weight: bold;
    display: inline-block;
    margin-top: 5px;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
    .row {
        flex-direction: column;
    }

    .sidebar, .view {
        width: 100%;
        max-width: none;
        margin-right: 0;
        margin-bottom: 20px;
    }
}

.user-reviews {
  max-width: 700px;
  margin: 0 auto 60px;
  padding: 0 20px;
  text-align: center;
  font-family: 'Georgia', serif;
}

.user-reviews h3 {
  font-size: 2rem;
  color: #4caf50;
  margin-bottom: 30px;
  font-weight: 600;
}

.user-reviews blockquote {
  position: relative;
  background-color: #e8f5e9; /* jasne, przyjemne zielone tło */
  border-left: 6px solid #4caf50;
  border-radius: 12px;
  padding: 20px 30px 20px 40px;
  margin: 20px 0;
  font-style: italic;
  color: #2e7d32;
  box-shadow: 0 4px 8px rgba(76, 175, 80, 0.1);
  transition: background-color 0.3s ease;
}

.user-reviews blockquote:hover {
  background-color: #c8e6c9;
}

.user-reviews .quote-icon {
  position: absolute;
  left: 15px;
  top: 15px;
  font-size: 2.5rem;
  color: #4caf50;
  font-family: 'Georgia', serif;
  user-select: none;
}

/* Ogólny styl list */
.info-modern ul {
  list-style: none; /* usuwa kropki */
  padding-left: 40px;
  max-width: 700px;
  margin: 0 20px 40px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Niestandardowe markery listy */
.info-modern ul li {
  position: relative;
  margin-bottom: 15px;
  padding-left: 30px;
}

/* Zamiast tradycyjnych kropek, używamy ikon SVG lub Unicode */
.info-modern ul li::before {
  content: "✓"; /* Możesz użyć też innego symbolu, np. "→", "•", "✔" */
  position: absolute;
  left: 0;
  top: 2px;
  color: #4caf50;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Efekt hover na elemencie listy */
.info-modern ul li:hover {
  color: #388e3c;
  transition: color 0.3s ease;
  cursor: default;
}

