/* Plain Vision AI Logo Generator - Front-end Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

.pvd-logo-generator-wrapper {
    font-family: 'Libre Baskerville', Georgia, serif;
    color: #102333;
    background-color: #FFFFFF;
    border: 1px solid #18435A;
    border-radius: 4px;
    padding: 32px;
    max-width: 1240px;
    margin: 0 auto;
    box-sizing: border-box;
}

.pvd-logo-generator-wrapper * {
    box-sizing: border-box;
}

/* Header */
.pvd-logo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #F7F3EA;
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.pvd-logo-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #3E92CC;
    background-color: #EEF7FC;
    padding: 4px 10px;
    border-radius: 2px;
    margin-bottom: 8px;
}

.pvd-logo-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 32px;
    font-weight: 700;
    color: #18435A;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.pvd-logo-subtitle {
    font-size: 14px;
    color: #2A628F;
    margin: 0;
    line-height: 1.5;
}

.pvd-logo-allowance-badge {
    background-color: #F7F3EA;
    border: 1px solid #18435A;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 12px;
    text-align: right;
    white-space: nowrap;
}

.pvd-allowance-label {
    color: #18435A;
    font-weight: 700;
    margin-right: 4px;
}

.pvd-allowance-count {
    font-weight: 700;
    color: #3E92CC;
    font-size: 16px;
}

/* Grid & Layout */
.pvd-logo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width: 868px) {
    .pvd-logo-grid {
        grid-template-columns: 1fr;
    }
}

.pvd-form-group {
    margin-bottom: 20px;
}

.pvd-form-row {
    display: flex;
    gap: 16px;
}

.pvd-col-half {
    flex: 1;
}

.pvd-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #18435A;
    margin-bottom: 6px;
}

.pvd-required {
    color: #c53030;
}

.pvd-input,
.pvd-select,
.pvd-textarea {
    width: 100%;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 13px;
    color: #102333;
    background-color: #FFFFFF;
    border: 1px solid #18435A;
    border-radius: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pvd-input:focus,
.pvd-select:focus,
.pvd-textarea:focus {
    border-color: #3E92CC;
    outline: none;
    box-shadow: 0 0 0 2px rgba(62, 146, 204, 0.2);
}

.pvd-field-hint {
    display: block;
    font-size: 11px;
    color: #2A628F;
    margin-top: 4px;
    font-style: italic;
}

/* Color Picker */
.pvd-color-picker-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pvd-color-input {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #18435A;
    border-radius: 4px;
    cursor: pointer;
    background: none;
}

.pvd-hex-input {
    flex: 1;
    padding: 9px 10px;
    font-size: 13px;
    border: 1px solid #18435A;
    border-radius: 4px;
}

.pvd-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
    background-color: #F7F3EA;
    border-radius: 4px;
}

.pvd-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #102333;
    cursor: pointer;
}

/* Footer & Buttons */
.pvd-form-footer {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #EEF7FC;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pvd-disclaimer-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #2A628F;
    line-height: 1.4;
}

.pvd-action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.pvd-btn {
    padding: 12px 24px;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.pvd-btn-primary {
    background-color: #18435A;
    color: #FFFFFF;
    border-color: #18435A;
}

.pvd-btn-primary:hover {
    background-color: #13293D;
    border-color: #13293D;
}

.pvd-btn-secondary {
    background-color: #F7F3EA;
    color: #18435A;
    border-color: #18435A;
}

.pvd-btn-secondary:hover {
    background-color: #EEF7FC;
}

.pvd-btn-outline {
    background-color: #FFFFFF;
    color: #18435A;
    border-color: #18435A;
}

.pvd-btn-outline:hover {
    background-color: #EEF7FC;
}

/* Status & Alerts */
.pvd-status-region {
    margin-top: 24px;
    padding: 16px;
    border-radius: 4px;
    font-size: 13px;
}

.pvd-status-loading {
    background-color: #EEF7FC;
    border: 1px solid #3E92CC;
    color: #18435A;
}

.pvd-status-error {
    background-color: #fff5f5;
    border: 1px solid #feb2b2;
    color: #9b2c2c;
}

/* Result Preview Stage */
.pvd-result-stage {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 2px solid #18435A;
}

.pvd-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.pvd-result-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    color: #18435A;
    margin: 0;
}

.pvd-result-badge {
    font-size: 11px;
    background-color: #EEF7FC;
    color: #3E92CC;
    padding: 4px 10px;
    border-radius: 2px;
    font-weight: 700;
}

.pvd-canvas-preview-box {
    background-color: #F7F3EA;
    border: 1px dashed #18435A;
    border-radius: 4px;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.pvd-canvas-preview-box svg {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 12px rgba(16, 35, 51, 0.08);
}

.pvd-download-bar {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}
