/* Custom Web Fonts for Accurate Preview */

/* Load actual TTF fonts for web preview to match PDF output exactly */
/* Fonts are listed alphabetically */

/* Androgyne Web Font */
@font-face {
    font-family: 'Androgyne';
    src: url('../fonts/Androgyne_TB.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Beth Hand Web Font */
@font-face {
    font-family: 'Beth Hand';
    src: url('../fonts/Bethhrg_.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* DK Cool Crayon Web Font */
@font-face {
    font-family: 'DK Cool Crayon';
    src: url('../fonts/DK Cool Crayon.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Fineliner Script Web Font */
@font-face {
    font-family: 'Fineliner Script';
    src: url('../fonts/Fineliner_Script.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Holidays Homework Web Font */
@font-face {
    font-family: 'Holidays Homework';
    src: url('../fonts/Holidays Homework.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Lazing Sunny Web Font */
@font-face {
    font-family: 'Lazing Sunny';
    src: url('../fonts/lazing_on_a_sunny_afternoon.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Learning Curve Web Font */
@font-face {
    font-family: 'Learning Curve';
    src: url('../fonts/learning_curve_regular_ot_tt.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Learning Curve Bold Web Font */
@font-face {
    font-family: 'Learning Curve';
    src: url('../fonts/learning_curve_bold_ot_tt.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Pacifico Web Font */
@font-face {
    font-family: 'Pacifico';
    src: url('../fonts/Pacifico.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Font CSS Classes - Alphabetically Ordered */

/* Androgyne - actual web font */
.wcpp-font-preview-androgyne,
canvas[data-font="Androgyne"],
.wcpp-font-androgyne {
    font-family: 'Androgyne', Arial, "Helvetica Neue", Helvetica, sans-serif !important;
    font-weight: normal;
}

/* Beth Hand - actual web font */
.wcpp-font-preview-bethhand,
canvas[data-font="Beth Hand"],
.wcpp-font-bethhand {
    font-family: 'Beth Hand', cursive, "Brush Script MT", "Lucida Handwriting", fantasy, Arial, sans-serif !important;
    font-weight: normal;
}

/* DK Cool Crayon - actual web font */
.wcpp-font-preview-dkcoolcrayon,
canvas[data-font="DK Cool Crayon"],
.wcpp-font-dkcoolcrayon {
    font-family: 'DK Cool Crayon', "Comic Sans MS", "Chalkduster", "Bradley Hand", cursive, Arial, sans-serif !important;
    font-weight: normal;
}

/* Fineliner Script - actual web font */
.wcpp-font-preview-finelinescript,
canvas[data-font="Fineliner Script"],
.wcpp-font-finelinescript {
    font-family: 'Fineliner Script', cursive, "Brush Script MT", fantasy, Arial, sans-serif !important;
    font-weight: normal;
}

/* Holidays Homework - actual web font */
.wcpp-font-preview-holidayshomework,
canvas[data-font="Holidays Homework"],
.wcpp-font-holidayshomework {
    font-family: 'Holidays Homework', cursive, "Brush Script MT", "Lucida Handwriting", "Apple Chancery", fantasy, Arial, sans-serif !important;
    font-style: normal;
}

/* Lazing Sunny - actual web font */
.wcpp-font-preview-lazingsunny,
canvas[data-font="Lazing Sunny"],
.wcpp-font-lazingsunny {
    font-family: 'Lazing Sunny', cursive, "Comic Sans MS", "Chalkduster", fantasy, Arial, sans-serif !important;
    font-weight: normal;
}

/* Learning Curve - actual web font */
.wcpp-font-preview-learningcurve,
canvas[data-font="Learning Curve"],
.wcpp-font-learningcurve {
    font-family: 'Learning Curve', cursive, "Comic Sans MS", "Bradley Hand", fantasy, Arial, sans-serif !important;
    font-weight: normal;
}

/* Learning Curve Bold - actual web font */
.wcpp-font-preview-learningcurvebold,
canvas[data-font="Learning Curve Bold"],
.wcpp-font-learningcurvebold {
    font-family: 'Learning Curve', cursive, "Comic Sans MS", "Bradley Hand", fantasy, Arial, sans-serif !important;
    font-weight: bold;
}

/* Pacifico - actual web font */
.wcpp-font-preview-pacifico,
canvas[data-font="Pacifico"],
.wcpp-font-pacifico {
    font-family: 'Pacifico', cursive, "Brush Script MT", fantasy, Arial, sans-serif !important;
    font-weight: normal;
}

/* Font preview styles for admin interface */
.wcpp-custom-font-preview {
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

.wcpp-custom-font-preview h4 {
    margin: 0 0 5px 0;
    color: #0073aa;
    font-size: 14px;
}

.wcpp-custom-font-preview .font-sample {
    font-size: 18px;
    margin: 5px 0;
}

.wcpp-custom-font-preview .font-info {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Admin font selection dropdown styling */
select[onchange*="fontFamily"] option[value="DK Cool Crayon"] {
    font-weight: bold;
}

select[onchange*="fontFamily"] option[value="Holidays Homework"] {
    font-style: italic;
}

select[onchange*="fontFamily"] option[value="Androgyne"] {
    font-weight: normal;
}
