/* Public Styles for Fontenot - WordPress Font Manager */

.fontenot-preview-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    color: #333;
}

.fontenot-preview-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    align-items: end;
}

.fontenot-preview-controls label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 0.95em;
}

.fontenot-preview-controls select,
.fontenot-preview-controls input[type="text"],
.fontenot-preview-controls input[type="search"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    color: #333;
    background-color: #f9f9f9;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fontenot-preview-controls select:focus,
.fontenot-preview-controls input[type="text"]:focus,
.fontenot-preview-controls input[type="search"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

.fontenot-font-size-slider {
    width: calc(100% - 60px); /* Adjust width to make space for px value */
    vertical-align: middle;
    margin-right: 10px;
    height: 3px;
    background: #ededed;
}

.fontenot-font-size-value {
    display: inline-block;
    min-width: 40px; /* Ensure space for value */
    text-align: right;
    font-weight: 600;
    color: #007bff;
}

.fontenot-search-input-wrapper {
    position: relative;
}

.fontenot-search-input-wrapper .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.fontenot-search-input-wrapper input[type="search"] {
    padding-left: 40px; /* Make space for the icon */
}

.fontenot-hide-unavailable-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-top: 5px;
}

.fontenot-hide-unavailable-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}

.fontenot-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 25px;
}

.fontenot-font-card {
    background-color: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 15px;
}

.fontenot-font-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.fontenot-font-name {
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #333;
    word-break: break-word;
}

.fontenot-font-sample {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 4px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    word-break: break-word;
    line-height: 1.3;
    color: #222;
}

.fontenot-not-installed-badge {
    font-size: 0.75em;
    padding: 3px 8px;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
}

.fontenot-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
    color: #666;
    font-size: 1.1em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fontenot-preview-grid {
    grid-template-columns: 1fr;
    display: grid;
    gap: 25px;
}

}

/* Download Button Styles */
.fontenot-font-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.fontenot-download-btn {
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.3s;
}

.fontenot-download-btn:hover {
    background: #005177;
}

.fontenot-download-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Modal Styles */
.fontenot-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.fontenot-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
}

.fontenot-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.fontenot-modal-close:hover {
    color: black;
}

.fontenot-download-options {
    margin-top: 20px;
}

.fontenot-download-info {
    margin-bottom: 15px;
}

.fontenot-download-formats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.fontenot-download-format {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.fontenot-download-format:hover {
    background: #005177;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .fontenot-modal-content {
        background-color: #1e1e1e;
        color: #fff;
    }

    .fontenot-modal-close {
        color: #fff;
    }

    .fontenot-modal-close:hover {
        color: #ccc;
    }

    .fontenot-download-format {
        background: #005177;
    }

    .fontenot-download-format:hover {
        background: #0073aa;
    }
} 