﻿@charset "utf-8";

/* ---------------------------------------------------
   GLOBAL RESET + BASE
--------------------------------------------------- */
* {
    box-sizing: border-box;
}

body {
    background-color: #1f1f1f;
    margin: 0;
    padding: 0;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #f0f0f0;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0 0 15px 0;
    padding: 0;
}

a {
    color: #9ecbff;
    text-decoration: underline;
}
a:hover {
    color: #cfe6ff;
    text-decoration: none;
}
a:visited {
    color: #d48cff;
}

img {
    border: none;
    max-width: 100%;
    height: auto;
}

/* ---------------------------------------------------
   HEADER — NAV LEFT, LOGO CENTERED
--------------------------------------------------- */
.site-header {
    background-color: #2b2b2b;
    padding: 12px 20px;
    color: #d4d4d4;
    border-radius: 0 0 12px 12px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
}

/* NAVIGATION LEFT (desktop) */
.header-nav {
    position: absolute;
    left: 20px;
    display: flex;
    gap: 10px;
}

.header-nav a {
    display: inline-block;
    padding: 8px 12px;
    background: #444;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    font-size: 1.05rem;
    line-height: 1;
}

.header-nav a:hover {
    background: #555;
}

/* LOGO + TITLE CENTERED */
.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.logo-area img {
    width: 250px;
    height: auto;
    border-radius: 10px;
}

.site-title {
    font-size: 2.55rem;
    font-weight: bold;
    margin: 0;
    color: #ffffff;
    line-height: 1;
}

/* ---------------------------------------------------
   HAMBURGER MENU (mobile)
--------------------------------------------------- */
.hamburger {
    display: none;
    background: #444;
    color: #fff;
    border: 1px solid #666;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 1001;
}

/* ---------------------------------------------------
   MOBILE BREAKPOINT
--------------------------------------------------- */
@media (max-width: 800px) {

    /* Show hamburger */
    .hamburger {
        display: block;
        position: absolute;
        right: 20px;
        top: 15px;
    }

    /* Hide full nav by default */
    .header-nav {
        display: none;
        flex-direction: column;
        gap: 10px;
        background: #222;
        padding: 15px;
        border-radius: 8px;

        position: absolute;
        top: 60px;
        left: 20px;
        width: 200px;
        z-index: 1000;
    }

    /* When toggled */
    .header-nav.open {
        display: flex;
    }

    /* Larger touch-friendly links */
    .header-nav a {
        padding: 12px 0;
        font-size: 1.2rem;
        text-align: left;
    }

    /* Stack header vertically */
    .site-header {
        flex-direction: column;
        align-items: center;
        padding-bottom: 20px;
    }

    /* Center logo on mobile */
    .logo-area img {
        width: 200px;
    }

    .site-title {
        font-size: 2rem;
    }
}

/* ---------------------------------------------------
   HERO SECTION
--------------------------------------------------- */
.hero {
    text-align: center;
    padding: 1rem 1rem;
    margin: 0 auto 0.8rem auto;
    border-bottom: 1px solid #3a3a3a;
}

.hero h1 {
    font-size: 1.9rem;
    margin-bottom: 0.3rem;
}

.hero p {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 0;
}

/* ---------------------------------------------------
   FLEX CONTENT LAYOUT
--------------------------------------------------- */
.content-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 20px;
}

.left, .right {
    flex: 1 1 350px;
    min-width: 300px;
}

.content-single {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* ---------------------------------------------------
   PANELS
--------------------------------------------------- */
.panel {
    background: #2b2b2b;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.panel h2, .panel h3 {
    color: #ffffff;
}

/* ---------------------------------------------------
   EXPERIMENT LINKS
--------------------------------------------------- */
.expt a {
    display: block;
    padding: 12px;
    background: #444;
    border-radius: 6px;
    margin-bottom: 12px;
    text-align: center;
    font-size: 1.25rem;
}

.expt a:hover {
    background: #555;
}

/* ---------------------------------------------------
   SHARE ICON BAR
--------------------------------------------------- */
.social-bar {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-bar img {
    width: 32px;
    height: 32px;
    opacity: 0.85;
    filter: invert(1);
    transition: opacity 0.2s, transform 0.2s;
}

.social-bar img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Larger icons on mobile */
@media (max-width: 800px) {
    .social-bar img {
        width: 44px;
        height: 44px;
    }
}

/* ---------------------------------------------------
   COPY LINK BUTTON
--------------------------------------------------- */
.copy-link {
    background: #444;
    color: #fff;
    border: 1px solid #666;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s;
}

.copy-link:hover {
    background: #555;
    transform: scale(1.05);
}

/* ---------------------------------------------------
   BOOKMARK BUTTON
--------------------------------------------------- */
.bookmark-btn {
    background: #444;
    color: #fff;
    border: 1px solid #666;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 10px;
    transition: background 0.2s, transform 0.2s;
}

.bookmark-btn:hover {
    background: #555;
    transform: scale(1.05);
}

/* ---------------------------------------------------
   FOOTER
--------------------------------------------------- */
.footer {
    background-color: #2b2b2b;
    padding: 20px;
    text-align: center;
    color: #ccc;
    border-radius: 12px 12px 0 0;
    margin-top: 40px;
}