/**
 * eduSYMS SiMS Landing Page Styles
 * Design tokens, utilities, and component styles
 */

/* ========================================
   Bootstrap Grid System (Required)
   ======================================== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.row > * {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* Extra large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
    .col-xl-3 { flex: 0 0 auto; width: 25%; }
    .col-xl-4 { flex: 0 0 auto; width: 33.33333333%; }
    .col-xl-6 { flex: 0 0 auto; width: 50%; }
    .col-xl-12 { flex: 0 0 auto; width: 100%; }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .col-lg-3 { flex: 0 0 auto; width: 25%; }
    .col-lg-4 { flex: 0 0 auto; width: 33.33333333%; }
    .col-lg-6 { flex: 0 0 auto; width: 50%; }
    .col-lg-12 { flex: 0 0 auto; width: 100%; }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .col-md-6 { flex: 0 0 auto; width: 50%; }
    .col-md-12 { flex: 0 0 auto; width: 100%; }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .col-sm-12 { flex: 0 0 auto; width: 100%; }
}

/* Mobile first - all columns full width by default */
.col-6 { flex: 0 0 auto; width: 50%; }
.col-12 { flex: 0 0 auto; width: 100%; }

/* Spacing utilities */
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mb-lg-0 { margin-bottom: 0; }

@media (min-width: 992px) {
    .mb-lg-0 { margin-bottom: 0 !important; }
}

.text-center { text-align: center; }

/* ========================================
   Design Tokens & CSS Variables
   ======================================== */
:root {
    /* Brand Colors */
    --brand-primary: #93c33b;
    --brand-secondary: #7da82f;
    
    /* Typography & Ink */
    --ink-primary: #1a202c;
    --ink-secondary: #64748b;
    --ink-tertiary: #94a3b8;
    
    /* Backgrounds */
    --bg-soft: #f8f9fa;
    --bg-white: #ffffff;
    
    /* Borders & Radii */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --ink-primary: #f7fafc;
        --ink-secondary: #cbd5e0;
        --bg-soft: #2d3748;
    }
}

/* ========================================
   Gradient Utilities
   ======================================== */
.bg-gradient-brand {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
}

.bg-gradient-purple {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bg-gradient-blue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

/* ========================================
   Hero Section
   ======================================== */
.solution-hero {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    padding: 120px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
}

.solution-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
    pointer-events: none;
}

.solution-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.solution-hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* ========================================
   Button Styles
   ======================================== */
.btn-primary-custom {
    background: white;
    color: var(--brand-primary);
    padding: 15px 40px;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-slow);
    box-shadow: var(--shadow-xl);
    border: none;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2xl);
    color: var(--brand-primary);
    text-decoration: none;
}

.btn-secondary-custom {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 15px 40px;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-slow);
    border: 2px solid white;
}

.btn-secondary-custom:hover {
    background: white;
    color: var(--brand-primary);
    transform: translateY(-3px);
    text-decoration: none;
}

.btn-white {
    background: white;
    color: var(--brand-primary);
    padding: 15px 40px;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-slow);
    box-shadow: var(--shadow-lg);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: var(--brand-primary);
    text-decoration: none;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========================================
   Stats Section
   ======================================== */
.stats-section {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* ========================================
   Portal Cards
   ======================================== */
.portals-section {
    padding: 80px 0;
}

.portal-card {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: white;
    border-radius: var(--radius-2xl);
    padding: 50px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-slow);
}

.portal-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.portal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2xl);
}

.portal-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.portal-card ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    position: relative;
    z-index: 1;
}

.portal-card ul li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.portal-card .btn-login {
    background: white;
    color: var(--brand-primary);
    padding: 12px 35px;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    transition: all var(--transition-slow);
    position: relative;
    z-index: 1;
}

.portal-card .btn-login:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
    text-decoration: none;
    color: var(--brand-primary);
}

/* ========================================
   Feature Cards
   ======================================== */
.features-section {
    padding: 80px 0;
    background: var(--bg-soft);
}

.feature-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
    height: 100%;
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink-primary);
}

.feature-card p {
    flex-grow: 1;
    color: var(--ink-secondary);
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    color: var(--ink-secondary);
    font-size: 0.9rem;
}

.feature-card ul li {
    margin-bottom: 0.5rem;
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: white;
}

/* ========================================
   Benefits Section
   ======================================== */
.benefits-section {
    padding: 80px 0;
    background: white;
}

.benefit-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.benefit-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.benefit-item h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--ink-primary);
}

.benefit-item p {
    color: var(--ink-secondary);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
}

/* ========================================
   Focus States for Accessibility
   ======================================== */
:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* ========================================
   Reduced Motion Support
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .feature-card:hover,
    .portal-card:hover,
    .btn-primary-custom:hover,
    .btn-secondary-custom:hover {
        transform: none;
    }
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .solution-hero {
        padding: 80px 0 60px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .portal-card {
        margin-bottom: 20px;
        padding: 30px;
    }
    
    .feature-card {
        padding: 30px;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .portal-card {
        margin-bottom: 20px;
    }
}

@media (min-width: 992px) {
    .row {
        margin-left: -15px;
        margin-right: -15px;
    }
    
    .row > [class*='col-'] {
        padding-left: 15px;
        padding-right: 15px;
    }
}
