/* ============================================
   FANCY FONT GENERATOR - WordPress Plugin
   Brand Colors: #1B4167, #718096, #A38650
   ============================================ */

.ffg-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.ffg-container {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
    padding: 48px 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
}

.ffg-container * {
    box-sizing: border-box;
}

/* Hero */
.ffg-hero {
    text-align: center;
    margin-bottom: 36px;
}

.ffg-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1B4167, #A38650);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.ffg-hero p {
    color: #718096;
    font-size: 1.05rem;
    margin: 0;
}

/* Input Card */
.ffg-input-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 32px;
}

.ffg-text-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.05rem;
    color: #1B4167;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.ffg-text-input:focus {
    border-color: #1B4167;
    box-shadow: 0 0 0 3px rgba(27,65,103,0.1);
}

.ffg-text-input::placeholder {
    color: #94a3b8;
}

/* Toolbar */
.ffg-toolbar {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Buttons */
.ffg-btn-primary {
    background: linear-gradient(135deg, #1B4167, #2d5a8e) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.ffg-btn-primary:hover {
    background: linear-gradient(135deg, #A38650, #8b7040) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(163,134,80,0.3);
}

.ffg-btn-outline {
    background: #ffffff !important;
    color: #1B4167 !important;
    border: 1px solid #718096 !important;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.ffg-btn-outline:hover {
    background: #f1f5f9 !important;
    border-color: #1B4167 !important;
}

/* Results Grid */
.ffg-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

/* Card */
.ffg-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    transition: all 0.2s;
}

.ffg-card:hover {
    border-color: #A38650;
    box-shadow: 0 4px 16px rgba(163,134,80,0.08);
    transform: translateY(-2px);
}

.ffg-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #A38650;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.ffg-preview {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #1B4167;
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: 8px;
    word-break: break-word;
    margin-bottom: 12px;
    min-height: 40px;
    border: 1px solid #f1f5f9;
}

/* Copy Button in Card */
.ffg-copy-btn {
    background: #f1f5f9 !important;
    color: #1B4167 !important;
    border: 1px solid #e2e8f0 !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.ffg-copy-btn:hover {
    background: #1B4167 !important;
    color: #ffffff !important;
    border-color: #1B4167 !important;
    box-shadow: 0 2px 8px rgba(27,65,103,0.25);
}

.ffg-copy-btn.copied {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
}

/* Load More */
.ffg-load-more-wrapper {
    text-align: center;
    margin-top: 32px;
}

.ffg-batch-indicator {
    display: block;
    margin-top: 10px;
    color: #718096;
    font-size: 0.9rem;
}



/* Toast */
.ffg-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1B4167;
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 10px;
    font-weight: 600;
    z-index: 99999;
    box-shadow: 0 8px 24px rgba(27,65,103,0.3);
    animation: ffgToastIn 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@keyframes ffgToastIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .ffg-container {
        padding: 32px 20px;
    }
    .ffg-hero h1 {
        font-size: 1.6rem;
    }
    .ffg-results {
        grid-template-columns: 1fr;
    }
}