/* =========================================================
   THE HIDDEN FILES
   PREMIUM / CLASSIFIED UI
   MAIN STYLESHEET
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');


/* =========================================================
   ROOT
========================================================= */

:root {
    --bg: #050608;
    --bg-soft: #080a0d;
    --surface: rgba(15, 18, 23, 0.82);
    --surface-solid: #0d1014;

    --border: rgba(255,255,255,0.08);
    --border-light: rgba(255,255,255,0.14);

    --text: #f5f7fa;
    --text-soft: #b5bbc4;
    --text-muted: #707782;

    --accent: #ffffff;
    --accent-soft: rgba(255,255,255,0.08);

    --shadow:
        0 20px 60px rgba(0,0,0,0.45);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --transition: 0.3s ease;
}


/* =========================================================
   GLOBAL
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 20% 10%,
            rgba(255,255,255,0.035),
            transparent 30%
        ),
        radial-gradient(
            circle at 80% 30%,
            rgba(255,255,255,0.025),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #050608 0%,
            #07090c 50%,
            #050608 100%
        );

    color: var(--text);

    font-family:
        "Inter",
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.6;
}

body::before {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.015) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.015) 1px,
            transparent 1px
        );

    background-size: 60px 60px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 90%
        );

    z-index: -1;
}

::selection {
    background: white;
    color: black;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font-family: inherit;
}


/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: #050608;
}

::-webkit-scrollbar-thumb {
    background: #24282e;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a4048;
}


/* =========================================================
   NAVIGATION
========================================================= */

nav {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    padding: 15px 6%;

    display: flex;
    align-items: center;

    gap: 10px;

    background:
        rgba(5,6,8,0.78);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border-bottom: 1px solid var(--border);

    box-shadow:
        0 10px 40px rgba(0,0,0,0.2);
}

nav::before {
    content: "◉";

    color: #777;

    font-size: 9px;

    margin-right: 6px;

    animation:
        navPulse 2.5s infinite;
}

nav a {
    position: relative;

    color: #9da3ad;

    text-decoration: none;

    font-size: 13px;

    font-weight: 500;

    padding: 9px 12px;

    border-radius: 8px;

    transition:
        color var(--transition),
        background var(--transition);
}

nav a:hover {
    color: white;

    background:
        rgba(255,255,255,0.06);
}

nav a::after {
    content: "";

    position: absolute;

    left: 12px;
    right: 12px;
    bottom: 4px;

    height: 1px;

    background: white;

    transform: scaleX(0);

    transform-origin: center;

    transition:
        transform var(--transition);
}

nav a:hover::after {
    transform: scaleX(1);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    min-height: 650px;

    padding: 120px 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    overflow: hidden;

    border-bottom: 1px solid var(--border);
}

.hero::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255,255,255,0.07),
            transparent 65%
        );

    filter: blur(30px);

    animation:
        heroGlow 7s ease-in-out infinite;
}

.hero::after {
    content: "CLASSIFIED";

    position: absolute;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%)
        rotate(-12deg);

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size:
        clamp(80px, 16vw, 220px);

    font-weight: 800;

    color:
        rgba(255,255,255,0.015);

    letter-spacing: 15px;

    white-space: nowrap;

    pointer-events: none;
}

.hero-content {
    position: relative;

    z-index: 2;

    max-width: 950px;
}

.hero h1 {
    font-family:
        "Space Grotesk",
        sans-serif;

    font-size:
        clamp(46px, 7vw, 82px);

    font-weight: 800;

    letter-spacing: -3px;

    line-height: 1;

    margin-bottom: 28px;

    background:
        linear-gradient(
            110deg,
            #ffffff 20%,
            #777 45%,
            #ffffff 70%
        );

    background-size: 200% auto;

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;

    animation:
        titleShine 7s linear infinite;
}

.hero p {
    color: var(--text-muted);

    font-size: 17px;

    max-width: 700px;

    margin: auto;

    line-height: 1.9;
}

.hero-buttons {
    margin-top: 38px;

    display: flex;

    justify-content: center;

    gap: 14px;

    flex-wrap: wrap;
}

.hero-button {
    position: relative;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 13px 22px;

    border: 1px solid var(--border-light);

    border-radius: 10px;

    text-decoration: none;

    background:
        rgba(255,255,255,0.03);

    backdrop-filter: blur(10px);

    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition);
}

.hero-button:hover {
    transform: translateY(-3px);

    background: white;

    color: black;

    border-color: white;

    box-shadow:
        0 15px 35px rgba(255,255,255,0.08);
}


/* =========================================================
   SEARCH
========================================================= */

.search-section {
    max-width: 950px;

    margin: 70px auto 30px;

    padding: 25px;
}

.search-section h2 {
    margin-bottom: 20px;

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 30px;

    letter-spacing: -1px;
}

#search-input {
    width: 100%;

    max-width: 850px;

    background:
        rgba(255,255,255,0.035);

    color: white;

    border:
        1px solid var(--border);

    border-radius: 14px;

    padding: 17px 20px;

    font-size: 15px;

    outline: none;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03);

    transition:
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

#search-input::placeholder {
    color: #5e646c;
}

#search-input:focus {
    border-color:
        rgba(255,255,255,0.28);

    background:
        rgba(255,255,255,0.055);

    box-shadow:
        0 0 0 4px
        rgba(255,255,255,0.025);
}

.card.hidden {
    display: none;
}


/* =========================================================
   SECTIONS
========================================================= */

.trending-section,
.topics-section,
.categories {
    max-width: 1150px;

    margin: 90px auto;

    padding: 0 25px;
}

.section-header {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 30px;

    margin-bottom: 35px;
}

.section-label {
    display: inline-block;

    font-size: 11px;

    letter-spacing: 3px;

    color: #666;

    margin-bottom: 9px;

    text-transform: uppercase;
}

