﻿/* index.css */

/* --- Variables & Color Scheme --- */
:root {
    /* Cherry Blossom Inspired CI Colors */
    --color-primary: #DE3163; /* Cerise / Cherry Red-Pink */
    --color-primary-dark: #b51c4a;
    --color-primary-light: #fce4ec;
    --color-primary-hover: #b51c4a;
    
    --color-secondary: #333333;
    --color-secondary-dark: #111111;
    --color-secondary-light: #e0e0e0;
    
    --color-accent: #E84A5F;
    --color-accent-hover: #D64161;
    
    --color-bg-main: #f8f9fa;
    --color-bg-light: #ffffff;
    --color-bg-dark: #222222;
    
    --color-text-main: #333333;
    --color-text-light: #777777;
    --color-text-dark: #111111;
    --color-text-inverse: #ffffff;
    
    --font-main: 'Noto Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --border-radius: 8px;
}

[data-theme="dark"] {
    --color-bg-main: #1a1a1a;
    --color-bg-light: #222222;
    --color-text-main: #e0e0e0;
    --color-text-dark: #ffffff;
    --color-primary: #ff4d79;
    --color-primary-hover: #ff7096;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.5);
}

[data-theme="dark"] .btn-primary {
    color: #111 !important;
}
[data-theme="dark"] .btn-primary:hover {
    color: #111 !important;
}

[data-theme="dark"] .card, 
[data-theme="dark"] .post-card, 
[data-theme="dark"] .history-year, 
[data-theme="dark"] .honorary-card,
[data-theme="dark"] .reports-list li,
[data-theme="dark"] .bg-light,
[data-theme="dark"] .archive-hero,
[data-theme="dark"] .timeline-section,
[data-theme="dark"] .hall-of-fame,
[data-theme="dark"] .post-archive,
[data-theme="dark"] .supporter-card,
[data-theme="dark"] .board-card {
    background: #2a2a2a;
    border-color: #333;
    color: #e0e0e0;
}

[data-theme="dark"] .main-footer {
    background: #111111;
    color: #e0e0e0;
}

[data-theme="dark"] .footer-widget h4 {
    color: #ffffff;
}

[data-theme="dark"] .footer-widget a {
    color: #cccccc;
}

[data-theme="dark"] .footer-widget a:hover {
    color: #ffffff;
}

[data-theme="dark"] .footer-bottom {
    background-color: #0a0a0a;
}

[data-theme="dark"] .bottom-grid p {
    color: #888888;
}

[data-theme="dark"] .btn-secondary {
    background: #333333;
    color: #ffffff;
    border-color: #555;
}

[data-theme="dark"] .btn-outline {
    border-color: #ffffff;
    color: #ffffff;
}

[data-theme="dark"] .main-header {
    background-image: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('../images/Header-bg.webp');
    background-color: #222;
}

[data-theme="dark"] .hero-section {
    background-image: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

[data-theme="dark"] body::after {
    opacity: 0.15;
    filter: invert(1);
    mix-blend-mode: screen;
}

/* --- Global Reset & Basics --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    line-height: 1.6;
    background-color: var(--color-bg-light);
    overflow-x: hidden;
}

/* Watermark Pagode fixed above everything but unclickable */
body::after {
    content: "";
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../images/BG-pagode.webp');
    background-repeat: no-repeat;
    background-position: right bottom;
    z-index: 100;
    pointer-events: none; /* Let clicks pass through */
    mix-blend-mode: multiply; /* Whites become transparent, dark lines blend with background */
    opacity: 0.6; /* Adjust intensity */
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-dark);
    padding: 0.5rem 1rem;
    font-weight: 600;
}

/* --- Theme Toggle Button --- */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: var(--color-bg-light);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 9999 !important;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-toggle:hover {
    transform: scale(1.1);
}



a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--color-primary-hover);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.bg-light {
    background-color: var(--color-bg-light);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: white;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: white;
}

/* --- Header Layout (Grid) --- */
.main-header {
    background-color: white;
    background-image: url('../images/Header-bg.webp');
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo img {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.jp-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.1;
}

.de-text {
    font-size: 0.75rem;
    color: var(--color-text-main);
    font-weight: 400;
    line-height: 1.2;
}

.header-nav {
    justify-self: center;
}

.header-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1.5rem;
}

.header-nav a {
    color: var(--color-text-dark);
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
}

.header-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-primary);
    transition: width var(--transition-speed) ease;
}

.header-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.member-login {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-text-main) !important;
    font-size: 0.9rem;
    font-weight: 600;
}

.member-login:hover {
    color: var(--color-primary) !important;
}

/* --- Hero Section --- */
.hero-section {
    background-color: var(--color-bg-main);
    background-image: linear-gradient(135deg, #fdfbfb 0%, #f5f7fa 100%);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #eaeaea;
}

/* Sakura subtle pattern simulation */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.4) 0%, transparent 10%),
                      radial-gradient(circle at 80% 70%, rgba(255,255,255,0.4) 0%, transparent 10%);
    opacity: 0.6;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    animation: fadeInDown 0.8s ease-out;
}

.hero-content p {
    font-size: 1.2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* --- Content Sections --- */
.content-section {
    padding: 5rem 0;
}

.content-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.content-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* --- Grids & Cards --- */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border-top: 4px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--color-primary);
}

.card .date {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Event Cards */
.event-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    align-items: flex-start;
}

.event-date {
    background-color: var(--color-bg-light);
    border: 2px solid var(--color-accent);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    text-align: center;
    min-width: 80px;
}

