/*
    Phoenix Horror Hub
    Author: Conner Quiteno
    File: styles.css
    Purpose: Main stylesheet for the entire website.
*/

/* Reset browser spacing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Main body styling */
html {
    overflow-x: hidden;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    background-color: black;
    line-height: 1.7;
    overflow-x: hidden;
}

/* =========================
   WALLPAPERS
========================= */

/* Homepage background */
body.home-page {
    background-image:
    linear-gradient(rgba(0,0,0,0.38), rgba(0,0,0,0.38)),
    url("VhkF.gif");
}

/* Haunted houses background */
body.haunted-page {
    background-image:
    linear-gradient(rgba(0,0,0,0.50), rgba(0,0,0,0.50)),
    url("PVnW.gif");
}

/* Escape rooms background */
body.escape-page {
    background-image:
    linear-gradient(rgba(0,0,0,0.50), rgba(0,0,0,0.50)),
    url("CyGm.gif");
}

/* Ghost tours background */
body.ghost-page {
    background-image:
    linear-gradient(rgba(0,0,0,0.50), rgba(0,0,0,0.50)),
    url("U0qq.gif");
}

/* Horror movies background */
body.movies-page {
    background-image:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url("1pXC.gif");
}

/* Top picks background */
body.top-page {
    background-image:
    linear-gradient(rgba(0,0,0,0.50), rgba(0,0,0,0.50)),
    url("top-picks-wallpaper.gif");
}

/* Featured page background */
body.featured-page {
    background-image:
    linear-gradient(rgba(0,0,0,0.50), rgba(0,0,0,0.50)),
    url("notld-wallpaper.gif");
}

/* Contact page background */
body.contact-page {
    background-image:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url("PVnW.gif");
}

/* Shared background settings */
body.home-page,
body.haunted-page,
body.escape-page,
body.ghost-page,
body.movies-page,
body.top-page,
body.featured-page,
body.contact-page {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

/* Hide old video background code if still present */
.bg-video,
.video-overlay {
    display: none !important;
}

/* =========================
   HEADER
========================= */

/* Header area */
header {
    background-color: rgba(0,0,0,0.82);
    text-align: center;
    padding: 30px;
    border-bottom: 2px solid red;
    backdrop-filter: blur(4px);
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Main site title */
header h1 {
    color: red;
    font-size: 4rem;
    margin-bottom: 25px;
    text-shadow:
    0 0 10px red,
    0 0 20px red,
    0 0 40px red;
}

/* =========================
   NAVIGATION
========================= */

/* Navigation list */
nav ul {
    list-style: none;
}

/* Navigation list items */
nav ul li {
    display: inline-block;
    margin: 10px;
}

/* Navigation links */
nav ul li a {
    color: white;
    text-decoration: none;
    padding: 15px 24px;
    border-radius: 10px;
    transition: 0.3s;
    font-size: 1.1rem;
    font-weight: bold;
}

/* Navigation hover effect */
nav ul li a:hover {
    background-color: red;
    box-shadow: 0 0 15px red;
}

/* Active navigation page */
nav ul li a.active,
.active {
    background-color: red;
}

/* =========================
   MAIN
========================= */

/* Main page content wrapper */
main {
    width: 88%;
    margin: auto;
    padding: 50px 0;
}

/* =========================
   CONTENT BOXES
========================= */

/* Reusable content section boxes */
.content-box,
.card {
    background-color: rgba(10,10,10,0.78);
    border-left: 5px solid red;
    border-radius: 18px;
    padding: 35px;
    margin-bottom: 40px;
    backdrop-filter: blur(5px);
}

/* Homepage boxes */
.home-page .content-box {
    background: rgba(0,0,0,0.72);
    border: 2px solid red;
    box-shadow: 0 0 25px rgba(255,0,0,0.45);
}

/* Section headings */
.content-box h2,
.card h2,
.section-title {
    color: #ff4747;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px red;
}

/* Paragraph text */
.content-box p,
.card p {
    font-size: 1.15rem;
    margin-bottom: 18px;
}

/* CSS float requirement */
.float-image {
    float: right;
    width: 220px;
    max-width: 40%;
    margin: 0 0 15px 20px;
    border: 2px solid red;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(255,0,0,0.45);
}

/* Clear floated content */
.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

/* =========================
   GRID
========================= */

/* Grid used for cards */
.movie-grid,
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

/* =========================
   CARDS
========================= */

/* Card styling */
.movie-card,
article {
    background-color: rgba(20,20,20,0.82);
    border-radius: 15px;
    padding: 28px;
    border: 1px solid rgba(255,0,0,0.30);
    transition: 0.3s;
    backdrop-filter: blur(4px);
}

/* Card hover effect */
.movie-card:hover,
article:hover {
    transform: scale(1.02);
    box-shadow: 0 0 18px rgba(255,0,0,0.55);
}

/* Card headings */
.movie-card h3,
article h3 {
    color: #ff5a5a;
    font-size: 2rem;
    margin-bottom: 18px;
}

/* Card paragraphs */
.movie-card p,
article p {
    font-size: 1.08rem;
    margin-bottom: 18px;
}

/* =========================
   CLICKABLE DETAILS
========================= */

/* Clickable attraction cards */
details.movie-card {
    display: block;
}

/* Clickable summary section */
details summary {
    cursor: pointer;
    list-style: none;
}

/* Removes default browser marker */
details summary::-webkit-details-marker {
    display: none;
}

/* Adds clickable instruction */
details summary::after {
    content: "Click for address and price";
    display: block;
    color: #ff5a5a;
    font-size: 0.95rem;
    font-weight: bold;
    margin-top: 15px;
}

/* Changes text when card is open */
details[open] summary::after {
    content: "Click to close";
}

/* Extra info shown after clicking */
.extra-info {
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.25);
    padding-top: 20px;
}

/* =========================
   TABLE
========================= */

/* Table used for numerical price data */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    background-color: rgba(20,20,20,0.88);
}

