/* 
 * VocabFlow Generator Styles 
 * Scoped with .vfg- to prevent conflicts with WordPress themes
 */

.vfg-app-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* FIX: Remove extra space above the tool */
    margin-top: -10 !important; 
    padding-top: 0 !important;
}

/* --- Header Section --- */
.vfg-brand { 
    margin-bottom: 1rem; 
    /* FIX: Force remove top gaps */
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.vfg-brand h1 { 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: #0f172a; 
    /* FIX: Remove theme-default heading margins */
    margin-top: 0 !important; 
    margin-bottom: 0 !important; 
    line-height: 1.2;
    padding: 0 !important;
}

.vfg-brand p { 
    color: #64748b; 
    font-size: 0.85rem; 
    margin-top: 4px !important; 
    margin-bottom: 0;
}

/* --- Main Card --- */
.vfg-card {
    background: #ffffff;
    /* Professional visible border */
    border: 2px solid #cbd5e1; 
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.vfg-word-header { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 12px; 
    margin-bottom: 0.5rem; 
}

.vfg-word { 
    font-size: 2.2rem; 
    font-weight: 800; 
    color: #6366f1; 
    line-height: 1.2; 
}

/* --- Audio Button & SVG --- */
.vfg-audio-btn { 
    background: #eef2ff; 
    border: none; 
    color: #6366f1; 
    width: 36px; 
    height: 36px; 
    border-radius: 50%; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: 0.2s; 
    padding: 0;
    line-height: 0;
}

.vfg-audio-btn svg {
    display: block;
    width: 20px;
    height: 20px;
}

.vfg-audio-btn:hover { 
    background: #dee4ff; 
    transform: scale(1.1); 
}

/* --- Word Details --- */
.vfg-phonetic { 
    color: #64748b; 
    font-size: 1rem; 
    font-family: 'Georgia', serif; 
    font-style: italic; 
    display: block; 
    margin-bottom: 1rem; 
}

.vfg-badge { 
    display: inline-block; 
    background: #f1f5f9; 
    color: #475569; 
    padding: 3px 10px; 
    border-radius: 6px; 
    font-size: 0.7rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    margin-bottom: 1rem; 
    border: 1px solid #cbd5e1; 
}

.vfg-definition { 
    font-size: 1.05rem; 
    line-height: 1.5; 
    color: #0f172a; 
    margin-bottom: 1rem; 
}

.vfg-example { 
    font-size: 0.9rem; 
    color: #64748b; 
    border-left: 3px solid #cbd5e1; 
    padding-left: 1rem; 
    text-align: left; 
    font-style: italic; 
    margin-bottom: 1.5rem; 
}

/* --- Buttons & Actions --- */
.vfg-action-group { 
    display: flex; 
    gap: 10px; 
    justify-content: center; 
    margin-bottom: 1rem; 
}

.vfg-secondary-btn { 
    background: white; 
    border: 1px solid #cbd5e1; 
    color: #64748b; 
    padding: 6px 12px; 
    border-radius: 8px; 
    font-size: 0.8rem; 
    cursor: pointer; 
    transition: 0.2s; 
    display: flex; 
    align-items: center; 
    gap: 5px; 
}

.vfg-secondary-btn:hover { 
    background: #f8fafc; 
    color: #0f172a; 
}

.vfg-btn-main { 
    background-color: #6366f1; 
    color: white; 
    border: none; 
    margin-top: 8px;
    padding: 14px; 
    font-size: 1rem; 
    font-weight: 600; 
    border-radius: 12px; 
    cursor: pointer; 
    transition: all 0.2s ease; 
    width: 100%; 
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3); 
}

.vfg-btn-main:hover { 
    background-color: #4f46e5; 
    transform: translateY(-1px); 
}

.vfg-btn-main:disabled { 
    background-color: #cbd5e1; 
    cursor: not-allowed; 
}

/* --- Favorites Section --- */
.vfg-favorites-section { 
    margin-top: 2rem; 
    text-align: left; 
    width: 100%; 
}

.vfg-fav-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 0.5rem; 
}

.vfg-favorites-section h3 { 
    font-size: 0.9rem; 
    color: #64748b; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    margin: 0; 
}

.vfg-clear-btn { 
    background: transparent; 
    border: none; 
    color: #ef4444; 
    font-size: 0.75rem; 
    font-weight: 600; 
    cursor: pointer; 
    transition: 0.2s; 
}

.vfg-clear-btn:hover { 
    color: #dc2626; 
    text-decoration: underline; 
}

.vfg-fav-list { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
}

.vfg-fav-item { 
    background: white; 
    border: 1px solid #cbd5e1; 
    padding: 4px 10px; 
    border-radius: 6px; 
    font-size: 0.85rem; 
    cursor: pointer; 
    transition: 0.2s; 
}

.vfg-fav-item:hover { 
    background: #f1f5f9; 
    border-color: #6366f1; 
}

/* --- Animations & States --- */
.vfg-loading-spinner { 
    display: none; 
    width: 20px; 
    height: 20px; 
    border: 3px solid rgba(255,255,255,0.3); 
    border-radius: 50%; 
    border-top-color: #fff; 
    animation: vfg-spin 0.8s linear infinite; 
    margin: 0 auto; 
}

@keyframes vfg-spin { 
    to { transform: rotate(360deg); } 
}

.vfg-fade-out { 
    opacity: 0; 
    transform: translateY(10px); 
    transition: 0.2s; 
}

.vfg-fade-in { 
    opacity: 1; 
    transform: translateY(0); 
    transition: 0.4s; 
}

/* --- Responsive --- */
@media (max-width: 480px) {
    .vfg-card { 
        padding: 1.5rem; 
    }
    .vfg-word { 
        font-size: 1.8rem; 
    }
}