/*
 * STEMpie - Competitions Page Styles
 * Competitions listing and details 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;
}

/* Navbar Styles */
.navbar-brand {
    font-weight: 700;
    font-size: 2.25rem;
    position: relative;
}

@media (min-width: 768px) {
    .navbar-brand {
        font-size: 2.7rem;
    }
}

.navbar-brand span {
    color: var(--accent-color);
}

.logo-pi {
    color: white !important;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: 'Arial Unicode MS', 'Lucida Sans Unicode', 'Times New Roman', serif;
    position: absolute;
    top: 0.1rem;
    right: -0.8rem;
    line-height: 1;
}

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

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

/* 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;
    }
}

/* Navbar Mobile Optimization */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Navigation Links Styling */
.nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--accent-color) !important;
    font-weight: 600;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Mobile Button Sizing */
.btn-mobile {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .btn-mobile {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
}

/* Competition Card Styling */
.competition-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.competition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.competition-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Competition Icon Colors */
.math-icon { 
    background: linear-gradient(45deg, #e91e63, #f06292); 
    color: white; 
}

.science-icon { 
    background: linear-gradient(45deg, #4caf50, #81c784); 
    color: white; 
}

.tech-icon { 
    background: linear-gradient(45deg, #ff9800, #ffb74d); 
    color: white; 
}

.engineering-icon { 
    background: linear-gradient(45deg, #795548, #a1887f); 
    color: white; 
}

.english-icon { 
    background: linear-gradient(45deg, #2196f3, #64b5f6); 
    color: white; 
}

/* Footer Mobile Row Styles */
@media (max-width: 767.98px) {
    .footer-mobile-row {
        display: flex;
        flex-direction: row;
        gap: 16px;
    }
    
    .footer-mobile-row > div {
        flex: 1 1 0;
        min-width: 0;
    }
}

.footer-mobile-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 120px;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

.footer-mobile-row > div {
    flex: 0 0 260px;
    min-width: 200px;
    max-width: 320px;
}

@media (max-width: 991.98px) {
    .footer-mobile-row {
        gap: 32px;
    }
    
    .footer-mobile-row > div {
        flex: 1 1 0;
        min-width: 0;
        max-width: 100%;
    }
} 