/**
 * GLOBAL.CSS - Core Styles, Dark Mode & Premium Animations
 */

:root {
    --primary-color: #6401c9;
    --primary-hover: #4b0099;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --footer-bg: #eeeeee;
    --footer-text: #555555;
    --fav-color: #e74c3c;
    --transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

[data-theme="dark"] {
    --primary-color: #8a2be2;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #eeeeee;
    --border-color: #333333;
    --footer-bg: #1a1a1a;
    --footer-text: #cccccc;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Page Load Animation */
@keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    animation: pageFadeIn 0.8s ease-out;
}

.hidden { display: none !important; }

/* --- Site Footer --- */
.site-footer {
    background: var(--footer-bg);
    padding: 50px 20px;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--primary-color); }

.copyright { color: var(--footer-text); font-size: 0.9rem; opacity: 0.8; }

/* --- UI Buttons --- */
.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Cairo';
    font-weight: 800;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(100, 1, 201, 0.2);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(100, 1, 201, 0.35);
}

.btn-secondary {
    background: transparent;
    color: #888;
    border: 2px solid #ddd;
    padding: 12px 35px;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Cairo';
    font-weight: 800;
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: var(--fav-color);
    color: var(--fav-color);
    background: rgba(231, 76, 60, 0.05);
    transform: translateY(-2px);
}

/* --- Toast & Bulk Bar Animations --- */
@keyframes slideInUp {
    from { transform: translateX(-50%) translateY(100px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #2e005c;
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    z-index: 11000;
    display: none;
    align-items: center;
    gap: 12px;
}

.toast-container.show {
    display: flex;
    animation: slideInUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.bulk-download-bar {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--card-bg);
    padding: 15px 25px;
    border-radius: 18px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 5000;
    border: 2px solid var(--primary-color);
    animation: modalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
    from { transform: scale(0.8) translateY(50px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.75);
    display: flex; justify-content: center; align-items: center;
    z-index: 12000;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 520px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    animation: modalPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
