/* Font Generator Plugin Styles */
.font-generator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header Styles */
.fg-header {
    text-align: center;
    margin-bottom: 3rem;
}

.fg-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.fg-header-icon svg {
    color: white;
}

.fg-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.fg-description {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.fg-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.fg-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.fg-feature svg {
    color: #6366f1;
}

.fg-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.fg-stat {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    text-align: center;
}

.fg-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 0.25rem;
}

.fg-stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Input Section */
.fg-input-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    padding: 2rem;
    margin-bottom: 2rem;
}

.fg-input-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.fg-input-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fg-input-icon svg {
    color: white;
}

.fg-input-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

#fg-text-input {
    width: 100%;
    height: 120px;
    padding: 1rem;
    font-size: 1.125rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    resize: none;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

#fg-text-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.fg-input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.fg-input-help {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.fg-char-count {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Filters Section */
.fg-filters-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.fg-search-container {
    margin-bottom: 1.5rem;
}

.fg-search-input {
    position: relative;
    max-width: 400px;
}

.fg-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

#fg-search {
    width: 100%;
    padding: 12px 12px 12px 44px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

#fg-search:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.fg-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.fg-category-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f3f4f6;
    color: #374151;
}

.fg-category-btn:hover {
    background: #e5e7eb;
}

.fg-category-btn.active {
    background: #6366f1;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.fg-filter-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.fg-filter-info svg {
    color: #9ca3af;
}

/* Styles Grid */
.fg-styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.fg-style-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.fg-style-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.fg-style-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.fg-style-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fg-style-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fg-style-icon svg {
    color: white;
    width: 20px;
    height: 20px;
}

.fg-style-details h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.fg-style-category {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.fg-style-preview {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    word-break: break-all;
}

.fg-style-preview-text {
    font-size: 1.125rem;
    color: #1f2937;
    line-height: 1.5;
    width: 100%;
}

.fg-style-description {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.fg-style-description svg {
    color: #9ca3af;
    margin-top: 2px;
    flex-shrink: 0;
}

.fg-style-description p {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.fg-copy-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #6366f1;
    color: white;
}

.fg-copy-btn:hover {
    background: #5856eb;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.fg-copy-btn.copied {
    background: #10b981;
    color: white;
}

.fg-copy-btn svg {
    width: 16px;
    height: 16px;
}

/* No Results */
.fg-no-results {
    text-align: center;
    padding: 3rem 1rem;
}

.fg-no-results-icon {
    width: 80px;
    height: 80px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.fg-no-results-icon svg {
    color: #9ca3af;
}

.fg-no-results h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.fg-no-results p {
    color: #6b7280;
    margin: 0;
}

/* Tips Section */
.fg-tips-section {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 16px;
    border: 1px solid #bae6fd;
}

.fg-tips-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.fg-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.fg-tips-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fg-tips-column li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.fg-tips-column li::before {
    content: "•";
    color: #6366f1;
    font-weight: bold;
    margin-top: 2px;
}

/* Category Colors */
.category-mathematical { background: #dbeafe; color: #1e40af; }
.category-decorative { background: #fce7f3; color: #be185d; }
.category-geometric { background: #d1fae5; color: #065f46; }
.category-special { background: #e9d5ff; color: #7c2d12; }
.category-professional { background: #f3f4f6; color: #374151; }

.icon-mathematical { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.icon-decorative { background: linear-gradient(135deg, #ec4899, #be185d); }
.icon-geometric { background: linear-gradient(135deg, #10b981, #047857); }
.icon-special { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.icon-professional { background: linear-gradient(135deg, #6b7280, #4b5563); }

/* Responsive Design */
@media (max-width: 768px) {
    .font-generator-container {
        padding: 1rem;
    }
    
    .fg-title {
        font-size: 2rem;
    }
    
    .fg-features {
        gap: 1rem;
    }
    
    .fg-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fg-styles-grid {
        grid-template-columns: 1fr;
    }
    
    .fg-categories {
        justify-content: center;
    }
    
    .fg-tips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .fg-input-section,
    .fg-filters-section {
        padding: 1rem;
    }
    
    .fg-style-card {
        padding: 1rem;
    }
    
    .fg-features {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}