/*
 * STEMpie - Resources Page Styles
 * Resources page specific styles
 * Created: 2024
 */

/* CSS Variables */
:root {
    --primary-color: #5e35b1;
    --secondary-color: #3949ab;
    --accent-color: #7c4dff;
    --light-color: #e8eaf6;
    --dark-color: #1a237e;
    --success-color: #43a047;
    --warning-color: #ffb300;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Footer Styles */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 2rem 0 1rem 0;
}

@media (min-width: 768px) {
    .footer {
        padding: 3rem 0;
    }
}

.footer li {
    margin-bottom: 0.5rem !important;
}

.footer h5 {
    margin-bottom: 1rem !important;
}

.footer p, .footer li {
    font-size: 0.9rem !important;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Mobile Optimization */
.mobile-padding {
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 768px) {
    .mobile-padding {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Resource Card Styling */
.resource-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
    border-color: var(--primary-color);
}

.resource-card .card-title {
    color: var(--dark-color);
    font-weight: 600;
}

.resource-card .badge {
    font-size: 0.75rem;
}

/* Filter Section Styling */
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(94, 53, 177, 0.25);
}

.form-label {
    color: var(--dark-color);
}

/* Mobile Responsive Styles */
@media (max-width: 767px) {
    /* Mobile container padding */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .footer {
        padding: 1.5rem 0 0.8rem 0 !important;
    }
    
    .footer h5 {
        font-size: 1rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .footer p, .footer li {
        font-size: 0.9rem !important;
    }
    
    .footer .col-lg-3, .footer .col-md-6 {
        margin-bottom: 1.2rem !important;
    }
    
    /* Remove conflicting footer layout rules - let common.css handle footer layout */
    /* .footer .row > div {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .footer .row {
        flex-direction: column;
    } */
    
    .btn, .btn-mobile {
        min-height: 48px !important;
        font-size: 1rem !important;
        padding: 0.75rem 1.5rem !important;
    }
    
    .btn-sm {
        min-height: 40px !important;
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    .card {
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
        margin-bottom: 1rem !important;
    }
    
    .card-body {
        padding: 1.25rem !important;
    }
    
    .form-control, .form-select {
        min-height: 48px !important;
        font-size: 1rem !important;
        padding: 0.75rem 1rem !important;
    }
    
    .row {
        margin-left: -10px !important;
        margin-right: -10px !important;
    }
    
    .col, .col-12, .col-sm-6, .col-md-4, .col-lg-3, .col-md-6 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .resource-card {
        margin-bottom: 1rem !important;
    }
    
    .resource-card .card-body {
        padding: 1rem !important;
    }
    
    .display-5, h1 {
        font-size: 2rem !important;
    }
    
    .lead, p, .card-text {
        font-size: 1.1rem !important;
    }
} 