.section-header h2,
.topics-section h2,
.categories h2 {
    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 34px;

    letter-spacing: -1.5px;
}

.section-header p,
.topics-section > p {
    color: var(--text-muted);

    max-width: 680px;

    line-height: 1.7;
}

.create-post-link {
    display: inline-flex;

    align-items: center;

    padding: 12px 18px;

    border:
        1px solid var(--border-light);

    border-radius: 10px;

    color: white;

    text-decoration: none;

    white-space: nowrap;

    background:
        rgba(255,255,255,0.025);

    transition: var(--transition);
}

.create-post-link:hover {
    background: white;

    color: black;

    transform: translateY(-2px);
}


/* =========================================================
   POST GRID
========================================================= */

#post-list {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}


/* =========================================================
   POST CARD
========================================================= */

#post-list .card {
    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.045),
            rgba(255,255,255,0.015)
        );

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-md);

    padding: 25px;

    min-height: 310px;

    display: flex;

    flex-direction: column;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.15);

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

#post-list .card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            white,
            transparent
        );

    transform:
        translateX(-100%);

    transition:
        0.6s ease;
}

#post-list .card:hover {
    transform:
        translateY(-8px);

    border-color:
        rgba(255,255,255,0.17);

    box-shadow:
        0 25px 60px rgba(0,0,0,0.35);
}

#post-list .card:hover::before {
    transform:
        translateX(100%);
}

#post-list .post-category {
    display: inline-flex;

    width: fit-content;

    padding: 5px 9px;

    margin-bottom: 16px;

    border-radius: 6px;

    background:
        rgba(255,255,255,0.055);

    color: #9da3ac;

    font-size: 10px;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}

#post-list .card h3 {
    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 21px;

    line-height: 1.35;

    margin-bottom: 14px;
}

#post-list .card > p {
    color: #858b94;

    line-height: 1.75;

    font-size: 14px;
}

#post-list .card .post-info {
    font-size: 12px;

    color: #555b64;

    margin-top: auto;

    padding-top: 25px;
}

#post-list .card a {
    display: inline-flex;

    align-items: center;

    width: fit-content;

    margin-top: 17px;

    color: white;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    transition: var(--transition);
}

#post-list .card a:hover {
    transform:
        translateX(5px);

    color: #ccc;
}


/* =========================================================
   EMPTY POSTS
========================================================= */

.no-posts {
    grid-column: 1 / -1;

    text-align: center;

    padding: 80px 20px;

    border:
        1px dashed #30343a;

    border-radius:
        var(--radius-md);

    color: #666;
}


/* =========================================================
   TRENDING TOPICS
========================================================= */

.topics-section h2 {
    margin-bottom: 10px;
}

.topics-section > p {
    margin-bottom: 30px;
}

.trending-list {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.trending-topic {
    position: relative;

    display: flex;

    align-items: center;

    gap: 20px;

    background:
        rgba(255,255,255,0.025);

    border:
        1px solid var(--border);

    border-radius: 12px;

    padding: 20px;

    overflow: hidden;

    transition: var(--transition);
}

.trending-topic::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,0.025),
            transparent
        );

    transform:
        translateX(-100%);

    transition: 0.7s;
}

.trending-topic:hover {
    background:
        rgba(255,255,255,0.045);

    border-color:
        var(--border-light);

    transform:
        translateX(5px);
}

.trending-topic:hover::after {
    transform:
        translateX(100%);
}

.trending-number {
    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 22px;

    font-weight: 700;

    color: #444b54;

    min-width: 35px;
}

.trending-topic h3 {
    font-size: 17px;

    margin-bottom: 5px;
}

.trending-topic p {
    color: #707780;

    font-size: 13px;
}


/* =========================================================
   CATEGORIES
========================================================= */

.categories h2 {
    margin-bottom: 30px;
}

.category-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 15px;
}

.category {
    position: relative;

    padding: 28px 20px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.04),
            rgba(255,255,255,0.015)
        );

    border:
        1px solid var(--border);

    border-radius: 14px;

    text-align: center;

    overflow: hidden;

    transition: var(--transition);
}

.category::before {
    content: "";

    position: absolute;

    width: 80px;
    height: 80px;

    border-radius: 50%;

    background:
        rgba(255,255,255,0.05);

    filter: blur(20px);

    top: -40px;
    right: -40px;
}

.category:hover {
    border-color:
        var(--border-light);

    transform:
        translateY(-6px);

    box-shadow:
        0 20px 45px rgba(0,0,0,0.3);
}

.category h3 {
    font-family:
        "Space Grotesk",
        sans-serif;

    margin-bottom: 7px;
}

.category p {
    color: #6e747d;

    font-size: 13px;
}


/* =========================================================
   POST PAGE
========================================================= */

.post-page {
    max-width: 900px;

    margin: 90px auto;

    padding: 0 25px;
}

.post-page h1 {
    font-family:
        "Space Grotesk",
        sans-serif;

    font-size:
        clamp(34px, 5vw, 52px);

    line-height: 1.15;

    letter-spacing: -1.5px;

    margin: 15px 0 20px;
}

