/* --------------------------------------------------
   GLOBAL STYLING
-------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: url("../images/bg-texture.jpg") repeat;
    background-size: 600px;
    color: #5a3a24;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    border: 10px solid rgba(227,196,139,0.5); /* page frame */
}


/* --------------------------------------------------
   HEADER
-------------------------------------------------- */

header {
    background: url("../images/bg-texture.jpg") repeat;
    background-size: 500px;
    background-position: center;
    padding: 14px 0;
    border-bottom: 3px solid rgba(120, 60, 30, 0.25);
}

.nav-container img {
    width: 28px;
    margin-right: 10px;
    vertical-align: middle;
    animation: rocket-wiggle 4s ease-in-out infinite;
}

@keyframes rocket-wiggle {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-10deg); }
}


/* --------------------------------------------------
   LEGO NAV BUTTONS
-------------------------------------------------- */

nav {
    text-align: center;
    margin-top: 6px;
}

nav a {
    font-size: 15px;
    font-weight: 600;
    color: #8a2f00;
    background: #ffd66c;
    padding: 10px 20px;
    border-radius: 6px;
    margin: 0 6px;
    display: inline-block;
    position: relative;
    box-shadow: 0 4px 0 #caa245;
    transition: all 0.25s ease;
    border: 2px solid #e6b34a;
}

/* LEGO studs */
nav a::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #ffe38f;
    border-radius: 50%;
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

nav a:hover {
    background: #ffe38f;
    box-shadow: 0 2px 0 #caa245;
    transform: translateY(2px);
    filter: drop-shadow(0 0 6px rgba(255,215,120,0.6)); /* sparkle */
}

nav a.active {
    background: #ffc84d;
}

/* FEATURE BOXES */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}


.feature-box {
    display: block;
    background: rgba(255, 245, 200, 0.85); /* warm box colour */
    border: 2px solid #d39a2f;             /* gold frame */
    border-radius: 12px;
    padding: 18px 20px;
    text-decoration: none;
    color: #5a3a24;                        /* warm brown */
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    backdrop-filter: blur(2px);
    transition: transform 0.1s ease, box-shadow 0.15s ease;
}

/* hover effect */
.feature-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.18);
}

/* Title inside boxes */
.feature-box h3 {
    margin: 0 0 6px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #b44316;
}





/* --------------------------------------------------
   HERO SECTION
-------------------------------------------------- */

.hero {
    text-align: center;
    margin-top: 20px;
}

