/* 
 * MAIN.CSS
 * Combined CSS file for FlipperFreunde Fellbach website
 * This file consolidates fonts.css, basic.css, style.css, and override.css
 */


/* ================================================
   FONT DEFINITIONS 
   ================================================ */


/* Noto Sans Mono font definitions using local files */

@font-face {
    font-display: swap;
    font-family: 'Noto Sans Mono';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/noto-sans-mono-v30-latin-regular.eot');
    src: url('../fonts/noto-sans-mono-v30-latin-regular.woff2') format('woff2'), url('../fonts/noto-sans-mono-v30-latin-regular.woff') format('woff'), url('../fonts/noto-sans-mono-v30-latin-regular.ttf') format('truetype');
}

@font-face {
    font-display: swap;
    font-family: 'Noto Sans Mono';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/noto-sans-mono-v30-latin-300.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Noto Sans Mono';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/noto-sans-mono-v30-latin-600.eot');
    src: url('../fonts/noto-sans-mono-v30-latin-600.woff2') format('woff2'), url('../fonts/noto-sans-mono-v30-latin-600.woff') format('woff'), url('../fonts/noto-sans-mono-v30-latin-600.ttf') format('truetype');
}

@font-face {
    font-display: swap;
    font-family: 'Noto Sans Mono';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/noto-sans-mono-v30-latin-900.eot');
    src: url('../fonts/noto-sans-mono-v30-latin-900.woff2') format('woff2'), url('../fonts/noto-sans-mono-v30-latin-900.woff') format('woff'), url('../fonts/noto-sans-mono-v30-latin-900.ttf') format('truetype');
}


/* ================================================
   VARIABLES & ROOT
   ================================================ */

:root {
    /* Main colors */
    --primary-color: #ff7700;
    --secondary-color: #333;
    --bg-color: #fff;
    --text-color: #333;
    --link-color: #ff7700;
    --hover-color: #ffaa00;
    --footer-bg: #f5f5f5;
    --border-color: #ddd;
    /* Fonts */
    --font-main: 'Noto Sans Mono', monospace;
    --font-heading: 'Noto Sans Mono', monospace;
    /* Spacing */
    --spacing-unit: 1rem;
}


/* ================================================
   BASE STYLES & RESET
   ================================================ */


/* Reset default styles */

body,
h1,
h2,
h3,
ul,
p {
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}


/* General typography */

p {
    margin-bottom: 1em;
    font-size: 1em;
}

h2 {
    color: var(--primary-color);
    font-family: var(--font-heading);
    margin-top: 1.5rem;
    margin-bottom: 0.5em;
}

h3 {
    font-family: var(--font-heading);
    margin-top: 1.2rem;
    margin-bottom: 0.5em;
    color: #222222;
}


/* Link styling - unified */

a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    color: var(--hover-color);
    text-decoration: none;
}


/* Main content */

main {
    flex: 1;
    margin-bottom: 30px;
}


/* Content sections */

.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-unit);
}


/* ================================================
   HEADER & NAVIGATION
   ================================================ */


/* Header and Logo */

header {
    text-align: center;
    padding: var(--spacing-unit) 0;
    background-color: #fff;
}

.logo-container {
    display: flex;
    justify-content: center;
}

.logo {
    max-width: 100%;
    height: auto;
}


/* Navigation */

nav {
    background-color: #222;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 8px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    nav {
        justify-content: flex-end;
        padding: 8px 15px;
    }
}


/* Nav menu */

.menu {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.menu li {
    margin: 0 10px;
}


/* Nav links */

.nav-link,
nav a,
.menu a {
    text-decoration: none;
    color: #fff;
    padding: 10px;
    font-weight: bold;
    display: block;
    transition: color 0.3s ease;
}

.nav-link:hover,
nav a:hover,
.menu a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.nav-link.active-link {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}


/* Mobile menu toggle - fixed for visibility */

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 12px;
    margin: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: background-color 0.3s;
    z-index: 200;
    position: relative;
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.menu-toggle div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: transform 0.3s, opacity 0.3s;
}


/* ================================================
   LISTS & TABLES
   ================================================ */


/* Lists styling - fixed */

ul {
    list-style: none;
}

main ul {
    list-style-type: square;
    padding-left: 1.5rem;
    margin-bottom: 12px;
    display: block;
}

main ul li {
    display: list-item;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    padding: 2px 0;
}

