/*
Theme Name: NRW Segler Schlepp
Description: Simple child theme for model airplane club - everything on one page
Template: twentytwentyfour
Version: 1.0
*/

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.site-header {
    background: linear-gradient(135deg, #b3d4f1 0%, #d1e7f7 100%);
    padding: 20px 0;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-right: auto;
}

.header-text {
    text-align: left;
}

.banner-area {
    flex: 0 0 800px;
    min-height: 80px;
    max-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner-placeholder {
    background: rgba(30, 60, 114, 0.1);
    border: 2px dashed #2a5298;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    color: #666;
    font-style: italic;
    width: 100%;
}

.club-logo {
    width: 230px;
    height: 120px;
    border-radius: 5px;
    border: 2px solid #333;
    object-fit: cover;
}

.site-title {
    color: #1e3c72;
    font-size: 2.5em;
    text-align: center;
    margin: 0;
    font-weight: bold;
}

.site-description {
    color: #666;
    text-align: center;
    font-size: 1.1em;
    margin-top: 5px;
}

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

.content-section {
    background: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-title {
    color: #1e3c72;
    border-bottom: 3px solid #2a5298;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: bold;
}

/* Welcome text styling */
.welcome-text {
    text-align: left;
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
}

/* Two column layout */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.content-section-half {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.content-section-half .section-title {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.content-section-half .download-btn {
    padding: 6px 12px;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .content-section-half {
        padding: 20px;
    }
}
.event-grid {
    display: grid;
    gap: 20px;
}

.event-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #2a5298;
    transition: transform 0.2s, box-shadow 0.2s;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.event-date {
    color: #dc143c;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.event-title {
    color: #1e3c72;
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: bold;
}

.event-location {
    color: #666;
    margin-bottom: 10px;
}

.event-description {
    color: #333;
    line-height: 1.5;
}

/* Results Section */
.results-grid {
    display: grid;
    gap: 15px;
}

.result-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #dc143c;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.result-info h3 {
    color: #1e3c72;
    margin-bottom: 5px;
}

.result-year {
    color: #666;
    font-size: 0.9em;
}

.download-btn {
    background: #dc143c;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.download-btn:hover {
    background: #b71c1c;
    color: white;
}

/* Photo Gallery */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.photo-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    background: white;
}

.photo-item:hover {
    transform: scale(1.02);
}

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
}

.photo-caption {
    padding: 15px;
}

.photo-title {
    font-weight: bold;
    color: #1e3c72;
    margin-bottom: 5px;
}

.photo-description {
    color: #666;
    font-size: 0.9em;
}

/* Links Section */
.links-grid {
    display: grid;
    gap: 15px;
}

.link-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #228b22;
    transition: transform 0.2s;
}

.link-card:hover {
    transform: translateY(-2px);
}

.link-title {
    color: #1e3c72;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.link-title a {
    color: #1e3c72;
    text-decoration: none;
}

.link-title a:hover {
    color: #2a5298;
    text-decoration: underline;
}

.link-description {
    color: #666;
    font-size: 0.95em;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}

.lightbox img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-caption {
    text-align: center;
    color: white;
    padding: 20px;
    font-size: 1.1em;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-close:hover {
    opacity: 0.7;
}

/* View More Button */
.view-more {
    text-align: center;
    margin-top: 20px;
}

.view-more-btn {
    background: #2a5298;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.view-more-btn:hover {
    background: #1e3c72;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-title {
        font-size: 2em;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .content-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .result-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Hide WordPress default elements we don't need */
.wp-block-navigation,
.wp-site-blocks > header,
.wp-site-blocks > footer {
    display: none;
}

/* Admin bar adjustments */
body.admin-bar .lightbox {
    top: 32px;
    height: calc(100% - 32px);
}