:root {
    /* Palette */
    --color-1: #0C0C0C; /* Black */
    --color-2: #2C2C2C; /* Gunmetal */
    --color-3: #4A4A4A; /* Slate gray */
    --color-4: #BEA98E; /* Champagne gold */

    /* Derived tones */
    --color-5: #D3C1AB; /* Light champagne */
    --color-6: #8C7A66; /* Dark champagne */
    --color-7: #CFCFCF; /* Muted text */
    --color-8: #F5F5F5; /* Primary text */

    /* Semantic theme */
    --background: var(--color-1);
    --surface: var(--color-2);
    --accent: var(--color-3);

    --primary: var(--color-4);
    --secondary: var(--color-5);

    --text: var(--color-8);
    --text-muted: var(--color-7);

    --border: rgba(190, 169, 142, 0.15);
    --shadow: rgba(0, 0, 0, 0.50);
    --hover: var(--color-5);
}
html {
    font-family: "Transcity", serif;
    background-color: var(--background);
    color: var(--text);
    overflow-y: scroll;
    text-decoration: none;
}

body {
    margin: 0;
    background-color: var(--background);
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "OmegaCT", serif;
    color: var(--text);
}

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

#header {
    display: block;
    width: auto;
    top: -20px;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

#header div h1 {
    display: block;
    text-align: center;
    color: var(--text);
    font-size: 60px;
    padding: 1rem;
    font-family: "Transcity", serif;
}

#header a {
    position: relative;
    top: -60px;
    text-decoration: none;
    text-align: center;
    color: var(--secondary);
    font-size: 24px;
    font-family: "OmegaCT", serif;
    padding: 1rem;
    display: inline-block;
    transition: color 0.178s ease;
}

#header a:hover {
    color: var(--hover);
}

#header a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0.75rem;
    width: calc(100% - 2rem);
    height: 2px;
    background-color: currentColor;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.178s ease;
}

#header a:hover::after,
#header a.active::after {
    transform: translateX(-50%) scaleX(1);
}

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

#footer {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: var(--surface);
    color: var(--text-muted);
    text-align: center;
    font-family: "GT Pressura Mono", serif;
    font-size: 16px;
    height: 83px;
    border-top: 1px solid var(--border);
}

#copyright {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
}

#socials {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    position: absolute;
    bottom: 27px;
    left: 50%;
    transform: translateX(-50%);
}

#socials a {
    color: var(--text-muted);
    margin: 0 0.3rem;
    text-decoration: none;
    transition: color 0.174s ease;
}

#socials a:hover {
    color: var(--secondary);
}

#signature {
    font-size: 16px;
    font-family: "Peanut Butter", serif;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 43px;
}

/* ================= SEARCH ================= */

#search-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.75rem 1.25rem;
    min-width: 300px;
    width: 80dvw;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
}

#search-container:hover,
#search-container:focus-within {
    border-color: var(--secondary);
}

#filter-row {
    display: flex;
    justify-content: left;
    gap: 0.75rem;
    margin-top: 1rem;
    width: 100%;
    flex-wrap: wrap;
}

#filter-row select {
    appearance: none;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 10px;
    padding-right: 30px;
    font-family: inherit;
    font-size: 16px;
    min-width: 60px;
    max-width: 260px;
    transition: border-color 0.174s ease, transform 0.174s ease;
}

#filter-row select:hover,
#filter-row select:focus {
    border-color: var(--secondary);
    outline: none;
}

#search-container i {
    color: var(--secondary);
    font-size: 16px;
}

#search {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    font-size: 24px;
    font-family: inherit;
    color: var(--text);
}

#search::placeholder {
    color: var(--text-muted);
    opacity: 0.35;
}

@media (max-width: 900px) {
    #header {
        flex-direction: column;
        gap: 1rem;
    }

    #search-container {
        width: 100%;
        min-width: unset;
    }
}

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

#main-body {
    display: block;
    width: 43dvw;
    height: auto;
    border-radius: 12px;
    position: absolute;
    left: 20px;
    top: 200px;
    bottom: 200px;
}

#main-body h1 {
    font-size: 23px;
    font-family: "OmegaCT", serif;
    color: var(--text);
    padding: 1rem;
    top: -10px;
    position: absolute;
}

#recent-review {
    display: block;
    width: 1000px;
    height: 300px;
    border-radius: 12px;
    position: absolute;
    left: 10px;
    top: 54px;
    background-color: purple;
    bottom: 200px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 8px 30px var(--shadow);
    max-width: 820px;
    min-width: 700px;
}

#review-view {
    display: block;
    /* background-color: purple; */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 95dvw;
    height: 50dvh;
}
#review-view img{
    display: block;
    /* background-color: green; */
    height: 50dvh;

}
#view-full-review {
    display: block;
    width: 38%;
    text-decoration: none;
    text-align: center;
    border-radius: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
    color: var(--text);
    position: absolute;
    bottom: 10px;
    left: 50%;
    font-size: 20px;
    transform: translateX(-50%);
    background-color: var(--accent);
    border: 1px solid var(--border);
    transition: all 0.174s ease;
}

