/* Generator dyplomów PDF — style */

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Lato', system-ui, -apple-system, sans-serif;
    color: #222;
    background: #f6f7fb;
    line-height: 1.5;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-header .logo img { max-height: 50px; }
.main-nav .menu {
    list-style: none; margin: 0; padding: 0;
    display: flex; gap: 18px;
}
.main-nav .menu a {
    color: #222; text-decoration: none; font-weight: 700; font-size: 14px;
}
.main-nav .menu a:hover { color: #2980b9; }
.menu-toggle {
    display: none;
    background: none; border: none; font-size: 24px; cursor: pointer;
}

/* GENERATOR */
.diploma-generator {
    padding: 30px 0 50px;
}
.diploma-generator h1 {
    font-size: 32px; margin: 0 0 10px;
}
.diploma-generator .lead {
    color: #555; max-width: 800px; margin: 0 0 24px;
}

.dg-row {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 30px;
    align-items: flex-start;
}

.dg-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.dg-sidebar h3 {
    margin: 18px 0 10px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2980b9;
}
.dg-sidebar h3:first-child { margin-top: 0; }

.dg-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.dg-chip {
    border: 1px solid #d4d8e0;
    background: #fff;
    color: #444;
    border-radius: 999px;
    padding: 4px 12px;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.dg-chip:hover { background: #f0f3f9; }
.dg-chip.active {
    background: #2980b9;
    border-color: #2980b9;
    color: #fff;
}

.dg-templates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 8px;
}
.dg-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #888;
    font-size: 13px;
    padding: 20px 0;
    margin: 0;
}
.dg-template {
    border: 2px solid #e1e4ea;
    background: #fff;
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font: inherit;
}
.dg-template:hover { transform: translateY(-2px); }
.dg-template.active {
    border-color: #2980b9;
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.18);
}
.dg-template img {
    width: 100%;
    aspect-ratio: 210 / 297;
    object-fit: cover;
    background: #fafafa;
    border-radius: 4px;
}
.dg-template span {
    font-size: 12px;
    text-align: center;
    color: #444;
}