.post-category {
    display: inline-flex;

    color: #858b94;

    font-size: 11px;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.post-info {
    color: #626973;

    font-size: 13px;
}

.post-page hr {
    border: none;

    border-top:
        1px solid var(--border);

    margin: 35px 0;
}

.post-content h2 {
    font-family:
        "Space Grotesk",
        sans-serif;

    margin-top: 38px;

    margin-bottom: 12px;
}

.post-content p {
    color: #b2b7bf;

    margin-bottom: 21px;

    line-height: 2;

    font-size: 16px;
}


/* =========================================================
   MEDIA
========================================================= */

.post-media {
    display: grid;

    gap: 18px;

    margin: 35px 0;
}

.post-media img,
.post-media video {
    width: 100%;

    max-height: 650px;

    object-fit: contain;

    background: #020304;

    border:
        1px solid var(--border);

    border-radius: 16px;

    box-shadow:
        0 20px 50px rgba(0,0,0,0.35);
}


/* =========================================================
   LIKES / ACTIONS
========================================================= */

.post-actions {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 40px;

    margin-bottom: 30px;
}

#like-button {
    background:
        rgba(255,255,255,0.04);

    color: white;

    border:
        1px solid var(--border);

    padding: 12px 20px;

    border-radius: 10px;

    cursor: pointer;

    font-size: 14px;

    font-weight: 600;

    transition: var(--transition);
}

#like-button:hover {
    background:
        rgba(255,255,255,0.09);

    border-color:
        var(--border-light);

    transform:
        translateY(-2px);
}

#like-button.liked {
    background: white;

    color: black;

    border-color: white;

    box-shadow:
        0 8px 25px
        rgba(255,255,255,0.1);
}


/* =========================================================
   COMMENTS
========================================================= */

.comments {
    margin-top: 60px;
}

.comments h2 {
    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 28px;
}

.comment-form {
    background:
        rgba(255,255,255,0.025);

    border:
        1px solid var(--border);

    padding: 25px;

    border-radius: 14px;

    margin: 20px 0 30px;
}

.comment-form h3 {
    margin-bottom: 20px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;

    background: #07090b;

    color: white;

    border:
        1px solid var(--border);

    padding: 13px 14px;

    margin-bottom: 15px;

    border-radius: 9px;

    outline: none;

    transition: var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color:
        var(--border-light);

    background: #090b0e;
}

.comment-form textarea {
    min-height: 120px;

    resize: vertical;
}

.comment-form button {
    background: white;

    color: black;

    border: none;

    padding: 12px 18px;

    border-radius: 8px;

    cursor: pointer;

    font-weight: 700;

    transition: var(--transition);
}

.comment-form button:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 10px 25px
        rgba(255,255,255,0.1);
}

.comment {
    background:
        rgba(255,255,255,0.025);

    border:
        1px solid var(--border);

    padding: 20px;

    border-radius: 12px;

    margin-bottom: 15px;
}

.comment-header {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 10px;
}

.comment-header span {
    color: #606670;

    font-size: 12px;
}

.comment p {
    color: #a4aab2;
}


/* =========================================================
   AUTHENTICATION
========================================================= */

.auth-container {
    min-height: 78vh;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 70px 20px;
}

.auth-box {
    position: relative;

    width: 100%;

    max-width: 500px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.05),
            rgba(255,255,255,0.015)
        );

    border:
        1px solid var(--border);

    border-radius: 20px;

    padding: 40px;

    box-shadow:
        var(--shadow);

    overflow: hidden;
}

.auth-box::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            white,
            transparent
        );
}

.auth-box h1 {
    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 32px;

    margin-bottom: 10px;
}

.auth-box > p {
    color: #737983;

    margin-bottom: 28px;
}

.auth-box label {
    display: block;

    margin-bottom: 7px;

    font-size: 13px;

    color: #a2a7ae;
}

.auth-box input,
.auth-box textarea,
.auth-box select {
    width: 100%;

    background: #080a0d;

    color: white;

    border:
        1px solid var(--border);

    border-radius: 9px;

    padding: 14px;

    margin-bottom: 18px;

    outline: none;

    transition: var(--transition);
}

.auth-box input:focus,
.auth-box textarea:focus,
.auth-box select:focus {
    border-color:
        rgba(255,255,255,0.25);

    box-shadow:
        0 0 0 4px
        rgba(255,255,255,0.025);
}

.auth-box select option {
    background: #111318;

    color: white;
}

.auth-box button {
    width: 100%;

    background: white;

    color: black;

    border: none;

    padding: 14px;

    border-radius: 9px;

    cursor: pointer;

    font-weight: 700;

    margin-top: 5px;

    transition: var(--transition);
}

.auth-box button:hover {
    transform:
        translateY(-2px);

    background: #e8e8e8;

    box-shadow:
        0 12px 30px
        rgba(255,255,255,0.08);
}


/* =========================================================
   CHECKBOX
========================================================= */

.checkbox-container {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 20px;
}

.checkbox-container input {
    width: auto;

    margin: 0;

    accent-color: white;
}

.checkbox-container label {
    margin: 0;
}


/* =========================================================
   CREATE POST
========================================================= */

.create-post-container {
    max-width: 900px;

    margin: 80px auto;

    padding: 0 25px;
}

.create-post-header {
    margin-bottom: 35px;
}

.create-post-header .section-label {
    margin-bottom: 10px;
}

.create-post-header h1 {
    font-family:
        "Space Grotesk",
        sans-serif;

    font-size:
        clamp(34px, 5vw, 52px);

    line-height: 1.1;

    letter-spacing: -2px;

    margin-bottom: 12px;
}

.create-post-header p {
    color: var(--text-muted);

    max-width: 700px;

    line-height: 1.8;
}


/* FORM CARD */

.create-post-form {
    position: relative;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.045),
            rgba(255,255,255,0.015)
        );

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-lg);

    padding: 35px;

    box-shadow:
        var(--shadow);

    overflow: hidden;
}

.create-post-form::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            white,
            transparent
        );
}


/* FORM GROUP */

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;

    color: #aeb4bc;

    font-size: 13px;

    font-weight: 600;

    margin-bottom: 8px;
}

