/* LevelUp - Dark and Light Blue Fun Theme */

:root {
    --dark-blue: #1a237e;
    --medium-blue: #283593;
    --light-blue: #3f51b5;
    --bright-blue: #5c6bc0;
    --accent-blue: #7986cb;
    --light-accent: #9fa8da;
    --very-light-blue: #c5cae9;
    --background-dark: #0d1117;
    --background-light: #161b22;
    --text-light: #e6edf3;
    --text-muted: #8b949e;
    --success: #3ddc84;
    --warning: #ffa500;
    --error: #f85149;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-light) 100%);
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--medium-blue) 100%);
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--very-light-blue);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Logout form - integrates seamlessly into nav (matches .nav-links a exactly) */
.nav-logout-form {
    display: contents;
    margin: 0;
    padding: 0;
}

.nav-link-btn {
    /* Match .nav-links a styling exactly - must look identical to other nav links */
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: inherit;
    font-weight: 500;
    font-family: inherit;
    line-height: inherit;
    text-decoration: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: all 0.3s ease;
}

.nav-link-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--bright-blue) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(63, 81, 181, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(63, 81, 181, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--medium-blue) 0%, var(--light-blue) 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 53, 147, 0.6);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #2ea043 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 220, 132, 0.6);
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.event-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.event-card:hover {
    text-decoration: none;
    color: inherit;
}

.event-image {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.event-info {
    flex: 1;
}

.event-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--very-light-blue);
    margin-bottom: 10px;
}

.event-subject {
    display: inline-block;
    background: var(--light-blue);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.event-location {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.event-date {
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 14px;
}

.event-summary {
    color: var(--text-light);
    line-height: 1.6;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--very-light-blue);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--light-blue);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.2);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Search Bar */
.search-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-bar input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 16px;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--light-blue);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.2);
}

.search-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.search-actions .btn {
    padding: 10px 20px;
    font-size: 14px;
}

/* Messages */
.messages {
    margin: 20px 0;
}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(61, 220, 132, 0.2);
    border-color: var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(248, 81, 73, 0.2);
    border-color: var(--error);
    color: var(--error);
}

.alert-info {
    background: rgba(63, 81, 181, 0.2);
    border-color: var(--light-blue);
    color: var(--light-blue);
}

/* Splash Page */
.splash-container {
    text-align: center;
    padding: 100px 20px;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.splash-title {
    font-size: 64px;
    font-weight: bold;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--very-light-blue) 0%, var(--light-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.splash-subtitle {
    font-size: 24px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.splash-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.splash-actions .btn {
    padding: 15px 40px;
    font-size: 18px;
}

.splash-charity-note {
    margin-top: 30px;
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
}

/* Home page content sections */
.home-content {
    max-width: 800px;
    margin: 0 auto 50px;
}

.home-section {
    margin-bottom: 30px;
}

.home-section:last-child {
    margin-bottom: 0;
}

.home-section-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--very-light-blue);
    margin-bottom: 20px;
}

.home-bullets {
    list-style: none;
    padding-left: 0;
}

.home-bullets li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--text-light);
    line-height: 1.7;
}

.home-bullets li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--light-blue);
    font-weight: bold;
}

.heart-icon {
    color: #e91e63;
    display: inline-block;
}

.home-text {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.home-text:last-of-type {
    margin-bottom: 0;
}

.brilliant-club-link {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
}

/* Event Detail */
.event-detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.event-detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.event-detail-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--very-light-blue);
}

.event-detail-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.event-detail-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--light-blue);
    transform: translateY(-2px);
}

.pagination .current {
    background: var(--light-blue);
    color: white;
    font-weight: bold;
}

/* Footer */
footer {
    background: var(--background-light);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .event-card {
        flex-direction: column;
    }
    
    .event-image {
        width: 100%;
        height: 200px;
    }
    
    .splash-title {
        font-size: 40px;
    }
    
    .splash-charity-note {
        font-size: 13px;
        text-align: center;
        padding: 0 15px;
    }
    
    .home-section-title {
        font-size: 22px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-actions {
        flex-direction: column;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Fun decorative elements */
.star {
    position: absolute;
    color: var(--light-blue);
    font-size: 20px;
    animation: twinkle 2s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

