/* css/global.css — FronixLearner Shared Styles */

:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --accent: #10B981;
    --bg-body: #F3F4F6;
    --bg-glass: rgba(255,255,255,0.95);
    --text-main: #111827;
    --text-muted: #6B7280;
    --danger: #EF4444;
    --warning: #F59E0B;
    --success: #10B981;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    --shadow: 0 10px 25px rgba(0,0,0,0.07);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Outfit', 'Montserrat', 'Segoe UI', sans-serif; background: var(--bg-body); color: var(--text-main); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; }

/* --- BUTTONS --- */
.btn { padding: 0.75rem 1.75rem; border-radius: 50px; font-weight: 700; cursor: pointer; border: none; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; }
.btn-fill { background: var(--primary); color: white; box-shadow: 0 4px 14px rgba(79,70,229,0.35); }
.btn-fill:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(79,70,229,0.45); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: white; transform: translateY(-2px); }
.btn-danger { background: #fee2e2; color: var(--danger); border: 1px solid #fecaca; }
.btn-danger:hover { background: var(--danger); color: white; }
.btn-success { background: #dcfce7; color: #16a34a; border: 1px solid #bbf7d0; }
.btn-success:hover { background: #16a34a; color: white; }

/* --- BADGES --- */
.badge { padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.badge-free { background: #dcfce7; color: #16a34a; }
.badge-paid { background: #fff7ed; color: #c2410c; }
.badge-active { background: #dcfce7; color: #16a34a; }
.badge-blocked { background: #fee2e2; color: #ef4444; }

/* --- TOAST NOTIFICATION --- */
#toast { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: none; }
.toast-inner { background: white; border-radius: 12px; padding: 14px 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); display: flex; align-items: center; gap: 12px; min-width: 280px; border-left: 5px solid var(--primary); animation: slideToast 0.3s ease; }
.toast-inner.error { border-left-color: var(--danger); }
.toast-inner.success { border-left-color: var(--success); }
@keyframes slideToast { from { opacity:0; transform: translateX(30px); } to { opacity:1; transform: translateX(0); } }

/* --- MODAL OVERLAY --- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(6px); z-index: 2000; display: none; justify-content: center; align-items: center; }
.modal-overlay.active { display: flex; }
.modal-box { background: white; border-radius: 20px; padding: 30px; position: relative; animation: slideUp 0.3s ease; max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: 14px; right: 18px; font-size: 1.5rem; cursor: pointer; color: #aaa; transition: 0.2s; line-height: 1; }
.modal-close:hover { color: var(--danger); }
@keyframes slideUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; transform:translateY(15px); } to { opacity:1; transform:translateY(0); } }

/* --- SECTION HEADER --- */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2.4rem; font-weight: 800; color: var(--text-main); margin-bottom: 0.75rem; }
.section-header p { color: var(--text-muted); max-width: 580px; margin: 0 auto; font-size: 1.05rem; }