/* Table caption */
caption {
    color: #ff5a5a;
    font-weight: bold;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

/* Table headings */
th {
    background-color: red;
    color: white;
    padding: 14px;
    text-align: left;
}

/* Table cells */
td {
    border: 1px solid rgba(255,255,255,0.25);
    padding: 14px;
}

/* =========================
   VIDEOS
========================= */

/* Hide regular video tags by default */
video {
    display: none;
}

/* Featured video styling if MP4 is used */
.featured-page .featured-video video {
    display: block;
    width: 100%;
    max-width: 950px;
    margin: 30px auto;
    border-radius: 14px;
    border: 3px solid red;
    box-shadow: 0 0 25px rgba(255,0,0,0.45);
}

/* Iframe video embed styling */
.video-frame {
    width: 100%;
    max-width: 950px;
    height: 520px;
    display: block;
    margin: 30px auto;
    border: 3px solid red;
    border-radius: 14px;
    box-shadow: 0 0 25px rgba(255,0,0,0.45);
}

/* =========================
   FORM
========================= */

/* Contact form styling */
form {
    background-color: rgba(15,15,15,0.82);
    padding: 30px;
    border-radius: 14px;
    border: 1px solid rgba(255,0,0,0.35);
    max-width: 700px;
}

/* Form labels */
label {
    display: block;
    margin-top: 15px;
    margin-bottom: 8px;
    font-weight: bold;
}

/* Form fields */
input,
textarea,
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: none;
}

/* Submit button */
input[type="submit"] {
    background-color: red;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

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

/* Footer area */
footer {
    background-color: rgba(0,0,0,0.82);
    text-align: center;
    padding: 25px;
    margin-top: 40px;
    border-top: 2px solid red;
    font-size: 1.1rem;
}

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

/* Tablet layout */
@media screen and (max-width: 1000px) {

    .movie-grid,
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* Mobile layout */
@media screen and (max-width: 768px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body.home-page,
    body.haunted-page,
    body.escape-page,
    body.ghost-page,
    body.movies-page,
    body.top-page,
    body.featured-page,
    body.contact-page {
        background-size: cover;
        background-position: center top;
        background-repeat: no-repeat;
        background-attachment: scroll;
        min-height: 100vh;
    }

    header {
        position: static;
        width: 100%;
        padding: 15px;
        border-bottom: 2px solid red;
    }

    header h1 {
        font-size: 1.9rem;
        line-height: 1.2;
        margin-bottom: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    nav {
        width: 100%;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    nav ul li {
        display: block;
        width: 100%;
        margin: 4px 0;
        padding: 0;
        text-align: center;
        list-style: none;
    }

    nav ul li::marker {
        content: "";
    }

    nav ul li a {
        display: block;
        width: 100%;
        max-width: 100%;
        text-align: center;
        font-size: 1rem;
        padding: 10px;
        border-radius: 8px;
    }

    main {
        width: 94%;
        max-width: 94%;
        padding: 20px 0;
        margin: auto;
    }

    .content-box,
    .card,
    .movie-card,
    article,
    details.movie-card {
        width: 100%;
        max-width: 100%;
        padding: 18px;
        margin-bottom: 25px;
        border-radius: 14px;
    }

    .content-box h2,
    .card h2,
    .section-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .movie-grid,
    .card-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
    }

    .movie-card h3,
    article h3 {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .movie-card p,
    article p,
    .content-box p,
    .card p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .float-image {
        float: none;
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0 0 20px 0;
    }

    table {
        font-size: 0.9rem;
    }

    th,
    td {
        padding: 10px;
    }

    .featured-page .featured-video video,
    video {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .video-frame {
        width: 100%;
        height: 260px;
    }

    form {
        width: 100%;
        max-width: 100%;
        padding: 18px;
    }

    input,
    textarea,
    select {
        width: 100%;
        font-size: 1rem;
    }

    footer {
        width: 100%;
        font-size: 0.95rem;
        padding: 20px;
    }

}