.dg-field {
    display: block;
    margin-bottom: 12px;
}
.dg-field > span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #444;
}
.dg-field input[type="text"],
.dg-field textarea,
.dg-field select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d4d8e0;
    border-radius: 6px;
    font: inherit;
    font-size: 14px;
    background: #fff;
}
.dg-field input[type="text"]:focus,
.dg-field textarea:focus,
.dg-field select:focus {
    outline: none;
    border-color: #2980b9;
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.15);
}
.dg-field input[type="color"] {
    width: 100%;
    height: 36px;
    border: 1px solid #d4d8e0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}
.dg-field textarea { resize: vertical; }
.dg-counter {
    display: block;
    text-align: right;
    color: #888;
    font-size: 11px;
    margin-top: 2px;
}

.dg-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* PREVIEW */
.dg-preview-wrap {
    position: sticky;
    top: 20px;
}
.dg-preview-wrap h3 {
    margin: 0 0 10px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2980b9;
}
.dg-preview {
    width: 100%;
    aspect-ratio: 210 / 297;
    background-size: cover;
    background-position: center;
    background-color: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}
.dg-preview-empty {
    width: 100%;
    aspect-ratio: 210 / 297;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px dashed #c8cdd6;
    color: #888;
    border-radius: 4px;
}
.dg-zone {
    /* style ustawiane inline z Vue */
}

.dg-price {
    margin-top: 18px;
    text-align: center;
    font-size: 22px !important;
    color: #222 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
.dg-price span { color: #c0392b; font-weight: 700; }

.dg-btn-primary {
    display: block;
    width: 100%;
    padding: 14px 20px;
    margin-top: 10px;
    background: #c0392b;
    color: #fff;
    border: none;
    border-radius: 8px;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.15s;
}
.dg-btn-primary:hover:not(:disabled) { background: #a93226; }
.dg-btn-primary:disabled {
    background: #aab1be;
    cursor: not-allowed;
}

/* SECTION HEADERS — wspólne dla info i faq */
.section-header {
    text-align: center;
    margin: 0 auto 36px;
    max-width: 720px;
}
.section-eyebrow {
    display: inline-block;
    margin: 0 0 8px;
    padding: 4px 12px;
    background: rgba(41, 128, 185, 0.1);
    color: #2980b9;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.section-header h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    color: #1a2233;
    letter-spacing: -0.4px;
}

/* INFO — feature cards z numerami */
.info {
    background: #fff;
    padding: 64px 0;
    margin-top: 40px;
}
.feature-grid {
    list-style: none;
    counter-reset: feat;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}
.feature-grid li {
    position: relative;
    background: #fff;
    border: 1px solid #e6eaf2;
    border-radius: 14px;
    padding: 24px 22px 22px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature-grid li:hover {
    transform: translateY(-4px);
    border-color: #c0d6e8;
    box-shadow: 0 12px 28px rgba(20, 35, 70, 0.07);
}
.feature-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #2980b9 0%, #4aa3df 100%);
    color: #fff;
    border-radius: 10px;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 14px;
    box-shadow: 0 4px 10px rgba(41, 128, 185, 0.25);
}
.feature-grid h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #1a2233;
}
.feature-grid p {
    margin: 0;
    color: #586173;
    line-height: 1.55;
    font-size: 14px;
}

/* FAQ */
#faq {
    background: linear-gradient(180deg, #f6f8fc 0%, #eef2f8 100%);
    padding: 72px 0;
}
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    position: relative;
    background: #fff;
    border: 1px solid #e1e6ef;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background 0.2s;
}
.faq-item[open] {
    border-color: #cfdbeb;
    box-shadow: 0 8px 24px rgba(20, 35, 70, 0.08);
}
.faq-item[open]::before { background: #2980b9; }
.faq-item > summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 56px 20px 24px;
    font-weight: 600;
    font-size: 16px;
    color: #1a2233;
    position: relative;
    user-select: none;
    transition: background 0.15s;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { background: #f9fbfd; }
.faq-item > summary::after {
    content: "";
    position: absolute;
    right: 24px;
    top: 50%;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    background: #f1f4fa;
    border-radius: 50%;
    transition: background 0.2s;
}
.faq-item > summary::before {
    content: "";
    position: absolute;
    right: 36px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #4a5468;
    border-bottom: 2px solid #4a5468;
    transform: translateY(-75%) rotate(45deg);
    transition: transform 0.25s ease, border-color 0.2s;
    z-index: 1;
}
.faq-item[open] > summary::after { background: #eaf2fa; }
.faq-item[open] > summary::before {
    transform: translateY(-25%) rotate(-135deg);
    border-color: #2980b9;
}
.faq-item > p {
    margin: 0;
    padding: 0 24px 22px;
    color: #4a5468;
    line-height: 1.65;
    font-size: 15px;
}

footer {
    background: #1f2733;
    color: #c8cdd6;
    padding: 18px 0;
    text-align: center;
    font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .dg-row { grid-template-columns: 1fr; }
    .dg-preview-wrap { position: static; }
    .menu-toggle { display: block; }
    .main-nav .menu {
        display: none; flex-direction: column;
        position: absolute; right: 0; top: 60px;
        background: #fff; padding: 12px 20px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    }
    .main-nav .menu.active { display: flex; }
}

/* STATUS PAGE */
.status-info, .success-message, .pending-message, .error-message {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    text-align: center;
    margin: 30px auto;
    max-width: 600px;
}
.success-message h1 { color: #27ae60; }
.error-message h1 { color: #c0392b; }
.success-message button {
    margin-top: 18px;
    padding: 12px 28px;
    background: #2980b9;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}
.success-message button:hover { background: #21618c; }
.back-link { text-align: center; margin: 20px; }
.back-link a { color: #2980b9; }