.event-date .day {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.event-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color-text-main);
}

.event-details h3 {
    margin-bottom: 0.5rem;
}

.event-details p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* --- About Us Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.board-card ul {
    list-style: none;
    padding: 0;
}

.board-card li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.obfuscated-email {
    color: #999;
    font-size: 0.85rem;
}

.extended-board li, .founders-list li {
    margin-bottom: 0.3rem;
    padding-left: 1rem;
    position: relative;
    font-size: 0.9rem;
}

.extended-board li::before, .founders-list li::before {
    content: '•';
    color: var(--color-primary);
    position: absolute;
    left: 0;
}

.founders-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 1rem;
}

/* --- Supporters Section --- */
.supporters-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.supporter-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    color: var(--color-text-dark);
    font-weight: 600;
    border: 1px solid #eee;
    transition: all var(--transition-speed) ease;
}

.supporter-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--color-primary);
}

/* --- Footer Layout (Grid) --- */
.main-footer {
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-widget h4 {
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
    position: relative;
    font-size: 1.1rem;
}

.footer-widget h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--color-primary); /* DJG Red Accent */
    margin-top: 0.5rem;
    border-radius: 2px;
}

.footer-widget p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 0.6rem;
}

.footer-widget a {
    color: var(--color-text-main);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.footer-widget a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-accent) !important;
}

.footer-supporters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mini-supporter {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.footer-bottom {
    background-color: #e9ecef;
    padding: 1.5rem 0;
}

.bottom-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bottom-grid p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #999;
    background: rgba(255,255,255,0.05);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.85rem;
    transition: all var(--transition-speed) ease;
}

.social-links a:hover {
    background: var(--color-primary);
    color: white;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .main-header {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }
    
    .header-actions {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        justify-self: end;
    }
    
    .header-nav {
        grid-column: 1 / -1;
        grid-row: 2 / 3;
        justify-self: center;
        margin-top: 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-logo {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .main-header {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 1rem;
    }
    
    .header-actions {
        grid-column: 1 / -1;
        grid-row: 2 / 3;
        justify-self: center;
    }
    
    .header-nav {
        grid-row: 3 / 4;
    }
    
    .header-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .bottom-grid {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-date {
        align-self: flex-start;
    }
}

/* --- Dark Mode Overrides for specific buttons --- */
[data-theme="dark"] .btn-outline {
    border-color: #CFB53B;
    color: #CFB53B;
    background: transparent;
}
[data-theme="dark"] .btn-outline:hover {
    background: #CFB53B;
    color: #111;
}

/* --- Restored Background Images --- */

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.6)), url('../images/hero_sakura_momiji.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 0.9)), url('../images/hero_sakura_momiji.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Archive Hero */
.archive-hero {
    position: relative;
    background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.8)), url('../images/ukiyoe_bridge_seigaiha_washi.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

[data-theme="dark"] .archive-hero {
    position: relative;
    background: linear-gradient(rgba(26, 26, 26, 0.7), rgba(26, 26, 26, 0.9)), url('../images/ukiyoe_bridge_seigaiha_washi.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Seigaiha Pattern for Wir ueber uns */
.bg-pattern {
    position: relative;
    background-image: url('../images/seigaiha_pattern.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

[data-theme="dark"] .bg-pattern {
    position: relative;
    background-image: linear-gradient(rgba(26,26,26,0.85), rgba(26,26,26,0.85)), url('../images/seigaiha_pattern.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Board Members */
.board-member {
    margin-bottom: 1.5rem;
    word-break: break-word;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}
.board-member:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.board-role {
    font-style: italic;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}
.board-duties {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--color-text-main);
}
.protected-email {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}
.protected-email::before {
    content: "✉ ";
}

.board-duties ul {
    margin-top: 0.5rem;
    padding-left: 1.2rem;
    list-style-type: disc;
}
.board-duties li {
    margin-bottom: 0.25rem;
}

.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--color-primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 9998;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}
.scroll-top-btn:hover {
    transform: translateY(-5px);
    background: var(--color-primary-hover);
}


/* --- AI Transparency Badge (EU AI Act Art. 50) --- */
.ai-badge {
    position: absolute;
    bottom: 12px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff !important;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 3px 9px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    text-decoration: none;
    cursor: help;
    z-index: 20;
    transition: all 0.25s ease;
    user-select: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.ai-badge:hover,
.ai-badge:focus {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.ai-badge .ai-badge-tooltip {
    position: absolute;
    bottom: 135%;
    right: 0;
    background: #1f1f1f;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.2s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 30;
}

.ai-badge:hover .ai-badge-tooltip,
.ai-badge:focus .ai-badge-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ai-badge .ai-badge-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 14px;
    border-width: 5px;
    border-style: solid;
    border-color: #1f1f1f transparent transparent transparent;
}

[data-theme="dark"] .ai-badge {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #f5f5f5 !important;
}

[data-theme="dark"] .ai-badge:hover,
[data-theme="dark"] .ai-badge:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.55);
}

[data-theme="dark"] .ai-badge .ai-badge-tooltip {
    background: #111111;
    border-color: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .ai-badge .ai-badge-tooltip::after {
    border-color: #111111 transparent transparent transparent;
}


/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    /* Fix sticky menus on mobile */
    .main-header, .header-nav, header, nav { position: relative !important; top: auto !important; }
    .scroll-top-btn { bottom: 1rem; right: 1rem; }

    .main-header {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .header-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .header-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .header-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .theme-toggle {
        bottom: 1rem;
        left: 1rem;
        width: 45px;
        height: 45px;
    }
}
