/* BROWSE CSS */

.browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
}

.browse-card {
    background: #fff;
     overflow: hidden;
    display: flex;
    flex-direction: column;
}

.browse-preview {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #eee;
    border-bottom: 1px solid #ddd;
}

.browse-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.browse-title {
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    color: hotpink;
}

.browse-title:hover {
    text-decoration: underline;
}

.browse-meta {
    font-size: 13px;
    color: #666;
}

/* MAINS */
.container {
    background-color: white;
    width: 900px;
    margin: 0 auto;
    padding: 5px;
}

/* buttons or smthn */
input[type="text"], input[type="password"],
select,
textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

button {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    body {
        font-size:18px;
    }
    .container {
        padding: 10px;
    }
    
    .browse-preview {
        height: 180px; 
    }
}

@media (max-width: 480px) {
    .browse-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .browse-content {
        padding: 12px;
    }

    .actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .actions button {
        width: 100%;
        padding: 12px;
    }
}