.form-group label span {
    color: #666;

    font-size: 11px;

    font-weight: 400;

    margin-left: 5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;

    box-sizing: border-box;

    background:
        rgba(255,255,255,0.025);

    color: white;

    border:
        1px solid var(--border);

    border-radius: 10px;

    padding: 14px 15px;

    font-size: 14px;

    outline: none;

    transition:
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #555c65;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color:
        rgba(255,255,255,0.25);

    background:
        rgba(255,255,255,0.045);

    box-shadow:
        0 0 0 4px
        rgba(255,255,255,0.025);
}

.form-group textarea {
    min-height: 220px;

    resize: vertical;

    line-height: 1.8;
}

.form-group select {
    appearance: auto;

    cursor: pointer;
}

.form-group select option {
    background: #111318;

    color: white;
}


/* ANONYMOUS */

.create-post-anonymous {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 15px;

    margin: 5px 0 25px;

    background:
        rgba(255,255,255,0.025);

    border:
        1px solid var(--border);

    border-radius: 10px;
}

.create-post-anonymous input {
    width: 17px;
    height: 17px;

    margin: 0;

    accent-color: white;

    cursor: pointer;
}

.create-post-anonymous label {
    margin: 0;

    color: #aeb4bc;

    font-size: 13px;

    cursor: pointer;
}


/* MEDIA UPLOAD */

.media-upload-section {
    margin-top: 30px;

    padding-top: 30px;

    border-top:
        1px solid var(--border);
}

.media-upload-section h3 {
    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 19px;

    margin-bottom: 7px;
}

.media-upload-section > p {
    color: #666d76;

    font-size: 13px;

    margin-bottom: 22px;
}

.media-upload-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 15px;
}

.media-upload-box {
    position: relative;

    border:
        1px dashed
        rgba(255,255,255,0.16);

    border-radius: 12px;

    padding: 25px 18px;

    text-align: center;

    background:
        rgba(255,255,255,0.02);

    transition: var(--transition);
}

.media-upload-box:hover {
    border-color:
        rgba(255,255,255,0.3);

    background:
        rgba(255,255,255,0.04);
}

.media-upload-box .upload-icon {
    font-size: 28px;

    margin-bottom: 8px;

    opacity: 0.8;
}

.media-upload-box h4 {
    font-size: 14px;

    margin-bottom: 5px;
}

.media-upload-box p {
    color: #626973;

    font-size: 12px;

    margin-bottom: 15px;
}

.media-upload-box input[type="file"] {
    width: 100%;

    font-size: 12px;

    color: #858b94;

    background: transparent;

    border: none;

    padding: 0;

    margin: 0;
}

.media-upload-box input[type="file"]::file-selector-button {
    background: white;

    color: black;

    border: none;

    padding: 8px 12px;

    border-radius: 7px;

    margin-right: 8px;

    cursor: pointer;

    font-weight: 600;
}


/* MEDIA PREVIEW */

.media-preview {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;

    margin-top: 20px;
}

.media-preview-item {
    position: relative;

    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background: #020304;

    aspect-ratio: 1 / 1;
}

.media-preview-item img,
.media-preview-item video {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.media-preview-item .remove-media {
    position: absolute;

    top: 7px;
    right: 7px;

    width: 28px;
    height: 28px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 50%;

    background:
        rgba(0,0,0,0.75);

    color: white;

    cursor: pointer;

    font-size: 14px;

    transition: var(--transition);
}

.media-preview-item .remove-media:hover {
    background: white;

    color: black;
}


/* SUBMIT AREA */

.create-post-submit {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-top: 30px;

    padding-top: 25px;

    border-top:
        1px solid var(--border);
}

.create-post-submit button {
    border: none;

    padding: 13px 24px;

    border-radius: 9px;

    cursor: pointer;

    font-weight: 700;

    font-size: 14px;

    transition: var(--transition);
}

.create-post-submit .submit-post-button {
    background: white;

    color: black;
}

.create-post-submit .submit-post-button:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 12px 30px
        rgba(255,255,255,0.1);
}

.create-post-submit .cancel-post-button {
    background:
        transparent;

    color: white;

    border:
        1px solid var(--border-light);
}

.create-post-submit .cancel-post-button:hover {
    background:
        rgba(255,255,255,0.07);
}


/* CREATE POST MESSAGE */

.create-post-message {
    margin-top: 20px;

    padding: 13px 15px;

    border:
        1px solid var(--border);

    border-radius: 9px;

    color: #858b94;

    background:
        rgba(255,255,255,0.025);

    font-size: 13px;
}


/* =========================================================
   PROFILE
========================================================= */

.profile-container {
    max-width: 1050px;

    margin: 90px auto;

    padding: 0 25px;
}

.profile-card {
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.045),
            rgba(255,255,255,0.015)
        );

    border:
        1px solid var(--border);

    border-radius: 20px;

    padding: 40px;

    box-shadow:
        var(--shadow);
}

.profile-header {
    display: flex;

    align-items: center;

    gap: 25px;
}

.profile-avatar {
    width: 85px;
    height: 85px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 30% 30%,
            #444,
            #15171a
        );

    border:
        1px solid var(--border-light);

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    box-shadow:
        0 10px 35px rgba(0,0,0,0.4);
}

.profile-avatar span {
    font-size: 32px;

    font-weight: 800;

    font-family:
        "Space Grotesk",
        sans-serif;
}

.profile-header h1 {
    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 32px;

    margin: 3px 0;
}

.profile-header p {
    color: #737983;
}

.profile-card hr {
    border: none;

    border-top:
        1px solid var(--border);

    margin: 35px 0;
}

.profile-section {
    margin-bottom: 45px;
}

.profile-section h2 {
    font-family:
        "Space Grotesk",
        sans-serif;

    margin-bottom: 8px;
}

.profile-section > p {
    color: #737983;
}

.profile-info-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;

    margin-top: 20px;
}