.dates-list,
.pinball-list {
    list-style-type: square;
    padding-left: 1.5rem;
}

.dates-list li,
.pinball-list li {
    margin-bottom: 0.5rem;
}

.pinball-item {
    margin-bottom: 1rem;
}


/* Features lists */

.features-list,
.tips-list {
    list-style-type: square;
    padding-left: 1.5rem;
}

.strategy-list {
    padding-left: 1.5rem;
}

.features-list li,
.tips-list li,
.strategy-list li {
    margin-bottom: 0.5rem;
}


/* Price lists */

.pricelist {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    max-width: 600px;
}

.pricelistitem,
.pricelistprice {
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
}

.pricelistitem {
    max-width: 500px;
}

.pricelistprice {
    width: 100px;
    text-align: right;
    font-weight: bold;
}


/* Points table */

.points-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.points-table th,
.points-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.points-table th {
    background-color: rgba(0, 0, 0, 0.05);
    font-weight: bold;
}


/* ================================================
   SPECIAL ELEMENTS
   ================================================ */


/* Special link styles */

.external-link,
.document-link,
.summary-link,
.email-link {
    font-weight: bold;
}

.external-link,
.back-link {
    font-weight: bold;
    transition: color 0.2s;
}


/* Content links */

main a {
    color: var(--link-color);
}

.back-link::before {
    content: "←";
    margin-right: 5px;
}

.highlight {
    color: var(--primary-color);
}


/* Pinball info sections */

.pinball-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2rem;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 1rem;
    border-radius: 4px;
}

.pinball-metadata {
    flex: 1;
    min-width: 200px;
}

.pinball-links {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* Video containers */

.video-container {
    margin-top: 2rem;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}


/* Video summaries */

.video-summary {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.video-summary h2 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.5rem;
}

.video-summary h3 {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #333;
}

.timestamp-link {
    display: inline-block;
    background-color: rgba(255, 119, 0, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.timestamp-link:hover {
    background-color: rgba(255, 119, 0, 0.2);
    text-decoration: none;
}

.video-summary ul {
    margin-left: 1rem;
    margin-top: 1rem;
}

.video-summary li {
    margin-bottom: 0.8rem;
}


/* Tournament specific */

.tournament-info strong {
    color: var(--secondary-color);
}


/* Address styling */

address {
    font-style: normal;
    line-height: 1.6;
}


/* Separator */

.separator {
    width: 100%;
    height: 1px;
    background-color: #d3d3d3;
    margin: 20px 0;
}

.remark {
    font-size: 0.6rem;
}


/* ================================================
   FOOTER
   ================================================ */

.site-footer {
    background-color: #222;
    padding: 0.1rem var(--spacing-unit);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
    color: #fff;
    position: sticky;
    bottom: 0;
    width: 100%;
    z-index: 90;
    font-size: 0.5em;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 5px;
}

.site-footer a:hover {
    color: var(--primary-color);
    text-decoration: none;
}


/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 768px) {
    /* Mobile navigation */
    .menu-toggle {
        display: flex;
        position: absolute;
        right: 15px;
        top: 8px;
        z-index: 200;
    }
    nav {
        position: relative;
        /* Ensure the nav is tall enough to contain the hamburger icon */
        min-height: 60px;
    }
    .menu {
        flex-direction: column;
        display: none;
        background-color: #222;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 100;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    .menu li {
        width: 100%;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-link {
        padding: 15px 10px;
    }
    /* Mobile content */
    .content-section {
        padding: var(--spacing-unit) 15px;
    }
    /* Mobile pinball info */
    .pinball-info {
        flex-direction: column;
        gap: 1rem;
    }
    .points-table {
        font-size: 0.9em;
    }
    /* Mobile video summary */
    .video-summary {
        padding: 1rem;
    }
    .video-summary h2 {
        font-size: 1.2rem;
    }
    .video-summary h3 {
        font-size: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    .timestamp-link {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    /* Logo size on mobile */
    .logo {
        width: 200px;
    }
    /* Show menu when nav has .open class */
    nav.open .menu {
        display: flex;
    }
    /* Hamburger icon animation via nav.open */
    nav.open .menu-toggle div:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    nav.open .menu-toggle div:nth-child(2) {
        opacity: 0;
    }
    nav.open .menu-toggle div:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}


/* SlideDown keyframes moved outside media for compatibility */

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}