/* German Font Generator Plugin Styles */

/* Reset browser defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: #f8f9fa;
}
#german-font-generator.gfg-container {
    width: 95% !important;
    max-width: 95% !important;
    margin: 20px auto !important;
    padding: 20px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff !important;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    box-sizing: border-box !important;
}

.gfg-header h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.gfg-input-section {
    margin-bottom: 30px;
}

.gfg-text-input {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.gfg-text-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.gfg-text-input.gfg-placeholder {
    color: #999;
    font-style: italic;
}

.gfg-fonts-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.gfg-font-item {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    transition: all 0.2s ease;
}

.gfg-font-item:hover {
    background: #f0f0f0;
    border-color: #d0d0d0;
}

.gfg-font-preview {
    flex: 1;
    padding: 10px 15px;
    font-size: 18px;
    line-height: 1.4;
    word-wrap: break-word;
    min-height: 25px;
    display: flex;
    align-items: center;
}

.gfg-copy-btn {
    background: #5782D7;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 80px;
}

.gfg-copy-btn:hover {
    background: #4a6bb8;
    transform: translateY(-1px);
}

.gfg-copy-btn:active {
    transform: translateY(0);
}

.gfg-copy-btn.copying {
    background: #28a745;
    pointer-events: none;
}

.gfg-load-more-section {
    text-align: center;
    margin: 30px 0;
}

.gfg-load-more-btn {
    background: #5782D7;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.gfg-load-more-btn:hover {
    background: #4a6bb8;
    transform: translateY(-1px);
}

.gfg-load-more-btn:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    transform: none;
}

/* Toast Notification */
.gfg-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10000;
    font-weight: 500;
    transition: all 0.3s ease;
}

.gfg-toast-hidden {
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
}

.gfg-toast-icon {
    font-size: 16px;
    font-weight: bold;
}

.gfg-toast-message {
    font-size: 14px;
}

/* Loading State */
.gfg-loading {
    opacity: 0.6;
    pointer-events: none;
}

.gfg-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #4a90e2;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    #german-font-generator.gfg-container {
        width: 98% !important;
        padding: 15px !important;
    }
}

@media (max-width: 768px) {
    #german-font-generator.gfg-container {
        width: 95% !important;
        padding: 10px !important;
    }
    
    .gfg-header h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .gfg-font-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
    }
    
    .gfg-font-preview {
        padding: 10px 0;
        text-align: center;
        font-size: 16px;
    }
    
    .gfg-copy-btn {
        align-self: center;
        min-width: 120px;
    }
    
    .gfg-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
    }
    
    .gfg-toast-hidden {
        transform: translateY(-150%);
    }
}

@media (max-width: 480px) {
    .gfg-container {
        padding: 8px;
    }
    
    .gfg-header h2 {
        font-size: 18px;
    }
    
    .gfg-text-input {
        padding: 12px;
        font-size: 14px;
    }
    
    .gfg-font-preview {
        font-size: 14px;
    }
}