/* GLOBAL */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    width: 100%;
}

body {
    width: 100%;
    margin: 0;
}

body {
    margin: 0;
    font-family: "Georgia", serif;
    background: #ffffff;
    color: #000;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

header {
    background: #000;
    color: #fff;
    padding: 20px 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 2px solid #222;

    position: sticky;
    top: 0;
    z-index: 1000;

    transition: all .3s ease;

    backdrop-filter: blur(8px);
}

body {
    padding-top: 0;
}

@keyframes slideDown {
    from { transform: translateY(-40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: 0.3s ease;
}

nav a:hover {
    color: #ccc;
    letter-spacing: 1px;
}

.hero {
    width: 100%;
    padding: 140px 40px;
    text-align: center;
    color: #fff;
    position: relative;

    /* FULL BACKGROUND */
    background-image: url("motorbikestockhero.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* darken + blend for readability */
    background-color: rgba(0, 0, 0, 0.55);
    background-blend-mode: darken;
}


@keyframes fadeUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.hero h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

/* CONTENT SECTIONS */
.content {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    animation: fadeUp 1s ease-out;
}

/* BOOK CARDS */
.book {
    background: #fff;
    padding: 25px;
    margin: 25px 0;
    border: 2px solid #000;
    border-radius: 16px;
    box-shadow: 0 0 0 0 rgba(0,0,0,0);
    transition: 0.3s ease;
    animation: fadeUp 1s ease-out;
}

.book:hover {
    transform: scale(1.02);
    background: #f7f7f7;
    box-shadow: 0 0 0 4px #000;
}

/* FEATURED BOOK SECTION */
.featured-book {
    max-width: 900px;
    margin: 60px auto;
    padding: 20px;
    animation: fadeUp 1.2s ease-out;
    text-align: center;
}

.featured-book h2 {
    font-size: 28px;
    margin-bottom: 30px;
    border-bottom: 2px solid #000;
    display: inline-block;
    padding-bottom: 5px;
}

/* BOOK SHOWCASE CARD */
.book-showcase {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    border: 2px solid #000;
    border-radius: 16px;
    padding: 25px;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(0,0,0,0);
    transition: 0.4s ease, box-shadow 0.4s ease;
    animation: fadeUp 1.2s ease-out;
}

.book-showcase:hover {
    transform: scale(1.02);
    background: #f5f5f5;
    box-shadow: 0 0 0 4px #000;
}

/* BOOK IMAGE */
.book-showcase img {
    width: 200px;
    height: auto;
    border: 2px solid #000;
    animation: fadeIn 1.5s ease-in-out;
}

/* BOOK INFO */
.book-info {
    max-width: 500px;
    text-align: left;
}

.book-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.book-info p {
    font-size: 16px;
    line-height: 1.6;
}

.book-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    border: 2px solid #000;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    transition: 0.3s ease;
}

.book-button:hover {
    background: #000;
    color: #fff;
}

/* NEWSLETTER SECTION */
.newsletter {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px 20px;
    text-align: center;
    border-top: 2px solid #000;
    animation: fadeUp 1s ease-out;
}

.newsletter h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.newsletter p {
    font-size: 16px;
    margin-bottom: 25px;
    color: inherit;
}

/* FORM */
.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.newsletter-form input {
    padding: 10px 15px;
    width: 250px;
    border: 2px solid #000;
    font-size: 16px;
    outline: none;
    transition: 0.3s ease;
}

.newsletter-form input:focus {
    background: #f5f5f5;
}

.newsletter-form button {
    padding: 10px 20px;
    border: 2px solid #000;
    background: #000;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}

.newsletter-form button:hover {
    background: #fff;
    color: #000;
}

/* CONTACT PAGE */
.contact-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 20px;
    animation: fadeUp 1s ease-out;
    text-align: center;
}

.contact-section h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.contact-section p {
    font-size: 16px;
    margin-bottom: 30px;
    color: inherit;
}

/* CONTACT FORM */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    border: 2px solid #000;
    font-size: 16px;
    outline: none;
    transition: 0.3s ease;
    font-family: Georgia, serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: #f5f5f5;
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

.contact-form button {
    padding: 12px 20px;
    border: 2px solid #000;
    background: #000;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}

.contact-form button:hover {
    background: #fff;
    color: #000;
}

body {
    margin: 0;
    font-family: "Georgia", serif;
    background: #ffffff;
    color: #000;
    animation: fadeIn 1s ease-in-out;

    /* subtle noise texture */
    background-image: radial-gradient(#00000010 1px, transparent 1px);
    background-size: 3px 3px;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 40px 20px;
    background: #000;
    color: #fff;
    margin-top: 60px;
    border-top: 2px solid #222;
}

/* LOGO */
.author-logo {
    width: 140px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 12px; /* curved corners */
    animation: fadeIn 1.2s ease-in-out;
}

/* SOCIAL TEXT */
.social-text {
    margin: 10px 0 15px;
    font-size: 16px;
    letter-spacing: 1px;
    color: inherit;
}

/* SOCIAL ICONS */
.socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.socials img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
    transition: 0.3s ease;
}

.socials img:hover {
    transform: scale(1.15);
    filter: brightness(0.8) invert(1);
}




/* HEADER WITH LOGO + TITLE */
header {
    background: #000;
    color: #fff;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #222;
    animation: slideDown 0.8s ease-out;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    width: 55px;
    height: auto;
    border-radius: 10px;
    transition: 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.site-title {
    font-size: 26px;
    margin: 0;
    font-weight: bold;
    letter-spacing: 1px;
    color: #fff;
}

/* NAV FIX FOR NEW LAYOUT */
nav a {
    margin: 0 12px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: 0.3s ease;
}

/* DARK MODE */
body.dark {
    background: #111;
    color: #fff;
}

body.dark header {
    background: #000;
    border-bottom: 2px solid #222;
}

/* DARK MODE — DO NOT TOUCH HERO BACKGROUND */
body.dark .book,
body.dark .book-showcase,
body.dark .newsletter,
body.dark .contact-section {
    background: #1a1a1a;
    border-color: #444;
}

body.dark .book:hover,
body.dark .book-showcase:hover {
    box-shadow: 0 0 0 4px #fff;
}

/* HERO stays with the motorcycle image */
body.dark .hero {
    background-image: url("motorbikestockhero.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* darker overlay for dark mode */
    background-color: rgba(0, 0, 0, 0.75);
    background-blend-mode: darken;

    color: #fff;
}


body.dark nav a {
    color: #fff;
}

body.dark footer {
    background: #000;
    border-top: 2px solid #222;
    color: #fff;
}

body.dark .social-text {
    color: inherit;
}

body.dark .socials img {
    filter: brightness(0) invert(1);
}

/* DARK MODE: SHOP CTA */
body.dark .shop-cta-box {
    background: #181818;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: #444;
}
body.dark .shop-cta-button {
    background: #222;
    color: #fff;
    border-color: #444;
}
body.dark .shop-cta-button:hover {
    background: #444;
    color: #fff;
}
body.dark .shop-cta-image img {
    border-color: #444;
}

body.dark .shop-cta-box:hover {
    box-shadow:
        0 10px 30px rgba(0,0,0,0.5),
        0 0 0 4px #fff;
}

/* DARK MODE: MAILERLITE EMBED */
body.dark .ml-form-embedContainer {
    background: #181818;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
body.dark .ml-form-embedContent h4 {
    color: #fff;
}
body.dark .ml-form-embedContent p {
    color: #fff;
}
body.dark .ml-form-fieldRow input {
    background: #222;
    color: #fff;
    border: 1px solid #444;
}
body.dark .ml-form-fieldRow input:focus {
    background: #222;
    color: #fff;
    border-color: #888;
}
body.dark .ml-form-embedSubmit button {
    background: #222;
    color: #fff;
    border: 1px solid #444;
}
body.dark .ml-form-embedSubmit button:hover {
    background: #444;
    color: #fff;
}
body.dark .ml-form-formContent,
body.dark .ml-form-fieldRow,
body.dark .ml-form-embedBody {
    background: transparent;
    color: #fff;
}

/* DARK MODE: GENERAL ACCENTS */
body.dark .book-button,
body.dark .shop-button,
body.dark .newsletter-form button,
body.dark .contact-form button {
    background: #222;
    color: #fff;
    border-color: #444;
}
body.dark .book-button:hover,
body.dark .shop-button:hover,
body.dark .newsletter-form button:hover,
body.dark .contact-form button:hover {
    background: #444;
    color: #fff;
}

body.dark .shop-prices {
    border-color: #333;
}
body.dark .price {
    color: #fff;
}
body.dark .ku {
    color: inherit;
}

/* Toggle button */
.dark-toggle {
    background: none;
    border: 2px solid #fff;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s ease;
}

.dark-toggle:hover {
    background: #fff;
    color: #000;
}

body.dark .dark-toggle {
    border-color: #fff;
    color: #fff;
}

body.dark .dark-toggle:hover {
    background: #fff;
    color: #000;
}


.hero,
.releases-hero {
    width: 100%;
    box-sizing: border-box;
}


/* UPCOMING RELEASES HERO */
.releases-hero {
    width: 100%;
    padding: 140px 40px;
    text-align: center;
    color: #fff;
    position: relative;

    background-image: url("motorbikestockhero.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    background-color: rgba(0, 0, 0, 0.55);
    background-blend-mode: darken;
}

.featured-carousel {
    position: relative;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
    padding: 50px 0;
}

.carousel-track {
    position: relative;
    height: 450px;
}

.carousel-item {
    position: absolute;
    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%)
        scale(.7);

    opacity: 0;

    transition:
        transform .8s ease,
        left .8s ease,
        opacity .8s ease;

    text-align: center;
}

.carousel-item img {
    width: 220px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
}

/* LEFT */

.carousel-item.left {
    left: 20%;
    transform:
        translate(-50%, -50%)
        scale(.8);

    opacity: .5;
    z-index: 1;
}

/* CENTER */

.carousel-item.center {
    left: 50%;
    transform:
        translate(-50%, -50%)
        scale(1);

    opacity: 1;
    z-index: 3;
}

/* RIGHT */

.carousel-item.right {
    left: 80%;
    transform:
        translate(-50%, -50%)
        scale(.8);

    opacity: .5;
    z-index: 1;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    border: none;
    background: black;
    color: white;

    width: 50px;
    height: 50px;

    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
}

.carousel-arrow.left {
    left: 10px;
}

.carousel-arrow.right {
    right: 10px;
}

.price {
    margin-top: 10px;
    font-weight: bold;
}

/* MAKE SOCIAL ICONS CLICKABLE WITHOUT EDITING HTML */

/* Facebook */
.socials a:nth-child(1) {
    pointer-events: auto;
}
.socials a:nth-child(1)::after {
    content: "";
    position: absolute;
    inset: 0;
    cursor: pointer;
}
.socials a:nth-child(1) {
    position: relative;
}
.socials a:nth-child(1):active {
    transform: scale(1.1);
}
.socials a:nth-child(1) {
    --url: "https://facebook.com/YOURPAGE";
}
.socials a:nth-child(1)::after {
    content: "";
}
.socials a:nth-child(1) {
    cursor: pointer;
}
.socials a:nth-child(1):hover img {
    transform: scale(1.15);
}
.socials a:nth-child(1) {
    display: inline-block;
}
.socials a:nth-child(1)::after {
    content: "";
    position: absolute;
    inset: 0;
}
.socials a:nth-child(1) {
    pointer-events: auto;
}
.socials a:nth-child(1)::after {
    content: "";
    position: absolute;
    inset: 0;
}
.socials a:nth-child(1) {
    position: relative;
}
.socials a:nth-child(1)::after {
    content: "";
    position: absolute;
    inset: 0;
}
.socials a:nth-child(1)::after {
    content: "";
    position: absolute;
    inset: 0;
    cursor: pointer;
}
.socials a:nth-child(1)::after {
    content: "";
}
.socials a:nth-child(1)::after {
    content: "";
}
.socials a:nth-child(1)::after {
    content: "";
}
.socials a:nth-child(1)::after {
    content: "";
}

/* Instagram */
.socials a:nth-child(2) {
    position: relative;
}
.socials a:nth-child(2)::after {
    content: "";
    position: absolute;
    inset: 0;
    cursor: pointer;
}
.socials a:nth-child(2) {
    pointer-events: auto;
}
.socials a:nth-child(2):active {
    transform: scale(1.1);
}
.socials a:nth-child(2)::after {
    content: "";
}

/* TikTok */
.socials a:nth-child(3) {
    position: relative;
}
.socials a:nth-child(3)::after {
    content: "";
    position: absolute;
    inset: 0;
    cursor: pointer;
}
.socials a:nth-child(3) {
    pointer-events: auto;
}
.socials a:nth-child(3):active {
    transform: scale(1.1);
}

/* Amazon */
.socials a:nth-child(4) {
    position: relative;
}
.socials a:nth-child(4)::after {
    content: "";
    position: absolute;
    inset: 0;
    cursor: pointer;
}
.socials a:nth-child(4) {
    pointer-events: auto;
}
.socials a:nth-child(4):active {
    transform: scale(1.1);
}

/* MOBILE RESPONSIVE FIXES */
@media (max-width: 768px) {

    /* HEADER */
    header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    nav a {
        margin: 5px 10px;
        font-size: 16px;
    }

    .header-left {
        flex-direction: column;
        gap: 10px;
    }

    .site-title {
        font-size: 22px;
    }

    /* HERO */
    .hero {
        padding: 80px 20px;
    }

    .hero h2 {
        font-size: 24px;
    }

    .hero p {
        font-size: 15px;
    }

    /* FEATURED BOOK */
    .book-showcase {
        flex-direction: column;
        text-align: center;
    }

    .book-showcase img {
        width: 160px;
    }

    /* NEWSLETTER */
    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }

    .newsletter-form input {
        width: 100%;
    }

    /* FOOTER */
    .socials {
        flex-wrap: wrap;
        gap: 20px;
    }

    .author-logo {
        width: 110px;
    }
}

/* SHOP GRID */

.shop-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 260px));
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

.shop-item{
    background:#fff;
    border:2px solid #000;
    padding:20px;
    text-align:center;
    cursor:pointer;

    transition:.35s ease;

    border-radius: 16px; 
    overflow: hidden;   
}

.shop-item:hover{
    transform:translateY(-8px);
    box-shadow:0 15px 30px rgba(0,0,0,.15);
}

.shop-item img{
    width:180px;
    height:auto;
    border-radius:8px;
    margin-bottom:15px;
}

.shop-item h3{
    margin:10px 0;
}

.series{
    color: inherit;
    margin-bottom:15px;
}

.shop-prices{
    border-top:1px solid #ddd;
    margin-top:15px;
    padding-top:15px;
}

.shop-prices p{
    margin:8px 0;
}

.ku{
    color: inherit;
    font-weight:bold;
}

/* dark mode */

body.dark .shop-item{
    background:#1a1a1a;
    border-color:#444;
}

body.dark .series{
    color: inherit;
}

body.dark .shop-prices{
    border-color:#333;
}

.about-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 20px;
}

.about-image img {
    width: 260px;
    border: 2px solid #000;
    border-radius: 10px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.6;
}

/* DARK MODE */
body.dark .about-image img {
    border-color: #444;
}

/* MOBILE */
@media (max-width: 768px) {
    .about-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .about-image img {
        width: 70%;
        margin: 0 auto;
    }
}

/* shop filter/search/sort controls */

.shop-controls{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
    margin-bottom:25px;
}

.shop-controls input,
.shop-controls select{
    padding:10px;
    border:1px solid #ccc;
    border-radius:10px;
}

.newsletter-wrapper {
    max-width: 500px;
    margin: 20px auto 0;
}

/* FORCE MAILERLITE CONTAINER TO CONTAIN CHILD WIDTHS */
.ml-form-embedContainer {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    color: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);

    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* TEXT */
.ml-form-embedContent h4 {
    margin: 0;
    font-size: 20px;
    color: inherit;
}

.ml-form-embedContent p {
    color: inherit;
    margin-bottom: 15px;
}

/* INPUT FIX (THIS IS THE KEY PART) */
.ml-form-fieldRow input {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;

    padding: 12px;
    border-radius: 8px;
    border: none;
    outline: none;
    margin-bottom: 12px;
    font-size: 14px;

    display: block;
}

/* BUTTON FIX */
.ml-form-embedSubmit button {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: #ffffff;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    box-sizing: border-box;
}

.ml-form-embedSubmit button:hover {
    background: #ddd;
}

/* PREVENT MAILERLITE DEFAULT ROW BEHAVIOUR BREAKING WIDTH */
.ml-form-formContent,
.ml-form-fieldRow,
.ml-form-embedBody {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.shop-cta {
    margin: 60px auto;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.shop-cta-box {
    display: flex;
    gap: 20px;
    background: #ffffff;
    color: #000000;
    border: 2px solid #000;
    border-radius: 16px;
    overflow: hidden;
    max-width: 800px;
    width: 100%;
    box-shadow:
        0 10px 30px rgba(255, 255, 255, 0.3),
        0 0 0 0 #000;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.shop-cta-box:hover {
    transform: scale(1.02);
    box-shadow:
        0 10px 30px rgba(255, 255, 255, 0.3),
        0 0 0 4px #000;
}

.shop-cta-image img {
    width: 200px;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shop-cta-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.shop-cta-content h2 {
    margin: 0 0 10px 0;
}

.shop-cta-content p {
    margin-bottom: 15px;
    opacity: 0.8;
} 

.shop-cta-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    border: 2px solid #000;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    transition: 0.3s ease;
}

.shop-cta-button:hover {
    background: #000;
    color: #fff;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}