/* 
 * Arabic Reading Accelerator - Base Styles
 * RTL Layout with Minecraft/Roblox inspired design
 */

:root {
    /* Colors - Minecraft/Roblox inspired */
    --primary-color: #00D4AA;
    --primary-dark: #00A88A;
    --secondary-color: #FF6B35;
    --accent-purple: #9B59B6;
    --accent-blue: #3498DB;
    
    /* Backgrounds */
    --bg-light: #F5F5F5;
    --bg-dark: #2C3E50;
    --bg-card: #FFFFFF;
    
    /* Text */
    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --text-light: #BDC3C7;
    --text-white: #FFFFFF;
    
    /* Feedback colors */
    --perfect-color: #FFD700;
    --good-color: #00D4AA;
    --needwork-color: #FF6B35;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    
    /* Border radius - Blocky style */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    /* Font */
    --font-family: 'Cairo', sans-serif;
}

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

html {
    font-size: 16px;
    direction: rtl;
}

body {
    font-family: var(--font-family);
    background: var(--bg-light);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* Messages */
.messages-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 500px;
}

.alert {
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    font-weight: 600;
    border: none;
    box-shadow: var(--shadow-md);
}

/* Main content */
.main-content {
    min-height: 100vh;
}

/* Buttons */
.btn, button {
    font-family: var(--font-family);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover, button:hover {
    transform: translateY(-2px);
}

.btn:active, button:active {
    transform: translateY(0);
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
}

/* Inputs */
input, textarea, select {
    font-family: var(--font-family);
    font-size: 1rem;
    border: 2px solid var(--text-light);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    outline: none;
    transition: border-color 0.2s;
    direction: rtl;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary-color);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Responsive */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
}