.profile-info-grid > div {
    background:
        rgba(0,0,0,0.25);

    border:
        1px solid var(--border);

    border-radius: 11px;

    padding: 18px;
}

.profile-info-grid span {
    display: block;

    color: #606670;

    font-size: 11px;

    margin-bottom: 6px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.profile-info-grid strong {
    display: block;

    word-break: break-word;
}

.profile-post-heading {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 20px;

    margin-bottom: 25px;
}

.profile-post-heading p {
    color: #737983;

    margin-top: 5px;
}

.profile-posts {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;
}

.profile-post {
    background:
        rgba(0,0,0,0.22);

    border:
        1px solid var(--border);

    border-radius: 13px;

    padding: 22px;

    transition: var(--transition);
}

.profile-post:hover {
    border-color:
        var(--border-light);

    transform:
        translateY(-4px);

    box-shadow:
        0 15px 40px rgba(0,0,0,0.25);
}

.profile-post h3 {
    font-family:
        "Space Grotesk",
        sans-serif;

    margin: 10px 0;

    font-size: 20px;
}

.profile-post > p {
    color: #858b94;

    line-height: 1.6;
}

.profile-post-bottom {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 20px;

    padding-top: 15px;

    border-top:
        1px solid var(--border);
}

.profile-post-bottom span {
    color: #606670;

    font-size: 12px;
}

.profile-post-bottom a {
    color: white;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;
}

.profile-post-bottom a:hover {
    text-decoration: underline;
}


/* =========================================================
   EDIT PROFILE
========================================================= */

#edit-profile-form {
    display: flex;

    flex-direction: column;

    gap: 10px;

    margin-top: 25px;

    max-width: 650px;
}

#edit-profile-form label {
    color: #9da3ab;

    font-size: 13px;

    margin-top: 10px;
}

#edit-profile-form input,
#edit-profile-form textarea {
    width: 100%;

    box-sizing: border-box;

    background: #080a0d;

    color: white;

    border:
        1px solid var(--border);

    border-radius: 9px;

    padding: 14px;

    font-family: inherit;

    font-size: 15px;

    outline: none;

    transition: var(--transition);
}

#edit-profile-form input:focus,
#edit-profile-form textarea:focus {
    border-color:
        var(--border-light);

    box-shadow:
        0 0 0 4px
        rgba(255,255,255,0.025);
}

#edit-profile-form textarea {
    resize: vertical;
}

.profile-save-button {
    margin-top: 15px;

    padding: 13px 20px;

    background: white;

    color: black;

    border: none;

    border-radius: 8px;

    cursor: pointer;

    font-weight: 700;

    font-size: 14px;

    transition: var(--transition);
}

.profile-save-button:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 10px 25px
        rgba(255,255,255,0.08);
}

#profile-message {
    margin-top: 15px;

    color: #858b94;
}

.profile-logout-button {
    margin-top: 20px;

    padding: 12px 20px;

    background: transparent;

    color: white;

    border:
        1px solid var(--border-light);

    border-radius: 8px;

    cursor: pointer;

    transition: var(--transition);
}

.profile-logout-button:hover {
    background:
        rgba(255,255,255,0.07);

    border-color: #555;
}


/* =========================================================
   EXPLORE PAGE
========================================================= */

.explore-hero {
    min-height: 55vh;
}

.explore-search {
    max-width: 1100px;

    margin: 40px auto;
}

.explore-search-header {
    text-align: center;

    margin-bottom: 25px;
}

.explore-search-header h2 {
    margin: 10px 0;
}

.explore-search-header p {
    opacity: 0.75;
}

.explore-search-box {
    max-width: 850px;

    margin: auto;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 8px 12px;

    border:
        1px solid rgba(255,255,255,0.12);

    border-radius: 16px;

    background:
        rgba(255,255,255,0.04);

    backdrop-filter: blur(15px);

    box-shadow:
        0 15px 40px rgba(0,0,0,0.25);
}

.explore-search-box span {
    font-size: 22px;
}

.explore-search-box input {
    flex: 1;

    border: none;

    outline: none;

    background: transparent;

    color: inherit;

    font-size: 16px;

    padding: 15px 5px;
}

.explore-search-box input::placeholder {
    opacity: 0.55;
}

.explore-search-box button {
    border: none;

    padding: 11px 17px;

    border-radius: 10px;

    cursor: pointer;

    background:
        rgba(255,255,255,0.08);

    color: inherit;

    transition: 0.25s;
}

.explore-search-box button:hover {
    background:
        rgba(255,255,255,0.15);
}

.explore-controls {
    max-width: 1100px;

    margin: 20px auto 45px;

    padding: 0 20px;

    display: flex;

    gap: 20px;

    justify-content: center;

    flex-wrap: wrap;
}

.explore-control-group {
    min-width: 220px;
}

.explore-control-group label {
    display: block;

    font-size: 11px;

    letter-spacing: 2px;

    margin-bottom: 8px;

    opacity: 0.6;
}

.explore-control-group select {
    width: 100%;

    padding: 13px 15px;

    border-radius: 12px;

    border:
        1px solid rgba(255,255,255,0.12);

    background:
        rgba(255,255,255,0.05);

    color: inherit;

    outline: none;

    cursor: pointer;
}

.explore-control-group select option {
    background: #111;

    color: white;
}

.explore-results {
    max-width: 1200px;

    margin: auto;
}

.explore-card-meta {
    display: flex;

    justify-content: space-between;

    gap: 10px;

    flex-wrap: wrap;

    margin: 18px 0 10px;

    font-size: 12px;

    opacity: 0.65;
}

.explore-card-stats {
    display: flex;

    gap: 18px;

    margin-bottom: 18px;

    font-size: 13px;

    opacity: 0.8;
}

