/*
Theme Name: Interkulturelle Denkfabrik Custom
Description: Custom CSS for colorful event and project showcase
Version: 1.0
*/

:root {
    --color-magenta: #E6007E;
    --color-yellow: #FFD500;
    --color-cyan: #00B8D4;
    --color-green: #00A651;
    --color-orange: #FF6B35;
    --color-purple: #7B68EE;
    --color-dark: #1A1A2E;
    --color-light: #F8F9FA;
}

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

body {
    font-family: 'Poppins', 'Arial', sans-serif;
    color: var(--color-dark);
    overflow-x: hidden;
}

/* Header Styles */
.custom-header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-brain {
    width: 150px;
    height: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-magenta);
}

/* Rainbow Divider */
.rainbow-divider {
    height: 8px;
    background: linear-gradient(
        to right,
        #228B22 0%,
        #228B22 16.66%,
        #FFD500 16.66%,
        #FFD500 33.32%,
        #FF6B35 33.32%,
        #FF6B35 49.98%,
        #E6007E 49.98%,
        #E6007E 66.64%,
        #7B68EE 66.64%,
        #7B68EE 83.3%,
        #00B8D4 83.3%,
        #00B8D4 100%
    );
}

/* Hero Section with Carousel */
.hero-section {
    position: relative;
    background: var(--color-light);
    padding: 60px 0;
    overflow: hidden;
}

/* Decorative Elements */
.deco-dots {
    position: absolute;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, var(--color-magenta) 2px, transparent 2px);
    background-size: 15px 15px;
    opacity: 0.3;
}

.deco-dots.top-left {
    top: 20px;
    left: 20px;
}

.deco-dots.bottom-right {
    bottom: 20px;
    right: 20px;
}

.deco-shape {
    position: absolute;
    opacity: 0.2;
}

.deco-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid var(--color-green);
}

.deco-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--color-cyan);
}

.deco-diamond {
    width: 100px;
    height: 100px;
    background: var(--color-yellow);
    transform: rotate(45deg);
}

/* Event Slider */
.event-slider {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

.slider-container {
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    display: flex;
    gap: 30px;
}

.slide-card {
    flex: 1;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.slide-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.slide-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.slide-content {
    padding: 30px;
}

.slide-title {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.slide-meta {
    color: white;
    font-size: 14px;
    line-height: 1.6;
}

/* Color backgrounds for slides */
.slide-card.magenta .slide-content {
    background: var(--color-magenta);
}

.slide-card.cyan .slide-content {
    background: var(--color-cyan);
}

.slide-card.dark .slide-content {
    background: var(--color-dark);
}

/* Slider Controls */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--color-dark);
    transition: all 0.3s;
    z-index: 10;
}

.slider-nav:hover {
    background: var(--color-magenta);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: -25px;
}

.slider-nav.next {
    right: -25px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--color-magenta);
    width: 30px;
    border-radius: 6px;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    color: var(--color-dark);
    margin: 80px 0 60px;
    text-transform: uppercase;
}

/* Highlights Grid */
.highlights-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 80px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.highlight-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.date-badge.magenta {
    background: var(--color-magenta);
}

.date-badge.yellow {
    background: var(--color-yellow);
    color: var(--color-dark);
}

.date-badge.cyan {
    background: var(--color-cyan);
}

.date-badge.green {
    background: var(--color-green);
}

.date-month {
    font-size: 14px;
    text-transform: uppercase;
}

.date-year {
    font-size: 16px;
}

.highlight-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.highlight-content {
    padding: 30px;
}

.highlight-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.category-tag {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    background: white;
    color: var(--color-dark);
    font-size: 12px;
    font-weight: 600;
    margin-top: 15px;
}

/* Color themes for highlight cards */
.highlight-card.magenta .highlight-content {
    background: linear-gradient(135deg, var(--color-magenta) 0%, #c1006a 100%);
}

.highlight-card.yellow .highlight-content {
    background: linear-gradient(135deg, var(--color-yellow) 0%, #e6c200 100%);
}

.highlight-card.cyan .highlight-content {
    background: linear-gradient(135deg, var(--color-cyan) 0%, #009bb5 100%);
}

.highlight-card.green .highlight-content {
    background: linear-gradient(135deg, var(--color-green) 0%, #008a43 100%);
}

/* Projects Grid - Right Sidebar */
.projects-sidebar {
    position: fixed;
    right: 0;
    top: 100px;
    width: 450px;
    background: white;
    padding: 40px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.sidebar-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-dark);
    text-transform: uppercase;
    margin-bottom: 30px;
}

.project-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.project-mini-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.project-mini-card:hover {
    transform: scale(1.05);
}

.project-mini-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.project-mini-content {
    padding: 15px;
}

.project-mini-title {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.project-mini-desc {
    font-size: 11px;
    color: white;
    line-height: 1.4;
    margin-bottom: 10px;
}

.project-mini-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 10px;
    background: white;
    font-size: 10px;
    font-weight: 600;
}

.project-mini-card.green .project-mini-content {
    background: var(--color-green);
}

.project-mini-card.yellow .project-mini-content {
    background: var(--color-yellow);
    color: var(--color-dark);
}

.project-mini-card.yellow .project-mini-title,
.project-mini-card.yellow .project-mini-desc {
    color: var(--color-dark);
}

.project-mini-card.cyan .project-mini-content {
    background: var(--color-cyan);
}

.project-mini-card.magenta .project-mini-content {
    background: var(--color-magenta);
}

.project-mini-card.dark-green .project-mini-content {
    background: #1B5E20;
}

.project-mini-card.orange .project-mini-content {
    background: var(--color-orange);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--color-magenta) 0%, #7B68EE 50%, var(--color-cyan) 100%);
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

.newsletter-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.newsletter-title {
    font-size: 42px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.newsletter-subtitle {
    font-size: 16px;
    color: white;
    margin-bottom: 40px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 18px 30px;
    border-radius: 30px;
    border: none;
    font-size: 16px;
}

.newsletter-button {
    padding: 18px 40px;
    background: var(--color-dark);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.newsletter-button:hover {
    background: white;
    color: var(--color-dark);
    transform: scale(1.05);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dark);
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--color-dark);
    color: white;
    transform: scale(1.2);
}

/* Newsletter decorative shapes */
.newsletter-section::before,
.newsletter-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
}

.newsletter-section::before {
    width: 300px;
    height: 300px;
    background: var(--color-yellow);
    bottom: -100px;
    right: -100px;
}

.newsletter-section::after {
    width: 200px;
    height: 200px;
    background: var(--color-orange);
    top: -50px;
    left: -50px;
}

/* Footer */
.custom-footer {
    background: var(--color-dark);
    color: white;
    padding: 20px 40px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-magenta);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .projects-sidebar {
        position: static;
        width: 100%;
        max-height: none;
        margin-top: 60px;
    }
}

@media (max-width: 768px) {
    .slide {
        flex-direction: column;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .project-mini-grid {
        grid-template-columns: 1fr;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 32px;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Eventin Integration Styles */
.eventin-event-card {
    border-radius: 20px !important;
    overflow: hidden !important;
}

.eventin-event-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 30px !important;
}
