/*
Theme Name: GeneratePress Child
Description: Child theme for Ostsee-Cup website
Template: generatepress
Version: 1.0.0
*/

@import url("../generatepress/style.css");

/* Custom styles for Ostsee-Cup */

/* Global Background - Sailing/Water Theme */
body {
    background: 
        linear-gradient(
            135deg,
            rgba(0, 115, 170, 0.1) 0%,
            rgba(255, 255, 255, 0.9) 30%,
            rgba(255, 255, 255, 0.95) 70%,
            rgba(0, 115, 170, 0.1) 100%
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 100px,
            rgba(0, 115, 170, 0.02) 100px,
            rgba(0, 115, 170, 0.02) 200px
        );
    background-attachment: fixed;
    min-height: 100vh;
}

/* Background Image Active */
body.with-bg-image {
    background-image: url('images/sailing-background.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

body.with-bg-image::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    z-index: -1;
}

.main-navigation {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.main-navigation .main-nav ul li a {
    color: #333333;
    font-weight: 500;
}

.main-navigation .main-nav ul li a:hover {
    color: #0073aa;
}

/* Submenu styling to match original site */
.main-navigation .main-nav ul ul {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
}

.main-navigation .main-nav ul ul li a {
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.main-navigation .main-nav ul ul li:last-child a {
    border-bottom: none;
}

/* Homepage Styles */
.ostseecup-homepage {
    margin: 0;
    padding: 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    color: white;
    padding: 40px 0;
}

.regatta-slider .slide {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.slide-content {
    flex: 1;
    padding-right: 40px;
}

.slide-content h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: white;
}

.event-date {
    font-size: 1.2em;
    color: #b3d9ff;
    margin-bottom: 15px;
}

.event-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 25px;
}

.cta-button {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #e55a2b;
    color: white;
}

/* Dynamic Slider Styles */
.regatta-slider {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.slide {
    display: none;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    align-items: center;
    padding: 40px 20px;
}

.slide.active {
    display: flex;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 115, 170, 0.7);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 600px;
    color: white;
}

.slide-content h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content .event-description {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.cta-button {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-shadow: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.cta-button:hover {
    background: #e55a2b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* Fallback for slides without background images */
.slide-image {
    flex: 1;
    text-align: center;
}

.placeholder-image {
    background: rgba(255,255,255,0.1);
    padding: 60px 20px;
    border-radius: 8px;
    color: white;
    font-size: 1.2em;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 3;
    pointer-events: none;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Slider Dots */
.slider-dots {
    text-align: center;
    padding: 20px 0 0;
    position: relative;
    z-index: 3;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: white;
    transform: scale(1.2);
}

/* Admin Slider Link */
.admin-slider-link {
    text-align: center;
    padding: 10px 0;
}

.admin-slider-link a {
    background: rgba(255, 255, 255, 0.9);
    color: #0073aa;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    border: 1px solid rgba(0, 115, 170, 0.3);
}

.admin-slider-link a:hover {
    background: white;
    text-decoration: none;
}

/* Main Content */
.main-content-wrapper {
    padding: 40px 0;
    background: rgba(248, 249, 250, 0.3);
}

/* Simple page content transparency - clean approach */
.site-main {
    background: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
}

/* Editable homepage content */
.page-content-section {
    background: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
}

.editable-content {
    line-height: 1.6;
}

.editable-content h1,
.editable-content h2,
.editable-content h3 {
    color: #0073aa;
    margin-top: 0;
}

.editable-content p {
    margin-bottom: 15px;
}

.editable-content ul,
.editable-content ol {
    margin-bottom: 15px;
    padding-left: 30px;
}

.editable-content a {
    color: #0073aa;
    text-decoration: none;
}

.editable-content a:hover {
    text-decoration: underline;
}

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

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* News Section */
.news-section {
    background: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
}

.news-section h2 {
    color: #0073aa;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.news-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item h3 a {
    color: #333;
    text-decoration: none;
    font-size: 1.3em;
}

.news-item h3 a:hover {
    color: #0073aa;
}

.news-meta {
    color: #666;
    font-size: 0.9em;
    margin: 8px 0;
}

.read-more {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* Quick Links */
.quick-links {
    background: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
}

.quick-links h2 {
    color: #0073aa;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.quick-link {
    display: block;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quick-link:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
    text-decoration: none;
}

.quick-link h3 {
    margin: 0 0 8px 0;
    font-size: 1.1em;
}

.quick-link p {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.8;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.widget {
    background: rgba(255, 255, 255, 0.85);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
}

.widget h3 {
    color: #0073aa;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 8px;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.event-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.event-list li:last-child {
    border-bottom: none;
}

.event-name {
    font-weight: bold;
    color: #333;
}

.event-date {
    color: #666;
    font-size: 0.9em;
}

.clubs-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.clubs-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.clubs-list li:last-child {
    border-bottom: none;
}

.clubs-list a {
    color: #0073aa;
    text-decoration: none;
}

.clubs-list a:hover {
    text-decoration: underline;
}

/* Dynamic News Styles */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.view-all-news {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
}

.view-all-news:hover {
    text-decoration: underline;
}

.news-meta {
    color: #666;
    font-size: 0.85em;
    margin: 8px 0;
}

.news-meta span {
    margin-right: 15px;
}

.news-meta .club {
    color: #0073aa;
    font-style: italic;
}

.news-meta .category {
    background: #0073aa;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8em;
}

.news-categories {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.news-categories h3 {
    color: #0073aa;
    margin-bottom: 15px;
}

.category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-link {
    display: inline-block;
    padding: 8px 12px;
    background: #f8f9fa;
    color: #0073aa;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: #0073aa;
    color: white;
    text-decoration: none;
}

/* News Archive Page Styles */
.news-archive-page {
    margin: 0;
    padding: 0;
}

.page-header {
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: white;
}

.page-header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.news-filters {
    background: rgba(255, 255, 255, 0.85);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
}

.news-filters h3 {
    margin-bottom: 15px;
    color: #0073aa;
}

.filter-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-link {
    padding: 8px 15px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.filter-link:hover,
.filter-link.active {
    background: #0073aa;
    color: white;
    text-decoration: none;
}

.news-item-archive {
    background: rgba(255, 255, 255, 0.85);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
}

.news-meta-archive {
    color: #666;
    font-size: 0.85em;
    margin-bottom: 15px;
}

.news-meta-archive span {
    margin-right: 15px;
}

.news-meta-archive .category-badge {
    background: #0073aa;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8em;
}

.news-item-archive h2 {
    margin: 15px 0;
}

.news-item-archive h2 a {
    color: #333;
    text-decoration: none;
}

.news-item-archive h2 a:hover {
    color: #0073aa;
}

.news-excerpt {
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more-btn {
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.read-more-btn:hover {
    background: #005177;
    color: white;
    text-decoration: none;
}

.comments-count a {
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
}

.comments-count a:hover {
    color: #0073aa;
}

.news-pagination {
    margin: 40px 0;
    text-align: center;
}

.news-pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    gap: 5px;
}

.news-pagination li {
    margin: 0;
}

.news-pagination a,
.news-pagination span {
    display: block;
    padding: 10px 15px;
    background: white;
    color: #0073aa;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.news-pagination .current {
    background: #0073aa;
    color: white;
}

.news-pagination a:hover {
    background: #0073aa;
    color: white;
    text-decoration: none;
}

/* Sidebar Widgets for News */
.create-post-btn,
.register-btn,
.login-btn {
    display: block;
    background: #0073aa;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 10px;
    transition: background 0.3s ease;
}

.create-post-btn:hover,
.register-btn:hover,
.login-btn:hover {
    background: #005177;
    color: white;
    text-decoration: none;
}

.login-btn {
    background: #666;
}

.recent-posts-list {
    list-style: none;
    padding: 0;
}

.recent-posts-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.recent-posts-list li:last-child {
    border-bottom: none;
}

.recent-posts-list a {
    color: #0073aa;
    text-decoration: none;
    flex: 1;
    line-height: 1.4;
}

.recent-posts-list a:hover {
    text-decoration: underline;
}

.post-date {
    color: #666;
    font-size: 0.8em;
    margin-left: 10px;
    white-space: nowrap;
}

.archive-list {
    list-style: none;
    padding: 0;
}

.archive-list li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.archive-list li:last-child {
    border-bottom: none;
}

.archive-list a {
    color: #0073aa;
    text-decoration: none;
}

.archive-list a:hover {
    text-decoration: underline;
}

.no-news {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .slide {
        flex-direction: column;
        text-align: center;
    }
    
    .slide-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .news-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .filter-links,
    .category-links {
        flex-direction: column;
    }
    
    .news-actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .recent-posts-list li {
        flex-direction: column;
        gap: 5px;
    }
    
    .post-date {
        margin-left: 0;
    }
}