.no-results {
    text-align: center;

    padding: 70px 20px;

    border:
        1px solid rgba(255,255,255,0.08);

    border-radius: 18px;

    background:
        rgba(255,255,255,0.03);
}

.no-results-icon {
    font-size: 45px;

    margin-bottom: 15px;
}

.no-results h3 {
    margin-bottom: 8px;
}

.no-results p {
    opacity: 0.65;

    margin-bottom: 20px;
}

.no-results button {
    border: none;

    padding: 12px 20px;

    border-radius: 10px;

    cursor: pointer;

    background:
        rgba(255,255,255,0.1);

    color: inherit;
}


/* =========================================================
   TOPICS PAGE
========================================================= */

.topics-hero {
    min-height: 55vh;
}

.topics-page-section {
    max-width: 1200px;

    margin: 60px auto;

    padding: 0 20px;
}

.topics-page-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;

    margin-top: 35px;
}

.topic-page-card {
    position: relative;

    display: block;

    min-height: 270px;

    padding: 28px;

    text-decoration: none;

    color: inherit;

    border:
        1px solid rgba(255,255,255,0.1);

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.07),
            rgba(255,255,255,0.02)
        );

    overflow: hidden;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.topic-page-card::before {
    content: "";

    position: absolute;

    width: 130px;
    height: 130px;

    right: -50px;
    top: -50px;

    background:
        rgba(255,255,255,0.06);

    border-radius: 50%;

    transition: 0.3s;
}

.topic-page-card:hover {
    transform:
        translateY(-8px);

    border-color:
        rgba(255,255,255,0.25);

    box-shadow:
        0 20px 50px rgba(0,0,0,0.3);
}

.topic-page-card:hover::before {
    transform:
        scale(1.5);
}

.topic-icon {
    font-size: 32px;

    margin-bottom: 20px;
}

.topic-number {
    position: absolute;

    right: 22px;
    top: 20px;

    font-size: 12px;

    letter-spacing: 2px;

    opacity: 0.35;
}

.topic-page-card h3 {
    font-size: 22px;

    margin-bottom: 12px;
}

.topic-page-card p {
    font-size: 14px;

    line-height: 1.7;

    opacity: 0.65;
}

.topic-link {
    display: inline-block;

    margin-top: 20px;

    font-size: 13px;

    font-weight: 600;

    opacity: 0.85;
}

.topics-cta {
    max-width: 850px;

    margin: 80px auto;

    padding: 70px 25px;

    text-align: center;

    border-top:
        1px solid rgba(255,255,255,0.08);

    border-bottom:
        1px solid rgba(255,255,255,0.08);
}

.topics-cta h2 {
    font-size: 40px;

    margin: 15px 0;
}

.topics-cta p {
    opacity: 0.65;

    margin-bottom: 25px;
}


/* =========================================================
   GUEST POST
========================================================= */

.guest-post-container {
    max-width: 900px;

    margin: 80px auto;

    padding: 0 25px;
}

.guest-post-header {
    margin-bottom: 35px;
}

.guest-post-header h1 {
    font-family:
        "Space Grotesk",
        sans-serif;

    font-size:
        clamp(34px, 5vw, 52px);

    letter-spacing: -2px;

    line-height: 1.1;

    margin-bottom: 12px;
}

.guest-post-header p {
    color: var(--text-muted);

    max-width: 700px;

    line-height: 1.8;
}

.guest-post-form {
    position: relative;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.045),
            rgba(255,255,255,0.015)
        );

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-lg);

    padding: 35px;

    box-shadow:
        var(--shadow);

    overflow: hidden;
}

.guest-post-form::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            white,
            transparent
        );
}

.guest-post-form .form-group {
    margin-bottom: 24px;
}

.guest-post-form input,
.guest-post-form textarea,
.guest-post-form select {
    width: 100%;

    box-sizing: border-box;

    background: #080a0d;

    color: white;

    border:
        1px solid var(--border);

    border-radius: 10px;

    padding: 14px 15px;

    outline: none;

    transition: var(--transition);
}

.guest-post-form input:focus,
.guest-post-form textarea:focus,
.guest-post-form select:focus {
    border-color:
        var(--border-light);

    box-shadow:
        0 0 0 4px
        rgba(255,255,255,0.025);
}

.guest-post-form select option {
    background: #111318;

    color: white;
}

.guest-post-form textarea {
    min-height: 240px;

    resize: vertical;

    line-height: 1.8;
}

.guest-post-form button {
    background: white;

    color: black;

    border: none;

    padding: 13px 24px;

    border-radius: 9px;

    cursor: pointer;

    font-weight: 700;

    transition: var(--transition);
}

.guest-post-form button:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 12px 30px
        rgba(255,255,255,0.1);
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    position: relative;

    margin-top: 120px;

    padding: 65px 20px;

    text-align: center;

    border-top:
        1px solid var(--border);

    background:
        linear-gradient(
            180deg,
            #060709,
            #030405
        );

    overflow: hidden;
}

footer::before {
    content: "";

    position: absolute;

    width: 300px;
    height: 100px;

    top: -50px;
    left: 50%;

    transform:
        translateX(-50%);

    background:
        radial-gradient(
            ellipse,
            rgba(255,255,255,0.08),
            transparent 70%
        );

    filter: blur(20px);
}

footer h3 {
    position: relative;

    font-family:
        "Space Grotesk",
        sans-serif;

    letter-spacing: 4px;

    margin-bottom: 12px;
}

