/* ----------------------------- */
/* New Font Selector Styles      */
/* ----------------------------- */

/* Modal Backdrop */
.font-selector-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

/* Modal Content Box */
.font-selector-modal .modal-content {
    background: rgba(10, 10, 10, 0.35);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

/* Modal Header */
.font-selector-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.font-selector-modal .modal-header h2 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
}

.font-selector-modal .close-button {
    font-size: 2em;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: color 0.2s ease;
}

.font-selector-modal .close-button:hover {
    color: #fff;
}

/* Main Content Area */
.style-selector-main-content {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 20px;
    overflow-y: auto; /* Enable scrolling for content */
}

#font-selector-container {
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

.font-category {
    margin-top: 20px;
    margin-bottom: 10px;
}

.font-category h3 {
    color: #fff;
    font-size: 1.2em;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.font-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.font-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-size: 1.5em; /* Example, will be overridden by specific font styles */
    color: #fff;
    overflow: hidden;
    position: relative;
}

.font-card:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(0, 191, 255, 0.5);
    transform: translateY(-3px);
}

.font-card.selected {
    border-color: #00BFFF;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.7);
    background-color: rgba(0, 191, 255, 0.1);
}

.font-card::after {
    content: attr(data-font-name);
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    font-size: 12px;
    font-family: 'Montserrat', sans-serif; /* Use a consistent font for labels */
    color: rgba(255, 255, 255, 0.6);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
} 