/* Dalreoch Font Foundry Styles */
.dff-container {
    max-width: 1000px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
}

.dff-header {
    text-align: center;
    margin-bottom: 30px;
}

.dff-logo {
    margin-bottom: 15px;
}

.dff-logo img {
    max-width: 200px;
    height: auto;
}

/* Tabs Navigation */
.dff-tabs .tabs-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #333;
}

.dff-tabs .tabs-nav li {
    margin: 0;
}

.dff-tabs .tabs-nav a {
    display: block;
    padding: 12px 24px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dff-tabs .tabs-nav li.active a {
    background: #333;
    color: #fff;
}

/* Tab Content */
.dff-tabs .tab-content {
    display: none;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dff-tabs .tab-content.active {
    display: block;
}

/* Font Category Selector */
.font-category-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.category-option {
    flex: 1;
    min-width: 200px;
}

.category-option input[type="radio"] {
    display: none;
}

.category-option label {
    display: block;
    padding: 15px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-option input[type="radio"]:checked + label {
    border-color: #333;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-preview {
    font-size: 48px;
    text-align: center;
    margin-bottom: 10px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-preview.sans-serif {
    font-family: Arial, Helvetica, sans-serif;
}

.category-preview.serif {
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.category-preview.script {
    font-family: 'Brush Script MT', cursive;
}

.category-preview.display {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

.category-option span {
    display: block;
    text-align: center;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Form Elements */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.character-set-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.character-set-options label {
    font-weight: normal;
    display: flex;
    align-items: center;
}

.character-set-options input {
    margin-right: 8px;
}

/* Upload Options */
.upload-options {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.upload-option {
    flex: 1;
    min-width: 300px;
    padding: 25px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.upload-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.upload-option h3 {
    margin-top: 0;
    color: #333;
    font-size: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.upload-option input[type="file"] {
    width: 100%;
    padding: 12px 0;
    margin-bottom: 20px;
}

/* Font Preview */
.font-preview-container {
    margin-top: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

#font-preview-text {
    font-size: 28px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 4px;
    min-height: 120px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.font-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.variant-preview {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.variant-preview h4 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    font-size: 18px;
}

/* Download Section */
#download-section {
    margin-top: 40px;
    text-align: center;
    padding: 30px;
    background: #f0f9ff;
    border-radius: 5px;
    border: 1px solid #d0e8ff;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.download-buttons .button {
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
}

/* Loading Indicator */
#loading-indicator {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 5px solid #333;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}