/* uMind Project Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #323969 0%, #152382 100%);
    min-height: 100vh;
    color: #333;
}

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

/* Navigation Styles */
nav {
    background: rgba(25, 39, 84, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #1a365d;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    margin-right: 2rem;
}

.logo img {
    height: 8rem;
    vertical-align: middle;
    margin-right: 0.6rem;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

nav a {
    color: #e2e8f0;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

nav a:hover {
    background: rgba(59, 130, 246, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

nav a:active {
    transform: translateY(0);
}

/* Main Content */
.main-content {
    background: white;
    margin: 2rem auto;
    max-width: 1200px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    min-height: 70vh;
}

/* Typography */
h1, h2, h3 {
    margin-bottom: 1rem;
}

h3 {
    color: #FFFFFF;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #1a365d, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #1a365d, #2563eb);
    margin: 0.5rem auto;
    border-radius: 2px;
}

/* Hero Section */
.hero-core {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    max-width: 1100px;
    margin: 3rem auto 2rem auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    min-height: 380px;
    background: #fff;
}

.hero-info {
    position: relative;
    background: url('https://uppermerionindivisible.org/assets/main.jpg') center center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-info-text {
    background: rgba(25, 39, 84, 0.78);
    color: #fff;
    padding: 2.5rem 2rem;
    margin: 2rem;
    border-radius: 12px;
    max-width: 90%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.hero-info-text h2 {
    font-size: 2.1rem;
    margin-bottom: 1rem;
    color: #fff;
}

.hero-info-text p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #e0e7ef;
}

.hero-actions {
    background: #fffffc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: 2.5rem 2rem;
    gap: 1.5rem;
}

.hero-action-box {
    background: linear-gradient(135deg, #323969, #152382);
    text-decoration: none;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(37,99,235,0.08);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    text-align: center;
    display: block;
}

.hero-action-box * {
    color: white;
}

.hero-action-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    background: none;
    -webkit-text-fill-color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.hero-action-box:last-child {
    margin-bottom: 0;
}

.hero-action-box:hover {
    background: linear-gradient(135deg, #152382, #323969);
    transform: translateY(-3px) scale(1.03);
}

/* Gallery Styles */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery img:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* Lists */
.event-list, .photo-list {
    list-style: none;
    padding: 0;
}

.event-list li, .photo-list li {
    background: #f8fafc;
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #2563eb;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.event-list li:hover, .photo-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Forms */
.form-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

input[type="text"], 
input[type="password"], 
input[type="email"],
input[type="url"],
input[type="date"],
input[type="time"],
textarea,
select {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

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

input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #1a365d, #2563eb);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

button:active {
    transform: translateY(0);
}

/* Messages */
.error {
    color: #dc2626;
    background: #fef2f2;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #dc2626;
    margin: 1rem 0;
}

.success {
    color: #059669;
    background: #f0fdf4;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #059669;
    margin: 1rem 0;
}

/* Event Form Styles */
.event-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1a365d;
    font-weight: 500;
}

.form-group small {
    display: block;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Calendar Styles */
.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.filter-link {
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    border-radius: 6px;
    color: #1a365d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.filter-link:hover {
    background: #e2e8f0;
}

.event-card {
    display: grid;
    grid-template-columns: minmax(0, 300px) 1fr;
    gap: 1.5rem;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.event-card.past-event {
    opacity: 0.7;
}

.event-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.event-image:hover img {
    transform: scale(1.05);
}

.event-details {
    padding: 1.5rem;
    flex: 1;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.event-header h3 {
    margin: 0;
    color: #1a365d;
    font-size: 1.4rem;
}

.past-label {
    background: #64748b;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
}

.event-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: #64748b;
    font-size: 0.95rem;
}

.event-meta i {
    margin-right: 0.5rem;
}

.event-description {
    margin: 1rem 0;
    line-height: 1.6;
}

.event-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.event-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #2563eb;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.event-link:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.delete-event {
    color: #dc2626;
    text-decoration: none;
    font-size: 0.9rem;
}

.visibility-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
}

.visibility-badge.public {
    background: #e0f2fe;
    color: #0369a1;
}

.visibility-badge.private {
    background: #fef3c7;
    color: #92400e;
}

@media (max-width: 900px) {
    .hero-core {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .hero-info, .hero-actions {
        padding: 1.5rem 1rem;
        margin: 0;
    }
    .hero-info-text {
        margin: 1rem 0;
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .nav-links {
        justify-content: center;
        width: 100%;
    }
    
    nav a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .main-content {
        margin: 1rem;
        padding: 1.5rem;
        border-radius: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .form-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .event-card {
        grid-template-columns: 1fr;
    }
    
    .event-image {
        min-height: 200px;
    }
    
    .event-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-direction: column;
        width: 100%;
    }
    
    nav a {
        text-align: center;
        width: 100%;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .main-content {
        padding: 1rem;
    }
}
