/* Generator with Real Fonts */

.generator-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.controls-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.controls-section h2 {
    color: #FF1744;
    margin-bottom: 1.5rem;
    font-size: 1.875rem;
    text-align: center;
}

.control-group {
    margin-bottom: 1.5rem;
}

.control-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

#textInput {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.125rem;
    transition: all 0.3s;
}

#textInput:focus {
    outline: none;
    border-color: #FF1744;
    box-shadow: 0 0 0 3px rgba(255, 23, 68, 0.1);
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.bg-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

input[type="color"] {
    width: 60px;
    height: 40px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s;
}

input[type="color"]:hover {
    transform: scale(1.1);
}

.size-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

input[type="range"] {
    flex: 1;
}

#fontSizeValue {
    min-width: 50px;
    text-align: center;
    font-weight: 600;
    color: #FF1744;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.weight-options {
    display: flex;
    gap: 0.5rem;
}

.weight-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.weight-btn:hover {
    border-color: #FF1744;
}

.weight-btn.active {
    background: #FF1744;
    color: white;
    border-color: #FF1744;
}

.preview-section h2 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.875rem;
    text-align: center;
}

.font-previews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.font-preview-card {
    background: #fafafa;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
}

.font-preview-card:hover {
    border-color: #FF1744;
    box-shadow: 0 6px 20px rgba(255, 23, 68, 0.15);
    transform: translateY(-4px);
}

.preview-header {
    margin-bottom: 1rem;
}

.preview-header h3 {
    color: #FF1744;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.preview-description {
    color: #666;
    font-size: 0.875rem;
}

.preview-display {
    background: white;
    border-radius: 8px;
    padding: 2rem 1rem;
    margin-bottom: 1rem;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.font-preview {
    text-align: center;
    line-height: 1.4;
    padding: 0.5rem;
    transition: all 0.3s;
}

.preview-actions {
    display: flex;
    justify-content: center;
}

.btn-download {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #FF1744 0%, #FF6B6B 100%);
    color: white;
    width: 100%;
    justify-content: center;
}

.btn-download:hover {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF1744 100%);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 23, 68, 0.3);
}

.btn-download span {
    font-size: 1.125rem;
}

.download-all-section {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.btn-download-all {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #FF1744 0%, #FF6B6B 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-download-all:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 23, 68, 0.3);
}

.btn-download-all span {
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .font-previews-grid {
        grid-template-columns: 1fr;
    }
    
    .controls-grid {
        grid-template-columns: 1fr;
    }
    
    .weight-options {
        flex-direction: column;
    }
    
    .weight-btn {
        width: 100%;
    }
}