footer p {
    position: relative;

    color: #5d636c;

    font-size: 13px;
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes heroGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

@keyframes titleShine {

    0% {
        background-position:
            200% center;
    }

    100% {
        background-position:
            -200% center;
    }
}

@keyframes navPulse {

    0%,
    100% {
        opacity: 0.35;

        transform:
            scale(1);
    }

    50% {
        opacity: 1;

        transform:
            scale(1.4);
    }
}


/* =========================================================
   LARGE TABLET
========================================================= */

@media (max-width: 1000px) {

    #post-list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .category-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .topics-page-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {

    nav {
        gap: 3px;

        padding: 12px 15px;

        overflow-x: auto;

        scrollbar-width: none;
    }

    nav::-webkit-scrollbar {
        display: none;
    }

    nav a {
        white-space: nowrap;

        font-size: 12px;

        padding: 8px 10px;
    }

    nav::before {
        display: none;
    }

    .hero {
        min-height: 540px;

        padding:
            90px 20px;
    }

    .hero h1 {
        font-size: 46px;

        letter-spacing: -2px;
    }

    .hero p {
        font-size: 15px;
    }

    .section-header {
        flex-direction: column;

        align-items: flex-start;
    }

    .section-header h2,
    .topics-section h2,
    .categories h2 {
        font-size: 28px;
    }

    .trending-topic {
        gap: 12px;

        padding: 16px;
    }

    .trending-number {
        font-size: 18px;

        min-width: 28px;
    }

    .post-page {
        margin-top: 60px;
    }

    .post-page h1 {
        font-size: 34px;
    }

    .profile-card {
        padding:
            28px 22px;
    }

    .profile-info-grid {
        grid-template-columns: 1fr;
    }

    .create-post-container,
    .guest-post-container {
        margin-top: 60px;
    }

    .create-post-form,
    .guest-post-form {
        padding: 28px 22px;
    }

    .media-upload-grid {
        grid-template-columns: 1fr;
    }

    .media-preview {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    body {
        font-size: 14px;
    }

    .hero {
        min-height: 500px;

        padding:
            75px 18px;
    }

    .hero h1 {
        font-size: 36px;

        letter-spacing: -1.5px;
    }

    .hero p {
        font-size: 14px;

        line-height: 1.8;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }

    .hero-button {
        width: 100%;
    }

    .search-section {
        padding: 20px;

        margin-top: 45px;
    }

    #post-list {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .trending-section,
    .topics-section,
    .categories {
        margin:
            65px auto;

        padding:
            0 18px;
    }

    .section-header h2,
    .topics-section h2,
    .categories h2 {
        font-size: 25px;
    }

    #post-list .card {
        min-height: 280px;

        padding: 22px;
    }

    .post-page {
        padding: 0 18px;

        margin-top: 45px;
    }

    .post-page h1 {
        font-size: 30px;
    }

    .post-content p {
        font-size: 15px;

        line-height: 1.85;
    }

    .auth-container {
        padding:
            45px 15px;
    }

    .auth-box {
        padding:
            28px 20px;

        border-radius: 16px;
    }

    .auth-box h1 {
        font-size: 28px;
    }

    .profile-container {
        padding:
            0 15px;

        margin-top: 50px;
    }

    .profile-card {
        padding:
            24px 18px;

        border-radius: 16px;
    }

    .profile-header {
        align-items: flex-start;

        gap: 16px;
    }

    .profile-avatar {
        width: 65px;
        height: 65px;
    }

    .profile-avatar span {
        font-size: 25px;
    }

    .profile-header h1 {
        font-size: 24px;
    }

    .profile-posts {
        grid-template-columns: 1fr;
    }

    .profile-post-heading {
        flex-direction: column;

        align-items: flex-start;
    }

    .comment-form {
        padding: 20px;
    }

    .comment-header {
        flex-direction: column;

        gap: 3px;
    }

    .create-post-container,
    .guest-post-container {
        padding:
            0 15px;

        margin-top: 45px;
    }

    .create-post-header h1,
    .guest-post-header h1 {
        font-size: 34px;
    }

    .create-post-form,
    .guest-post-form {
        padding:
            24px 18px;

        border-radius: 16px;
    }

    .create-post-submit {
        flex-direction: column-reverse;

        align-items: stretch;
    }

    .create-post-submit button {
        width: 100%;
    }

    .media-preview {
        grid-template-columns: 1fr 1fr;
    }

    .topics-page-section {
        margin: 40px auto;
    }

    .topics-page-grid {
        grid-template-columns: 1fr;
    }

    .topic-page-card {
        min-height: 230px;
    }

    .topics-cta {
        margin:
            50px 20px;

        padding:
            50px 20px;
    }

    .topics-cta h2 {
        font-size: 30px;
    }

    footer {
        margin-top: 80px;

        padding:
            50px 20px;
    }
}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .hero h1 {
        font-size: 31px;
    }

    .hero {
        min-height: 460px;
    }

    nav a {
        font-size: 11px;
    }

    .post-page h1 {
        font-size: 27px;
    }

    .create-post-header h1,
    .guest-post-header h1 {
        font-size: 30px;
    }

    .create-post-form,
    .guest-post-form {
        padding:
            22px 15px;
    }
}

/* =========================================================
   CREATE POST PAGE
========================================================= */

.create-post-page {
    min-height: calc(100vh - 80px);
    padding: 50px 20px 80px;
}


/* =========================================================
   CREATE POST CARD
========================================================= */

.create-post-card {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    padding: 40px;

    box-shadow: var(--shadow);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}


/* =========================================================
   PAGE HEADER
========================================================= */

.create-post-card h1 {
    margin: 0 0 10px;

    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.create-post-card > p {
    margin: 0 0 35px;

    color: var(--text-soft);
    line-height: 1.7;
}


/* =========================================================
   FORM
========================================================= */

#create-post-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* =========================================================
   LABELS
========================================================= */

#create-post-form label {
    display: block;

    margin-top: 12px;
    margin-bottom: 7px;

    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   INPUTS
========================================================= */

#create-post-form input[type="text"],
#create-post-form textarea,
#create-post-form select {
    width: 100%;
    box-sizing: border-box;

    padding: 14px 15px;

    border: 1px solid var(--border-light);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.045);
    color: var(--text);

    outline: none;

    font-size: 15px;

    transition:
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}


