/* 
 * Main Stylesheet - Swimming Qween Academy
 * Theme: Premium Dark Mode
 * Language: Arabic (RTL support)
 */

/* Local Cairo Font Integration */
@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo/static/Cairo-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo/static/Cairo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo/static/Cairo-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo/static/Cairo-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


:root {
    --bg-color: #0f172a;
    --surface-color: #1e293b;
    --surface-hover: #334155;
    --primary-color: #38bdf8;
    --primary-hover: #0ea5e9;
    --text-color: white;
    --text-muted: white;
    --danger: #ef4444;
    --success: #22c55e;
    --border-color: #334155;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.d-flex { display: flex; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.flex-column { flex-direction: column; }
.text-center { text-align: center; }

/* Hero / Landing */
.landing-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    background: radial-gradient(circle at top right, #1e293b 0%, #0f172a 100%);
}

.academy-logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

/* Portal Cards */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 900px;
}

.portal-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-shadow: var(--shadow);
}

.portal-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    background-color: var(--surface-hover);
}

.portal-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.portal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portal-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.btn-portal {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

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

/* Forms */
.login-form-wrapper {
    display: none; /* Controlled by JS or separate landing state */
    width: 100%;
    max-width: 400px;
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

[dir="rtl"] .form-group {
    text-align: right;
}

[dir="ltr"] .form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    outline: none;
    transition: border 0.3s;
    color-scheme: dark;
}

::-webkit-calendar-picker-indicator {
    filter: brightness(0) invert(1) !important;
    cursor: pointer;
    background-size: contain;
}

.form-control:focus {
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .academy-logo {
        font-size: 1.8rem;
    }
    
    .portal-grid {
        grid-template-columns: 1fr;
    }
    
    .portal-card {
        padding: 1.5rem;
    }
}

/* Animations (Placeholder for AOS integration) */
[data-aos] {
    transition-duration: 800ms !important;
}