#view-full-review:hover {
    background-color: var(--color-4);
    color: var(--secondary);
    border-color: var(--secondary);
}

#main-body #recent-review img {
    display: block;
    width: 300px;
    height: 300px;
    border-radius: 12px;
    position: absolute;
    left: 10px;
    top: 0;
}


#review-text h2 {
    font-size: 24px;
    font-family: "OmegaCT", serif;
    color: var(--text);
    padding: 1rem;
    position: absolute;
    top: -20px;
    left: 62%;
    transform: translateX(-50%);
}

#review-text h3 {
    font-size: 16px;
    font-family: "GT Pressura Mono";
    color: var(--secondary);
    font-weight: 300;
    padding: 1rem;
    position: absolute;
    top: 15px;
    left: 62%;
    transform: translateX(-50%);
}

#main-body #recent-review #review-info {
    display: block;
    width: 60%;
    height: 300px;
    position: absolute;
    right: 0;
    top: 0;
}

#review-info #buttons {
    font-size: 20px;
    font-family: "GT Pressura Mono", serif;
    color: var(--text);
    padding: 1rem;
    width: 40px;
    height: 40%;
    /* background-color: green; */
    right: 650px;
    text-align: center;
    border-radius: 12px;
    bottom: -130px;
    position: absolute;
}

#review-info #buttons a {
    text-decoration: none;
    display: inline-block;
    padding: 12px;
    cursor: pointer;
    border-radius: 8px;
    color: var(--text-muted);
    transition: all 0.174s ease;
    font-size: 28px;
}

#review-info #buttons a:hover {
    transform: translateY(-2px);
}

#review-info #buttons a:nth-child(2):hover {
    color: #cb3f3f;
}

#review-info #buttons a:nth-child(1):hover {
    background: linear-gradient(
        to right,
        #833ab4,
        #fd1d1d,
        #fcb045
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#review-content {
    display: block;
    font-weight: 400;
    font-family: "GT Corporate", serif;
    font-size: 20px;
    color: var(--text-muted);
    background-color: var(--color-2);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 90px;
    padding-left: 20px;
    height: 100%;
    right: 54px;
    width: 65dvw;
    max-width: 90%;
    min-width: 400px;
    border-radius: 12px;
}


.hidden {
    display: none !important;
}

#reviews-app {
    min-height: calc(100vh - 350px);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 90dvw;
    top: 360px;
    /* background-color: orange; */
}

#watch-grid {
    margin-top: 170px;
    display: grid;
    grid-template-columns:
        repeat(
            auto-fill,
            minmax(260px,1fr)
        );
    gap: 2rem;
}

.watch-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    padding: 1rem;
    transition: all 0.174s ease;
    box-shadow:
        0 8px 30px
        var(--shadow);
}

.watch-card:hover {
    transform:
        translateY(-4px);
    border-color:
        var(--secondary);
}

.watch-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
}

.watch-card h2 {
    font-size: 20px;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}

.watch-card p {
    color:
        var(--text-muted);
}

#back-button {
    background:
        var(--surface);

    color:
        var(--text);

    border:
        1px solid
        var(--border);

    padding:
        0.75rem 1rem;

    border-radius:
        12px;

    cursor:
        pointer;

    margin-bottom:
        2rem;

    transition:
        all 0.174s ease;
}

#back-button:hover {
    border-color:
        var(--secondary);
}

.youtube-embed {
position: absolute;
bottom: -470px;
left: 50%;
transform: translateX(-50%);
}

.youtube-embed iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
border-radius: 12px;

}

.watch-review {
    max-width: 900px;
    margin: auto;
    color: var(--text);
    text-decoration: none;
    padding-bottom: 100px;
}

.watch-hero {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 30px;
    /* background-color: green; */
}

.watch-hero img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.watch-title h1 {
    margin: 5px 0;
    font-size: 28px;
}

.watch-title h2 {
    opacity: 0.7;
    font-weight: 400;
}

.watch-title h3 {
    opacity: 0.5;
    font-weight: 300;
}

.watch-specs {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 500px;
    font-family: "OmegaCT", serif;
}

.spec-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
}

.spec-card h3 {
    margin-bottom: 12px;
    font-size: 16px;
    opacity: 0.9;
}

.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.spec-key {
    opacity: 0.7;
    text-transform: capitalize;
}

.spec-value {
    font-weight: 500;
}


.watch-links {
    font-size: 28px;
    padding: 1rem;
    width: 120px;
    text-align: center;
    border-radius: 12px;
    position: absolute;
    bottom: -550px;
    left: 50%;
    transform: translateX(-50%);
}

.watch-links a {
    color: var(--color-8);
    text-decoration: none;
    display: inline-block;
    padding: 0 10px;
    transition: all 0.174s ease;
}

.watch-links a:visited {
    color: var(--color-8);
}

.watch-links a:nth-child(2):hover {
    color: #cb3f3f;
}

.watch-links a:nth-child(1):hover {
    background: linear-gradient(
        to right,
        #833ab4,
        #fd1d1d,
        #fcb045
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}