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

.bfg-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 32px 20px;
}

.bfg-main-title {
    font-size: 2rem;
    font-weight: bold;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.bfg-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4a4a4a;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.bfg-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.bfg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

/* Section Styles */
.bfg-section {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.bfg-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

/* Text Input Styles */
.bfg-input-wrapper {
    position: relative;
}

.bfg-text-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    background: #ffffff;
    box-sizing: border-box;
}

.bfg-text-input:focus {
    outline: none;
    border-color: #8BC34A;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.1);
}

.bfg-input-info {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
    font-size: 0.75rem;
    color: #64748b;
}

/* Font Selection Styles */
.bfg-font-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bfg-font-btn {
    background: #e2e8f0;
    border: none;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bfg-font-btn:hover {
    background: #cbd5e1;
}

.bfg-font-btn.active {
    background: #8BC34A;
    color: #ffffff;
}

.bfg-font-btn.active:hover {
    background: #7CB342;
}

.bfg-font-preview {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.bfg-font-name {
    font-size: 0.75rem;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Font Classes */
.arial-black {
    font-family: "Arial Black", Arial, sans-serif;
}

.helvetica-bold {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold;
}

.futura-bold {
    font-family: Futura, Arial, sans-serif;
    font-weight: bold;
}

.impact {
    font-family: Impact, "Arial Black", sans-serif;
}

/* Color Control Styles */
.bfg-color-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bfg-color-control label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #374151;
}

.bfg-color-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bfg-color-picker {
    width: 48px;
    height: 48px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    background: none;
}

.bfg-color-text {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.875rem;
    background: #ffffff;
}

/* Button Styles */
.bfg-btn {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.bfg-btn-random {
    background: #8b5cf6;
    color: #ffffff;
}

.bfg-btn-random:hover {
    background: #7c3aed;
}

.bfg-btn-download {
    background: #3b82f6;
    color: #ffffff;
    margin-top: 16px;
}

.bfg-btn-download:hover {
    background: #2563eb;
}

/* Canvas Styles */
.bfg-canvas-wrapper {
    background: #ffffff;
    padding: 16px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    margin-bottom: 16px;
    text-align: center;
}

.bfg-canvas {
    max-width: 100%;
    height: auto;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.bfg-canvas-size {
    margin-top: 12px;
    font-size: 0.875rem;
    color: #64748b;
}

.bfg-canvas-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.bfg-control-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #374151;
}

.bfg-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #ffffff;
    font-size: 0.875rem;
}

/* Tips Styles */
.bfg-tips {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bfg-tips li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    color: #374151;
}

.bfg-bullet {
    color: #8BC34A;
    margin-right: 8px;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bfg-container {
        padding: 12px;
    }
    
    .bfg-main-title {
        font-size: 1.75rem;
    }
    
    .bfg-title {
        font-size: 1.25rem;
    }
    
    .bfg-subtitle {
        font-size: 0.9rem;
    }
    
    .bfg-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bfg-section {
        padding: 12px;
        margin-bottom: 16px;
    }
    
    .bfg-section-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .bfg-text-input {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .bfg-input-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .bfg-font-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .bfg-font-btn {
        min-height: 70px;
        padding: 12px;
    }
    
    .bfg-font-preview {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .bfg-font-name {
        font-size: 0.7rem;
    }
    
    .bfg-color-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .bfg-canvas-controls {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .bfg-header {
        padding: 20px 12px;
    }
    
    .bfg-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .bfg-canvas-wrapper {
        padding: 12px;
    }
    
    .bfg-tips {
        font-size: 0.85rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .bfg-section {
        padding: 20px;
    }
    
    .bfg-section-title {
        font-size: 1.15rem;
    }
}

@media (min-width: 769px) {
    .bfg-input-info {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}