/* Fonts Pro Frontend Styles */

/* Typography Controls */
.fonts-pro-typography-controls {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.fonts-pro-typography-controls h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.fonts-pro-control-group {
    margin-bottom: 15px;
}

.fonts-pro-control-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.fonts-pro-control-group select,
.fonts-pro-control-group input[type="text"],
.fonts-pro-control-group input[type="number"] {
    width: 100%;
    max-width: 200px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.fonts-pro-color-picker {
    width: 50px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
}

/* Font Preview */
.fonts-pro-preview {
    margin: 20px 0;
    padding: 20px;
    border: 2px solid #0073aa;
    border-radius: 8px;
    background: #fff;
}

.fonts-pro-preview h3 {
    margin: 0 0 15px 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.fonts-pro-preview-text {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .fonts-pro-typography-controls {
        margin: 10px 0;
        padding: 10px;
    }
    
    .fonts-pro-control-group select,
    .fonts-pro-control-group input[type="text"],
    .fonts-pro-control-group input[type="number"] {
        max-width: 100%;
    }
    
    .fonts-pro-preview {
        margin: 10px 0;
        padding: 15px;
    }
    
    .fonts-pro-preview-text {
        font-size: 16px;
    }
}

/* Font Loading Optimization */
.fonts-pro-loading {
    font-display: swap;
}

/* Custom Font Classes */
.fonts-pro-custom-font {
    /* This class can be applied to elements to use custom fonts */
}

/* Typography Utilities */
.fonts-pro-text-small {
    font-size: 0.875em;
}

.fonts-pro-text-large {
    font-size: 1.125em;
}

.fonts-pro-text-bold {
    font-weight: bold;
}

.fonts-pro-text-italic {
    font-style: italic;
}

.fonts-pro-text-uppercase {
    text-transform: uppercase;
}

.fonts-pro-text-lowercase {
    text-transform: lowercase;
}

.fonts-pro-text-capitalize {
    text-transform: capitalize;
}

.fonts-pro-line-height-tight {
    line-height: 1.2;
}

.fonts-pro-line-height-normal {
    line-height: 1.5;
}

.fonts-pro-line-height-loose {
    line-height: 1.8;
}

.fonts-pro-letter-spacing-tight {
    letter-spacing: -0.5px;
}

.fonts-pro-letter-spacing-normal {
    letter-spacing: 0;
}

.fonts-pro-letter-spacing-wide {
    letter-spacing: 1px;
}

/* Color Utilities */
.fonts-pro-color-primary {
    color: #0073aa;
}

.fonts-pro-color-secondary {
    color: #666;
}

.fonts-pro-color-success {
    color: #28a745;
}

.fonts-pro-color-warning {
    color: #ffc107;
}

.fonts-pro-color-danger {
    color: #dc3545;
}

/* Font Weight Utilities */
.fonts-pro-weight-light {
    font-weight: 300;
}

.fonts-pro-weight-normal {
    font-weight: 400;
}

.fonts-pro-weight-medium {
    font-weight: 500;
}

.fonts-pro-weight-semibold {
    font-weight: 600;
}

.fonts-pro-weight-bold {
    font-weight: 700;
}

.fonts-pro-weight-black {
    font-weight: 900;
}

/* Font Style Utilities */
.fonts-pro-style-normal {
    font-style: normal;
}

.fonts-pro-style-italic {
    font-style: italic;
}

.fonts-pro-style-oblique {
    font-style: oblique;
}

/* Text Alignment Utilities */
.fonts-pro-text-left {
    text-align: left;
}

.fonts-pro-text-center {
    text-align: center;
}

.fonts-pro-text-right {
    text-align: right;
}

.fonts-pro-text-justify {
    text-align: justify;
}

/* Text Decoration Utilities */
.fonts-pro-text-underline {
    text-decoration: underline;
}

.fonts-pro-text-overline {
    text-decoration: overline;
}

.fonts-pro-text-line-through {
    text-decoration: line-through;
}

.fonts-pro-text-none {
    text-decoration: none;
}

/* Font Size Scale */
.fonts-pro-text-xs {
    font-size: 0.75rem;
}

.fonts-pro-text-sm {
    font-size: 0.875rem;
}

.fonts-pro-text-base {
    font-size: 1rem;
}

.fonts-pro-text-lg {
    font-size: 1.125rem;
}

.fonts-pro-text-xl {
    font-size: 1.25rem;
}

.fonts-pro-text-2xl {
    font-size: 1.5rem;
}

.fonts-pro-text-3xl {
    font-size: 1.875rem;
}

.fonts-pro-text-4xl {
    font-size: 2.25rem;
}

.fonts-pro-text-5xl {
    font-size: 3rem;
}

.fonts-pro-text-6xl {
    font-size: 3.75rem;
}

/* Print Styles */
@media print {
    .fonts-pro-typography-controls {
        display: none;
    }
    
    .fonts-pro-preview {
        border: none;
        background: none;
        padding: 0;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .fonts-pro-typography-controls {
        border-color: #000;
    }
    
    .fonts-pro-preview {
        border-color: #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .fonts-pro-typography-controls * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .fonts-pro-typography-controls {
        background: #2d2d2d;
        border-color: #444;
        color: #fff;
    }
    
    .fonts-pro-preview {
        background: #2d2d2d;
        border-color: #444;
        color: #fff;
    }
    
    .fonts-pro-control-group label {
        color: #ccc;
    }
    
    .fonts-pro-control-group select,
    .fonts-pro-control-group input[type="text"],
    .fonts-pro-control-group input[type="number"] {
        background: #444;
        border-color: #666;
        color: #fff;
    }
} 