/* events.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

:root {
    --bg-color: #e6f3f3;
    --text-color: #333;
    --primary-color: #16a085;
    --secondary-color: #1abc9c;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

[data-theme="dark"] {
    --bg-color: #1a2b2b;
    --text-color: #e6f3f3;
    --primary-color: #1abc9c;
    --secondary-color: #16a085;
}

[data-theme="dark"] body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.top-bar {
    background: linear-gradient(90deg, #1a73e8, #0d47a1);
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

[data-theme="dark"] .top-bar {
    background: linear-gradient(90deg, #0d47a1, #1a73e8);
}

main {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section {
    background: white;
    padding: 35px;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

[data-theme="dark"] .section {
    background: #2e3b3b;
}

.upcoming-events {
    border-left: 5px solid #16a085;
}

[data-theme="dark"] .upcoming-events {
    border-left-color: var(--primary-color);
}

.event-timeline {
    position: relative;
    margin-top: 25px;
}

.event-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #16a085;
    transform: translateX(-50%);
}

[data-theme="dark"] .event-timeline::before {
    background: var(--primary-color);
}

.event-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.event-item:nth-child(even) {
    flex-direction: row-reverse;
}

.event-date {
    flex: 0 0 80px;
    text-align: center;
    background: #16a085;
    color: white;
    padding: 10px;
    border-radius: 8px;
}

[data-theme="dark"] .event-date {
    background: var(--primary-color);
}

.event-date .day {
    display: block;
    font-size: 24px;
    font-weight: 700;
}

.event-date .month {
    font-size: 14px;
}

.event-content {
    flex: 1;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 0 15px;
    position: relative;
}

[data-theme="dark"] .event-content {
    background: #3a4a4a;
}

.event-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 15px;
    height: 15px;
    background: #16a085;
    border-radius: 50%;
    transform: translateY(-50%);
}

[data-theme="dark"] .event-content::before {
    background: var(--primary-color);
}

.event-item:nth-child(odd) .event-content::before {
    right: -22px;
}

.event-item:nth-child(even) .event-content::before {
    left: -22px;
}

.event-content h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 10px;
}

[data-theme="dark"] .event-content h3 {
    color: var(--text-color);
}

.event-content p {
    color: #555;
    font-size: 16px;
}

[data-theme="dark"] .event-content p {
    color: #ccc;
}

.toggle-btn {
    background: #16a085;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
    transition: background 0.3s, transform 0.3s;
}

[data-theme="dark"] .toggle-btn {
    background: var(--primary-color);
}

.toggle-btn:hover {
    background: #1abc9c;
    transform: translateY(-2px);
}

[data-theme="dark"] .toggle-btn:hover {
    background: var(--secondary-color);
}

.hidden-content {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    font-size: 16px;
    color: #555;
}

[data-theme="dark"] .hidden-content {
    background: #2e3b3b;
    color: #ccc;
}

#toggle-past-events {
    display: block;
    margin: 20px auto 0;
}

.event-signup {
    border-left: 5px solid #1abc9c;
    text-align: center;
}

[data-theme="dark"] .event-signup {
    border-left-color: var(--secondary-color);
}

.event-signup h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

[data-theme="dark"] .event-signup h2 {
    color: var(--text-color);
}

.event-signup p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

[data-theme="dark"] .event-signup p {
    color: #ccc;
}

.action-form {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.action-form input {
    padding: 10px 20px;
    border: 2px solid #16a085;
    border-radius: 25px;
    font-size: 16px;
    width: 250px;
    max-width: 100%;
}

[data-theme="dark"] .action-form input {
    border-color: var(--primary-color);
    color: var(--text-color);
    background: #3a4a4a;
}

@media (max-width: 768px) {
    .event-timeline::before {
        left: 40px;
    }
    
    .event-item, .event-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .event-date {
        margin-bottom: 10px;
    }
    
    .event-content {
        margin: 0;
        width: 100%;
    }
    
    .event-content::before {
        left: 25px;
        top: -15px;
    }
    
    .event-item:nth-child(odd) .event-content::before {
        right: auto;
    }
    
    .action-form {
        flex-direction: column;
    }
}