/* Custom styles for Lakerink Mathematics */

/* Global styles */
:root {
    --primary-color: #4a56e2; /* Updated to a more vibrant blue/purple */
    --secondary-color: #2d3142; /* Darker, more sophisticated shade */
    --accent-color: #63c7b2; /* Teal accent for better contrast */
    --text-color: #555;
    --light-bg: #f8f9fa;
    --math-accent: #ff6b6b; /* Accent for important elements */
    --gradient-start: #4a56e2;
    --gradient-end: #63c7b2;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
}

h1, h2, h3, h4, h5, h6, .uk-heading-small, .uk-heading-medium, .uk-heading-large {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
}

/* Header styles */
.uk-navbar-container {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: auto;
    padding: 2px 0;
}

.uk-navbar-left .uk-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Compact logo styles */
.compact-logo {
    padding: 2px 15px;
}

.compact-logo img {
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 1px;
    background: white;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.uk-navbar-left .uk-logo h1 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 4px;
}

.uk-navbar-left .uk-logo p {
    color: var(--text-color);
    font-size: 0.85rem;
    margin-top: 0;
}

.uk-navbar-right {
    margin-right: 30px;
}

.uk-navbar-nav > li > a {
    font-weight: 600;
    text-transform: none;
    color: var(--secondary-color);
    padding: 0 15px;
    position: relative;
    transition: color 0.3s ease;
}

.uk-navbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.uk-navbar-nav > li:hover > a::after,
.uk-navbar-nav > li.uk-active > a::after {
    transform: scaleX(1);
}

.uk-navbar-nav > li:hover > a,
.uk-navbar-nav > li.uk-active > a {
    color: var(--primary-color);
}

/* Hero section */
#home {
    position: relative;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Removed gradient background as requested */
    background: none;
    z-index: 1;
}

#home > div {
    position: relative;
    z-index: 2;
}

#home h1 {
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    margin-bottom: 2rem;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.25);
    padding: 10px 15px;
    border-radius: 5px;
    display: inline-block;
}

/* Section styling */
.uk-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.uk-heading-line {
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.uk-heading-line > span {
    position: relative;
    display: inline-block;
    padding: 0 20px;
    z-index: 1;
}

.uk-heading-line > span::before,
.uk-heading-line > span::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 300px;
    height: 1px;
    background: #e5e5e5;
}

.uk-heading-line > span::before {
    right: 100%;
    margin-right: 15px;
}

.uk-heading-line > span::after {
    left: 100%;
    margin-left: 15px;
}

/* Cards styling */
.uk-card {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.uk-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.1);
}

.uk-card-default {
    background: #fff;
    border: none;
}

.uk-card-title {
    color: var(--secondary-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.uk-card-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 50px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

/* Button styling */
.uk-button-primary {
    background: var(--primary-color);
    font-weight: 600;
    text-transform: none;
    border-radius: 4px;
    padding: 0 30px;
    box-shadow: 0 4px 10px rgba(74, 86, 226, 0.3);
    transition: all 0.3s ease;
}

.uk-button-primary:hover {
    background: var(--primary-color);
    opacity: 0.9;
    box-shadow: 0 6px 15px rgba(74, 86, 226, 0.4);
    transform: translateY(-2px);
}

/* Form styling */
.uk-input,
.uk-textarea {
    border-radius: 3px;
}

.uk-form-label {
    font-weight: 500;
    color: var(--secondary-color);
}

/* Footer styling */
.uk-section-secondary {
    background: var(--secondary-color);
}

.uk-icon-button {
    margin: 0 5px;
    transition: transform 0.2s ease;
}

.uk-icon-button:hover {
    transform: scale(1.1);
}

/* Availability table styling */
.availability-table th {
    font-weight: 600;
}

/* Availability labels moved to consolidated section below */

/* Mobile card styling for availability */
.uk-card-small .uk-card-header {
    border-bottom: 1px solid #e5e5e5;
}

.uk-card-small .uk-list-divider > li:not(:first-child) {
    border-top-color: #e5e5e5;
    padding-top: 8px;
    margin-top: 8px;
}

.uk-card-small .uk-card-title {
    font-size: 1.1rem;
    color: #333;
}

/* Application page styling - disable card hover animations only */
.app-page .uk-card:hover {
    transform: none;
}

/* Responsive adjustments */
@media (max-width: 959px) {
    .uk-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    #home h1 {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .uk-navbar-left .uk-logo {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .uk-navbar-left .uk-logo h1 {
        font-size: 1.2rem;
        margin-top: 0.5rem;
    }
    
    .uk-navbar-left .uk-logo p {
        font-size: 0.8rem;
    }
}

/* Animations */
.uk-scrollspy-inview {
    animation: uk-fade-bottom-medium 0.5s ease-out;
}

/* Availability table styling */
.uk-label.uk-label-availability {
    background-color: #f8f8f8;
    color: var(--text-color);
}

.uk-label.uk-label-booked {
    background-color: #f0506e;
    color: white;
}

.uk-label.uk-label-available {
    background-color: var(--accent-color);
    color: white;
}

.availability-table th, .availability-table td {
    text-align: center;
    padding: 8px;
    white-space: nowrap;
}

.availability-table th {
    background-color: #f8f8f8;
}

.availability-table {
    width: 100%;
    table-layout: fixed;
    overflow-x: auto;
}

/* Make availability table responsive */
@media (max-width: 640px) {
    .availability-table .uk-label {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
}

/* Form container styling */
.uk-card.form-container {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #d1d5db;
    background: #ffffff;
    padding: 2rem;
    transition: none;
}

.uk-card.form-container:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #d1d5db;
}

/* Session status labels */
.uk-label-no-session {
    background-color: #ddd !important;
    color: #000 !important;
}
