/* File: /var/www/saafee/public/css/base.css */

@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;600;700&family=Rubik:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Core brand */
    --primary: #E44335;
    --primary-hover: #C53727;
    --secondary: #7A7A7A;

    /* Premium gold */
    --premium: #D4A017;
    --premium-accent: #F2C94C;
    --premium-bg: #FFF8E7;

    /* Neutrals */
    --bg: #FFFFFF;
    --surface: #F5F5F5;
    --light: #F5F5F5;
    --dark: #1A1A1A;
    --text-secondary: #7A7A7A;
    --border: #E0E0E0;

    /* Semantic */
    --success: #27AE60;
    --warning: #F2994A;
    --error: #EB5757;
    --info: #2F80ED;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header styles are in /css/header.css */

/* Generic button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 44px;
    gap: 6px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
    min-height: 36px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 2px 8px rgba(228, 67, 53, 0.3);
}

.btn-secondary {
    background: #fff;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-secondary:hover {
    background: #FFF5F4;
}

.btn-danger {
    background: transparent;
    color: var(--error);
    border: 1.5px solid var(--error);
}

.btn-danger:hover {
    background: var(--error);
    color: #fff;
}

html[dir="rtl"] body {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.8;
}

/* Main Content — mobile-first */
.main-content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 16px;
    flex: 1;
    width: 100%;
}

@media (min-width: 768px) {
    .main-content {
        margin: 40px auto;
        padding: 0 20px;
    }
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-error {
    background: #FEF0F0;
    color: var(--error);
    border: 1px solid #F5C6C6;
}

.alert-success {
    background: #E8F8EF;
    color: var(--success);
    border: 1px solid #A8E6C1;
}

.alert-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 40px 20px;
    margin-top: auto;
    text-align: center;
}

.footer-content p {
    margin: 8px 0;
    opacity: 0.8;
}

/* Header responsive and RTL styles are in /css/header.css */
