/* ============================================================
   privacy-policy-generator / style.css
   Prefix: ppg-
   ============================================================ */

/* --- Container --- */
.ppg-container {
    max-width: 1000px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --- Disclaimer Box (prominent warning) --- */
.ppg-disclaimer {
    border: 2px solid #d32f2f;
    background: #fef2f2;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 32px;
}

.ppg-disclaimer h3 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: #d32f2f;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ppg-disclaimer ul {
    margin: 0;
    padding: 0 0 0 20px;
    list-style-type: disc;
}

.ppg-disclaimer ul li {
    font-size: 14px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 4px;
}

.ppg-disclaimer ul li:last-child {
    margin-bottom: 0;
}

/* --- Document Type Tabs --- */
.ppg-doc-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
}

.ppg-doc-tab {
    flex: 1;
    padding: 13px 16px;
    border: 2px solid #007bff;
    background: #fff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    color: #007bff;
    line-height: 1.2;
}

.ppg-doc-tab:first-child {
    border-radius: 8px 0 0 8px;
    border-right: 1px solid #007bff;
}

.ppg-doc-tab:last-child {
    border-radius: 0 8px 8px 0;
    border-left: 1px solid #007bff;
}

.ppg-doc-tab.active {
    background: #007bff;
    color: #fff;
}

.ppg-doc-tab:hover:not(.active) {
    background: #e8f0fe;
}

/* --- Main Grid (always single column) --- */
.ppg-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.ppg-form-area {
    width: 100%;
    background: #fdfdfd;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
    box-sizing: border-box;
}

.ppg-preview-area {
    width: 100%;
    box-sizing: border-box;
}

/* --- Tab Panes --- */
.ppg-tab-pane {
    display: none;
}

.ppg-tab-pane.active {
    display: block;
}

/* --- Section Titles --- */
.ppg-section-title {
    margin-top: 24px;
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 700;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
    display: block;
    color: #1a1a1a;
}

.ppg-section-title:first-of-type {
    margin-top: 0;
}

/* --- Input Groups --- */
.ppg-input-group {
    margin-bottom: 14px;
}

.ppg-input-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
    color: #333;
}

.ppg-optional {
    color: #888;
    font-size: 11px;
    font-weight: 400;
    margin-left: 4px;
}

.ppg-input,
.ppg-select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    color: #1a1a1a;
}

.ppg-input:focus,
.ppg-select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* --- Checkbox Grid --- */
.ppg-checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    margin-top: 4px;
}

.ppg-checkbox-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background 0.15s;
}

.ppg-checkbox-item:hover {
    background: #f0f4ff;
}

.ppg-checkbox-item input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: #007bff;
    flex-shrink: 0;
}

/* Radio buttons (site type) */
.ppg-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.ppg-radio-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #333;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.ppg-radio-item:has(input:checked) {
    border-color: #007bff;
    background: #e8f0fe;
    color: #007bff;
    font-weight: 600;
}

.ppg-radio-item input[type="radio"] {
    accent-color: #007bff;
}

/* Hint text */
.ppg-hint {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
    display: block;
    line-height: 1.5;
}

/* --- Preview Box --- */
.ppg-preview-label {
    font-size: 12px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.ppg-preview-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 24px;
    max-height: 500px;
    overflow-y: auto;
    font-size: 13.5px;
    line-height: 1.85;
    color: #222;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ppg-preview-box h2 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bff;
}

.ppg-preview-box .ppg-doc-meta {
    font-size: 12px;
    color: #777;
    margin-bottom: 16px;
    display: block;
}

.ppg-preview-box h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 18px 0 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e0e0e0;
}

.ppg-preview-box p {
    margin: 0 0 10px;
}

.ppg-preview-box ul {
    margin: 0 0 10px;
    padding-left: 20px;
}

.ppg-preview-box ul li {
    margin-bottom: 3px;
}

.ppg-preview-empty {
    color: #aaa;
    font-style: italic;
    text-align: center;
    padding: 40px 0;
}

/* --- Output Format Tabs --- */
.ppg-output-format-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 0;
}

.ppg-format-tab {
    padding: 6px 18px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    transition: all 0.2s;
    border-bottom: none;
}

.ppg-format-tab.active {
    background: #24292e;
    color: #fff;
    border-color: #24292e;
}

/* --- Code Output Area --- */
.ppg-code-area {
    margin-top: 40px;
}

.ppg-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #24292e;
    padding: 10px 16px;
    border-top-right-radius: 6px;
    color: #fff;
    gap: 10px;
    /* top-left radius removed since tabs sit above */
}

.ppg-code-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #c9d1d9;
}

.ppg-copy-btn {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 5px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.ppg-copy-btn:hover {
    background: #0056b3;
}

.ppg-copy-btn.copied {
    background: #28a745;
}

.ppg-code-content {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 18px 20px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    margin: 0;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 12.5px;
    line-height: 1.7;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    min-height: 120px;
    max-height: 500px;
    overflow-y: auto;
}

/* Syntax highlight */
.ppg-hl-tag {
    color: #cba6f7;
}

.ppg-hl-attr {
    color: #89b4fa;
}

.ppg-hl-val {
    color: #a6e3a1;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .ppg-checkbox-grid {
        grid-template-columns: 1fr;
    }

    .ppg-code-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}