/* =========================================================
   TEXTAREA
========================================================= */

#create-post-form textarea {
    min-height: 220px;

    resize: vertical;

    line-height: 1.7;
}


/* =========================================================
   PLACEHOLDER
========================================================= */

#create-post-form input::placeholder,
#create-post-form textarea::placeholder {
    color: var(--text-muted);
}


/* =========================================================
   FOCUS
========================================================= */

#create-post-form input[type="text"]:focus,
#create-post-form textarea:focus,
#create-post-form select:focus {
    border-color: rgba(255, 255, 255, 0.35);

    background: rgba(255, 255, 255, 0.07);

    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.05);
}


/* =========================================================
   SELECT
========================================================= */

#create-post-form select {
    appearance: none;
    -webkit-appearance: none;

    cursor: pointer;

    background-color: #0d1014;
}

#create-post-form select option {
    background: #111418;
    color: #ffffff;
}


/* =========================================================
   MEDIA UPLOAD SECTION
========================================================= */

.media-upload-section {
    margin-top: 25px;
    padding: 25px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: rgba(255, 255, 255, 0.025);
}

.media-upload-section h3 {
    margin: 0 0 7px;

    font-size: 20px;
}

.media-upload-section p {
    margin: 0 0 20px;

    color: var(--text-soft);

    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   MEDIA LABELS
========================================================= */

.media-upload-section label {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: fit-content;

    margin-top: 12px !important;
    margin-bottom: 8px !important;

    padding: 11px 16px;

    border: 1px solid var(--border-light);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.05);

    color: var(--text);

    cursor: pointer;

    transition:
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.media-upload-section label:hover {
    background: rgba(255, 255, 255, 0.09);

    border-color: rgba(255, 255, 255, 0.25);

    transform: translateY(-1px);
}


/* =========================================================
   FILE INPUT
========================================================= */

.media-upload-section input[type="file"] {
    display: block;

    width: 100%;

    margin-bottom: 15px;

    padding: 12px;

    border: 1px dashed var(--border-light);
    border-radius: 10px;

    background: rgba(0, 0, 0, 0.18);

    color: var(--text-soft);

    cursor: pointer;
}

.media-upload-section input[type="file"]::file-selector-button {
    margin-right: 12px;

    padding: 8px 12px;

    border: 1px solid var(--border-light);
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.08);

    color: var(--text);

    cursor: pointer;
}


/* =========================================================
   MEDIA PREVIEW
========================================================= */

.media-preview {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(150px, 1fr));

    gap: 15px;

    margin-top: 12px;
    margin-bottom: 20px;
}


/* =========================================================
   IMAGE PREVIEW
========================================================= */

.media-preview-image {
    width: 100%;
    height: 150px;

    object-fit: cover;

    display: block;

    border-radius: 12px;

    border: 1px solid var(--border);

    background: #080a0d;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3);
}


/* =========================================================
   VIDEO PREVIEW
========================================================= */

.media-preview-video {
    width: 100%;
    height: 150px;

    object-fit: cover;

    display: block;

    border-radius: 12px;

    border: 1px solid var(--border);

    background: #000;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3);
}


/* =========================================================
   ANONYMOUS CHECKBOX
========================================================= */

#create-post-form .checkbox-label {
    display: flex !important;

    align-items: center;

    gap: 10px;

    margin-top: 22px !important;
    margin-bottom: 10px !important;

    color: var(--text-soft);

    font-size: 14px;

    cursor: pointer;
}

#create-post-form .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;

    margin: 0;

    accent-color: white;

    cursor: pointer;
}


/* =========================================================
   PUBLISH BUTTON
========================================================= */

#create-post-form .auth-button {
    width: 100%;

    margin-top: 15px;

    padding: 15px 20px;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;

    background: #ffffff;

    color: #050608;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

#create-post-form .auth-button:hover {
    transform: translateY(-2px);

    background: #e9e9e9;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.35);
}

#create-post-form .auth-button:active {
    transform: translateY(0);
}

#create-post-form .auth-button:disabled {
    opacity: 0.6;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


/* =========================================================
   STATUS MESSAGE
========================================================= */

#post-message {
    min-height: 22px;

    color: var(--text-soft);

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================================
   NAVIGATION BUTTON
========================================================= */

.navbar button {
    font-family: inherit;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .create-post-page {
        padding: 30px 15px 60px;
    }

    .create-post-card {
        padding: 25px 20px;

        border-radius: 18px;
    }

    .create-post-card h1 {
        font-size: 27px;
    }

    .media-upload-section {
        padding: 20px;
    }

    .media-preview {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

    .media-preview-image,
    .media-preview-video {
        height: 130px;
    }
}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 480px) {

    .create-post-page {
        padding: 20px 10px 50px;
    }

    .create-post-card {
        padding: 22px 15px;
    }

    .create-post-card h1 {
        font-size: 24px;
    }

    #create-post-form input[type="text"],
    #create-post-form textarea,
    #create-post-form select {
        padding: 13px;
    }

    #create-post-form textarea {
        min-height: 180px;
    }

    .media-upload-section {
        padding: 15px;
    }

    .media-preview {
        grid-template-columns: 1fr;
    }

    .media-preview-image,
    .media-preview-video {
        height: 190px;
    }
}

/* ================================
   FORGOT PASSWORD LINK
================================ */

.forgot-password-container {
    text-align: right;
    margin-top: -8px;
    margin-bottom: 20px;
}

.forgot-password {
    color: #c9a227;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s ease;
}

.forgot-password:hover {
    text-decoration: underline;
    opacity: 0.85;
}

