﻿

---------------------------------------------------------------------
/* =========================
   GLOBALS
========================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: radial-gradient(circle, #11111B, #11111B);
    background-attachment: fixed;
    color: #e0e0e0;
    font-family: Rajdhani, Roboto, sans-serif;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================
   cohesion
========================= */

.card-ui {
    background: #0f0f0f;
    border: 1px solid #2c2c2c;
    border-radius: 16px;
}

.btn-ui {
    background: #0f0f0f;
    color: #e0e0e0;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 6px 12px;
    text-decoration: none;
    transition: 0.2s ease;
    cursor: pointer;
}

    .btn-ui:hover {
        border-color: #6aa9ff;
        transform: scale(1.02);
    }

    .btn-ui:active {
        transform: scale(1);
    }

/* =========================
   signup / login
========================= */

.create-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    min-height: 100vh;
}

.create-box {
    width: 100%;
    max-width: 420px;
    margin-top: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    font-size: 18px;
}

    .create-box textarea,
    .create-box select,
    .create-box input {
        width: 100%;
        padding: 10px 14px;
        border-radius: 12px;
        background: #0f0f0f;
        color: #e0e0e0;
        border: 1px solid #e0e0e0;
    }

        .create-box textarea:hover,
        .create-box select:hover,
        .create-box input:hover {
            border-color: #6aa9ff;
        }

        .create-box input:last-child {
            width: fit-content;
        }

/* =========================
   PROFILE
========================= */

.profile-container {
    width: 100%;
    max-width: 900px;
    margin: auto;
    padding: 0 16px;
}

.profile-info {
    margin-top: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pfp {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    display: block;
    margin: 0 auto;
    object-fit: cover;
}

.review-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 16px;
    margin-bottom: 16px;
}

.review-content h4 {
    margin: 0;
}

.review-content a {
    color: #4ea3ff;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
}

.review-text {
    margin-top: 5px;
}

.review-item-img {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    object-fit: cover;
}

/* =========================
   tool stuff
========================= */

.toolbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin: 30px 0;
}

/* search */

.search-bar-holder {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 520px;
    padding: 0 16px;
}

.search-bar {
    flex: 1;
    height: 52px;
    padding: 0 16px;
    border-radius: 16px;
    border: 2px solid #555;
    background: #0f0f0f;
    color: #e0e0e0;
    font-size: 16px;
}

.search-btn {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .search-btn img {
        width: 22px;
        height: 22px;
    }

/* actions */

.toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.item-btn {
    font-size: 18px;
}

/* sort */

.sort-holder select {
    width: 180px;
    height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    background: #0f0f0f;
    color: #e0e0e0;
    border: 1px solid #e0e0e0;
    font-family: Rajdhani, sans-serif;
}

/* mobile */

@media (max-width: 480px) {

    .toolbar-actions {
        flex-direction: column;
        width: 100%;
    }

    .item-btn {
        width: 180px;
        text-align: center;
    }

    .sort-holder select {
        width: 180px;
    }
}
/* =========================
   item btns
========================= */

.item-btn-holder {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
}

.item-btn,
.edit-btn,
.delete-btn {
    font-size: 18px;
}

/* =========================
   grid
========================= */

.items-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 16px;
}

.items-card {
    min-height: 260px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    text-decoration: none;
    color: #e0e0e0;
    transition: 0.2s ease;
}

    .items-card:hover {
        border-color: #6aa9ff;
        transform: translateY(-2px);
    }

    .items-card h2 {
        margin: 0;
        font-size: 1.4rem;
    }

    .items-card img {
        width: 100px;
        height: 100px;
        object-fit: contain;
    }

.rating-display {
    margin-top: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #cfcfcf;
}

.no-results {
    margin-top: 50px;
    text-align: center;
    font-size: 24px;
}

/* =========================
   tablets
========================= */

@media (max-width: 1024px) {

    .items-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .profile-container {
        max-width: 95%;
    }

    .review-item-img {
        width: 100px;
        height: 100px;
    }
}

/* =========================
   mobile
========================= */

@media (max-width: 768px) {

    .items-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .review-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .search-bar-holder {
        max-width: 100%;
    }

    .create-box {
        max-width: 95%;
    }

    .review-item-img {
        width: 140px;
        height: 140px;
    }
}

/* =========================
   small mob
========================= */

@media (max-width: 480px) {

    .items-grid {
        grid-template-columns: 1fr;
        margin: 20px auto;
    }

    .items-card {
        min-height: auto;
        padding: 18px 14px;
    }

        .items-card img {
            width: 110px;
            height: 110px;
        }

    .search-bar-holder {
        padding: 0 12px;
    }

    .search-bar {
        font-size: 15px;
    }

    .item-btn,
    .edit-btn,
    .delete-btn {
        width: 100%;
        text-align: center;
    }

    .item-btn-holder {
        flex-direction: column;
    }

    .pfp {
        width: 90px;
        height: 90px;
    }

    .review-item-img {
        width: 120px;
        height: 120px;
    }

    .review-content a {
        font-size: 18px;
    }
}