.hero-logo {
    max-width: 350px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */

footer {
    text-align: center;
    padding: 40px 0 20px;
    margin-top: 40px;
    background: url("../images/bg-texture.jpg") repeat;
    background-size: 600px;
    border-top: 3px solid #e3c48b;
}

.footer-rocket {
    width: 40px;
    animation: rocket-wiggle 4s ease-in-out infinite;
}

.footer-links a {
    text-decoration: none;
    color: #b43616;
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ----------------------------------------
   ABOUT PAGE — Soft Parchment Section Cards
----------------------------------------- */

/* Wrapper box at top of page */
.about-header-box {
    background: rgba(255, 245, 230, 0.7); /* warm soft parchment */
    border: 2px solid rgba(208, 170, 120, 0.7);
    border-radius: 10px;
    padding: 25px 30px;
    margin: 30px auto 40px auto;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.about-header-box h1 {
    margin: 0;
    font-size: 2rem;
    color: #8a4926;
}

.about-header-box .tagline {
    font-size: 1.2rem;
    margin-top: 8px;
    color: #a65b35;
}

.about-header-box .subtag {
    font-size: 1rem;
    margin-top: 5px;
    color: #7a4a2a;
}

/* Individual section cards */
.about-section {
    background: rgba(255, 245, 220, 0.75);
    border: 2px solid rgba(200, 155, 105, 0.6);
    border-radius: 10px;
    padding: 25px 30px;
    margin: 25px auto;
    max-width: 850px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Soft lift on hover */
.about-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}

/* Section titles */
.about-section h2 {
    margin-top: 0;
    font-size: 1.4rem;
    color: #8a4926;
    border-bottom: 2px solid rgba(200, 160, 110, 0.4);
    padding-bottom: 6px;
    margin-bottom: 14px;
}

/* Paragraphs */
.about-section p {
    line-height: 1.55;
    color: #5e4028;
    margin-bottom: 10px;
}

/* Legacy link button */
.legacy-link {
    display: inline-block;
    background: #f9e4b8;
    padding: 10px 18px;
    border-radius: 8px;
    border: 2px solid rgba(180, 130, 80, 0.6);
    color: #8a4926;
    font-weight: 600;
    margin-top: 12px;
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.legacy-link:hover {
    background: #ffe9c7;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
/* ================================
   MEMORY LANE PAGE
   ================================ */

.memory-main {
    max-width: 1100px;
    margin: 40px auto 60px;
    padding: 0 16px;
}

/* Re-use page-header styling but let Memory Lane breathe a bit more */
.page-header--memory {
    margin-bottom: 32px;
}

/* Intro text tweaks */
.memory-intro h2 {
    margin-bottom: 10px;
}

.memory-intro p + p {
    margin-top: 8px;
}

.memory-key {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Featured story box */
.memory-feature {
    margin-top: 24px;
    border-left: 5px solid #e3641a;
}

.memory-feature__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 8px;
}

.memory-feature__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #c2410c;
}

.memory-feature__note {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* CTA button for features */
.btn-cta {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 20px;
    border-radius: 999px;
    background: linear-gradient(145deg, #ffd45a, #ffb531);
    color: #7a2a16;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 3px 0 #d28722, 0 6px 12px rgba(0, 0, 0, 0.18);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 0 #d28722, 0 10px 18px rgba(0, 0, 0, 0.22);
}

/* Timeline area */
.memory-timeline {
    margin-top: 28px;
}

.decade-block {
    margin-top: 20px;
}

.decade-block h3 {
    margin-bottom: 8px;
}

/* Horizontal strip that can “spin” through years */
.timeline-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 6px 4px;
    scrollbar-width: thin;
    scrollbar-color: #d3a35a transparent;
    border-radius: 10px;
    background: rgba(255, 242, 210, 0.65);
}

/* Webkit scrollbars (Chrome, Edge, etc.) */
.timeline-strip::-webkit-scrollbar {
    height: 6px;
}
.timeline-strip::-webkit-scrollbar-track {
    background: transparent;
}
.timeline-strip::-webkit-scrollbar-thumb {
    background: #d3a35a;
    border-radius: 999px;
}

/* Year “pills” */
.year-pill {
    flex: 0 0 auto;
    min-width: 96px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(141, 87, 38, 0.4);
    background: rgba(255, 253, 240, 0.95);
    font-size: 0.85rem;
    font-weight: 500;
    color: #7a3c1f;
    text-align: center;
    text-decoration: none;
    cursor: default;
    box-shadow: 0 2px 0 rgba(141, 87, 38, 0.55);
}

.year-pill--soon {
    opacity: 0.85;
}

/* Completed feature – clickable rocket */
.year-pill--done {
    background: linear-gradient(145deg, #ffe08a, #ffc557);
    border-color: #d8872b;
    cursor: pointer;
}

.year-pill--done:hover {
    filter: brightness(1.03);
}

/* Make links inside the timeline look like pills, not blue links */
.timeline-strip a.year-pill {
    color: #7a3c1f;
}

/* Note under the timeline */
.timeline-note {
    margin-top: 14px;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Mobile tweaks */
@media (max-width: 700px) {
    .memory-main {
        margin-top: 24px;
    }

    .memory-feature__header {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* ----------------------------------
   REMEMBER THESE – FEATURE PAGE
---------------------------------- */

.feature-header {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px 30px;
    text-align: center;
    background: rgba(255, 255, 255, 0.65);
    border: 3px solid #e3c48b;
    border-radius: 16px;
}

.feature-header h1 {
    font-size: 42px;
    color: #b43616;
    margin-bottom: 10px;
}

.feature-subtitle {
    font-size: 20px;
    color: #6b3f1f;
}

/* Content */

.feature-content {
    max-width: 950px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.catalogue-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.catalogue-image figcaption {
    margin-top: 10px;
    font-style: italic;
    color: #5a3b1d;
}

.feature-text {
    margin-top: 30px;
    background: #ffd400;
    padding: 30px;
    border-radius: 12px;
    color: #c50000;
    line-height: 1.8;
    font-size: 18px;
}

.feature-text strong {
    color: #b10000;
}
