/* Stuff-specific styles */
* {
    box-sizing: border-box;
}
.search-row-container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: auto;
    width: min(1000px, 95%);
}
.row-container{
    grid-column: 1 / -1;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.home{
    text-align: right;
    margin-left: auto;
    display: flex;
    align-items: center;
}

.tags{
    text-align: left;
    display: flex;
    gap: 15px;
    align-items: center;
}

.tags a,
.home a {
    white-space: nowrap;
    line-height: 1;
    display: inline-block;
}

.stuff-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1%;
    margin: auto;
    width: min(1000px, 95%);
    border-radius: 10px;
    margin-bottom: 30px;
    margin-top: 1px;
}

/* search container uses same grid structure as parent for alignment */
.search-container {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    gap: 1%;
}

.search-container form {
    grid-column: 2;
}

.search-box {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    font-family: 'Roboto Mono', sans-serif;
    font-size: 14px;
    width: 100%;
    margin-left: auto;
    transition: all 0.3s ease;
}

.search-box::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    width: 100%;
    margin-left: 0;
}

.stuff-item {
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 0px;
    padding: 6%;
    transition: all 0.3s ease;
}

.stuff-title {
    font-family: 'Roboto', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.stuff-title:hover {
    color: rgba(255, 255, 255, 0.8);
}

.stuff-meta {
    font-family: 'Roboto Mono', sans-serif;
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
}

.stuff-tags {
    font-family: 'Roboto Mono', sans-serif;
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-bottom: 8px;
}

.stuff-description {
    font-family: 'Roboto Mono', monospace !important;
    font-weight: 350 !important;
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.no-stuff {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Roboto Mono', sans-serif;
}

/* search results spans full width */
.search-results {
    grid-column: 1 / -1;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Roboto Mono', sans-serif;
    font-size: 0.5rem;
}

.clear-search {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-left: 10px;
    font-size: 0.4rem;
}

.clear-search:hover {
    color: white;
}

/* mobile responsive */
@media (max-width: 768px) {
    .search-container {
        padding: 15px 0;
        grid-template-columns: 1fr;
        gap: 3%;
    }

    .search-box {
        width: 100%;
        margin-left: auto;
    }

    .search-box:focus {
        width: 100%;
        margin-left: 0;
    }

    .stuff-container {
        grid-template-columns: 1fr;
        gap: 1%;
        padding: 5px;
    }

    .stuff-item {
        padding: 4%;
        margin-bottom: 15px;
    }

    .stuff-title {
        font-size: 0.95rem;
    }

    .stuff-meta, .stuff-tags {
        font-size: 0.65rem;
    }

    .stuff-description {
        font-size: 0.7rem;
    }

    .search-container form {
        grid-column: 1;
    }
}
